On 5 Apr 2021, at 17:49, Steve Dondley wrote:

Sending to pe...@example.org works with these SA settings in master.cf:

smtp     inet  n     -     y     -     -        smtpd
     -o content_filter=spamassassin
     -o receive_override_options=no_address_mappings

spamassassin unix -     n       n       -       -       pipe
user=debian-spamd argv=/usr/bin/spamc -u ${user} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}


However, sending the same email to both pe...@example.org and pe...@example.org results in neither user receiving the email.

I can fix this problem by removing the -u ${user} bit from the master.cf file (see above). Once removed, both recipients receive the email.

How can I get the best of both worlds and get per-user SA settings and actually get email delivered? I tried removing the "-o receive_override_options=no_address_mappings" line but that didn't help.

Add this to your main.cf:

spamassassin_destination_recipient_limit = 1

Refer to the SINGLE-RECIPIENT DELIVERY section of the pipe(8) man page for why. There is also relevant discussion of this and related issues at https://unix.stackexchange.com/questions/247433/postfix-spamassassin-incoming-mail-headers-changes.




--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire

Reply via email to