Dnia  7.07.2022 o godz. 14:26:43 Linkcheck pisze:
> I have a relatively new installation of postfix with clamav and spamassassin
> milters. In general it seems to work fine.
> 
> The debian server sends a variety of notifications from localhost through
> postfix to a domain mailbox ad...@example.co.uk. On the way it's filtered by
> spamassassin, which is pointless. Could someone suggest a way to bypass SA
> for localhost, please?

I see two options:
1) check the software that is sending notifications on the server and try to
reconfigure it to send messages directly via /usr/sbin/sendmail instead of
doing a SMTP connection to localhost. With mail submitted via
/usr/sbin/sendmail, only milters sepcified in your non_smtpd_milters=
setting will be run.

2) Configure in master.cf two instances of smtpd service: one that is bound
only to localhost, and another that is bound to actual IP address of the
server. The instance that is bound to localhost should have similar
parameters defined as for your submission service (which skips most of the
milters). Instead of this entry in master.cf:

smtp       inet  n       -       n       -       -       smtpd

you would have these two:

yourhostname:smtp       inet  n       -       n       -       -       smtpd
localhost:smtp       inet  n       -       n       -       -       smtpd -o ....

(where -o .... are options similar as in submission service). 'yourhostname'
should be a hostname that is assigned in /etc/hosts to your real (ie. not
127.0.0.1) IP address.
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."

Reply via email to