Page 1 of 1
UNTRUSTED NETWORK: Message not reported as Spam
Posted: 28 May 2015 04:41
by zthephoenixz
On emails that arrive into a users inbox and they want to report them as spam, but they get this message. Is there a fix?
----
UNTRUSTED NETWORK: Message not reported as Spam
Our system indicates that you are on an external or untrusted network. If your mail administration stores all mail in quarantine, you can access your spam quarantine to submit the message as spam. You can also wait and submit the message as spam from your internal or trusted network later.
----
Re: UNTRUSTED NETWORK: Message not reported as Spam
Posted: 28 May 2015 14:03
by darky83
Login with SSH to the box
In EFA-Configure go to the option 'Spam Settings' -> 'Trusted Networks'
Re: UNTRUSTED NETWORK: Message not reported as Spam
Posted: 28 May 2015 22:20
by zthephoenixz
As per attached jpg, I have 192.168.0.0 with 255.255.0.0 and 10.0.0.0 with 255.0.0.0 which covers our entire network (satellite offices IPsec in and wanted to cover them all).
Re: UNTRUSTED NETWORK: Message not reported as Spam
Posted: 29 May 2015 00:21
by shawniverson
Are your users trying to submit from a cell phone (external network)?
Re: UNTRUSTED NETWORK: Message not reported as Spam
Posted: 30 May 2015 22:30
by zthephoenixz
No, this does it to me sitting on a local machine, I have multiple subnets attached to my box but all within the 192.168.0.0/16 and 10.0.0.0/8 subnet.
Re: UNTRUSTED NETWORK: Message not reported as Spam
Posted: 30 May 2015 22:58
by shawniverson
For some reason, release-msg.cgi is not matching your host address range....
Let's do a test....
Code: Select all
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard);
use Net::Netmask;
print "Content-type: text/html \n\n";
open(FILE, '/etc/sysconfig/EFA_trusted_networks') or die ("Trusted Networks File Missing");
@trustednetworks = <FILE>;
close (FILE);
if(@trustednetworks) {
foreach (@trustednetworks) {
@items = split(/ /);
$ip = @items[0];
print "$ip ";
$mask = @items[1];
print "$mask <br/>";
$block = new Net::Netmask($ip,$mask);
print "$ENV{REMOTE_ADDR} <br/>";
if ($block->match($ENV{REMOTE_ADDR})) {
print "IP MATCHES SUBNET <br/>";
} else {
print "IP DOES NOT MATCH SUBNET <br/>";
}
}
} else {
print "No Trusted Networks found";
}
Copy and paste this code into a file, such as test.cgi. Place the file in /var/www/cgi-bin .
Code: Select all
sudo chmod 755 /var/www/cgi-bin/test.cgi
Now, visit this script using your browser and report the results....
http://myefa.mydomain/cgi-bin/test.cgi
or
https://myefa.ydomain/cgi-bin/test.cgi
Re: UNTRUSTED NETWORK: Message not reported as Spam
Posted: 31 May 2015 22:28
by zthephoenixz
Here you go.
10.0.0.0 255.0.0.0
192.168.1.80
IP DOES NOT MATCH SUBNET
192.168.0.0 255.255.0.0
192.168.1.80
IP MATCHES SUBNET
I also had a bug report in on a name change to the server not properly working, see
viewtopic.php?f=13&t=1091
When this was resolved it resolved the report spam from the email as well.
Thank you for the help, that test.cgi will come in handy if the problem happens again.
Re: UNTRUSTED NETWORK: Message not reported as Spam
Posted: 08 Sep 2016 08:35
by Pukkeltje
I have the same problem and run the script:
172.16.0.0 255.255.0.0
172.16.0.38
IP DOES NOT MATCH SUBNET
This looks like a bug: it should be trusted but it isn't!
Re: UNTRUSTED NETWORK: Message not reported as Spam
Posted: 10 Sep 2016 00:08
by shawniverson
Interesting...I wonder if the 0 is throwing it...
Can't seem to reproduce on a class A...going to have to set up a test environment...
Re: UNTRUSTED NETWORK: Message not reported as Spam
Posted: 10 Sep 2016 13:24
by Pukkeltje
I deleted the whole list and was playing with it. After some time I noticed that this is working:
172.16.0.6255.255.255.255
172.16.0.38
IP DOES NOT MATCH SUBNET
192.168.2.254 255.255.255.255
172.16.0.38
IP DOES NOT MATCH SUBNET
172.16.0.0 255.255.255.0
172.16.0.38
IP MATCHES SUBNET
192.168.2.0 255.255.255.0
172.16.0.38
IP DOES NOT MATCH SUBNET
Strange, I cannot understand.