Tom,

> I setup the MYNETS policy bank to
> skip spam checks for mail from internal to external.
> For mail which originates from exchange to external
> recipients this is working perfectly. However, mail
> which is beeing generated local is not recognised
> as local mail and is still fully checked (i.e. just
> doing a 'mail -s Test root < /dev/null).

pickup service does not supply client IP address to a content
filter as there is no client IP address when mail is submitted
directly, e.g. through sendmail binary or 'mail' utility.

There are other mechanisms beside xforward to request policy bank
switching. If a client IP address is not available (like in case
of a pickup service), one can cause a Postfix service like pickup
to send mail for content filtering to a different port, e.g.:

  pickup     fifo  n  -  n  60  1  pickup
    -o content_filter=smtp-amavis:[127.0.0.1]:10043

and let amavisd apply a specific policy bank (MYNETS or any
other bank name) when request comes in on such port, e.g.:

  $inet_socket_port = [10024,10043];
  $interface_policy{'10043'} = 'MYNETS';

See http://www.ijs.si/software/amavisd/amavisd-new-docs.html#pbanks

If all you need is to skip content filtering for mail coming
in through pickup, just do what Gary suggested, supplying
an empty content_filter option to pickup service to override
a global setting.

  Mark



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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