Hey all!

So….I'm not even sure how to phrase this in a google search, so here's what I 
have in main.cf:

smtpd_recipient_restrictions =
        permit_mynetworks,
        check_recipient_access regexp:/etc/postfix/reject-users,
        …

from reject-users,
        /us...@domain.com/              OK
        /us...@domain.com/              OK
        /.*@domain/                     DISCARD

So…if I send one email to three users, user1,user2, and an address not in the 
list of user3, the below is what I get: 

May 16 04:49:23 gateway postfix/smtpd[18493]: connect from homebox[myip]
May 16 04:49:23 gateway postfix/smtpd[18493]: 4902923A2A2: client=homebox[myip]
May 16 04:49:23 gateway postfix/smtpd[18493]: 4902923A2A2: discard: RCPT from 
homebox[myip]: <us...@domain.com>: Recipient address triggers DISCARD action; 
from=<goodemailaddress> to=<us...@domain.com> proto=ESMTP helo=<mailhost>
May 16 04:49:23 bpagateway postfix/smtpd[18493]: disconnect from homebox[myip]

Postfix appears to discard the entire email.  Is there a way to change this 
behavior so postfix would still send to the two good addresses, but discard the 
one that matches?

In my real world setup, my reject-users is alphabetical…I've seen emails that 
get sent to say three people, and one incorrect one starting with say the 
letter 'b' gets the entire email discarded, even through addresses in my 
reject-users starting with say 'r' and 's' are addressees in the email.  I hope 
that makes sense…thank you.
 
James

Reply via email to