Elvar,

> > I have the following rules set up to ensure outbound mail is not
> > filtered for spam including mail originating from the box itself.
> > @mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
> >                    10.0.0.0/8 172.30.1.0/24 192.168.0.0/16 );
> > $policy_bank{'MYNETS'} = { # clients in @mynetworks
> >   bypass_spam_checks_maps   => [1],  # don't spam-check internal mail
> >   bypass_banned_checks_maps => [1],  # don't banned-check internal mail
> >   bypass_header_checks_maps => [1],  # don't header-check internal mail
> > };
> > For whatever reason, the local system mail which I have forward to an
> > account located outside of the network keeps getting marked as spam.
> > Root email, mailer-daemon, etc. Can anyone give me any idea as to why
> > those rules aren't preventing local email from being checked as spam?

mouss writes:
> probably because that mail doesn't come via SMTP (sendmail command), and
> thus have no IP...
> if using postfix, you can disable filtering for mail submitted via the 
> sendmail command by adding  -o content_filter=  to the 'pickup' entry

Right, on both accounts.


With 2.4.5 this became more convenient: (from release_notes):

- for the purpose of looking up client IP address in @mynetworks_maps,
  treat unknown/unavailable IP address as 0.0.0.0;  this allows treating
  directly submitted mail on the MTA host (not submitted through SMTP)
  as coming from IP address 0.0.0.0 (i.e. "This" Network - according to
  RFC 1700);

  Note that this is indistinguishable from other reasons when IP address
  is not made available to amavisd, e.g. when smtp_send_xforward_command
  option in Postfix smtp service is not enabled, which is why the default
  setting of @mynetworks does not include a 0.0.0.0/8 network to prevent
  falsely loading a MYNETS policy bank.

  One should add 0.0.0.0/8 to a @mynetworks list only when XFORWARD is known
  to work and if some software on the MTA host is submitting its mail to MTA
  directly, e.g. through a sendmail command, and MYNETS policy bank loading
  is needed for proper processing of such mail;


Mark

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to