UNTRUSTED NETWORK: Message not reported as Spam

Report bugs and workarounds
Post Reply
zthephoenixz
Posts: 26
Joined: 28 May 2015 01:55

UNTRUSTED NETWORK: Message not reported as Spam

Post 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.
----
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: UNTRUSTED NETWORK: Message not reported as Spam

Post by darky83 »

Login with SSH to the box

In EFA-Configure go to the option 'Spam Settings' -> 'Trusted Networks'
Version eFa 4.x now available!
zthephoenixz
Posts: 26
Joined: 28 May 2015 01:55

Re: UNTRUSTED NETWORK: Message not reported as Spam

Post 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).
Attachments
Trusted Networks.jpg
Trusted Networks.jpg (73.86 KiB) Viewed 7987 times
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: UNTRUSTED NETWORK: Message not reported as Spam

Post by shawniverson »

Are your users trying to submit from a cell phone (external network)?
zthephoenixz
Posts: 26
Joined: 28 May 2015 01:55

Re: UNTRUSTED NETWORK: Message not reported as Spam

Post 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.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: UNTRUSTED NETWORK: Message not reported as Spam

Post 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
zthephoenixz
Posts: 26
Joined: 28 May 2015 01:55

Re: UNTRUSTED NETWORK: Message not reported as Spam

Post 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.
Pukkeltje
Posts: 11
Joined: 08 Sep 2016 08:32

Re: UNTRUSTED NETWORK: Message not reported as Spam

Post 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!
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: UNTRUSTED NETWORK: Message not reported as Spam

Post 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...
Pukkeltje
Posts: 11
Joined: 08 Sep 2016 08:32

Re: UNTRUSTED NETWORK: Message not reported as Spam

Post 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.
Post Reply