Postfix User wrote
> I am trying to reject instead of sending bounce message back when email
> arrives to non existing account at domains hosted by my server.

Anyone having similar problem, check_recipient_access map fixed my problem

postconf -n | grep smtpd_relay_restrictions

smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated,
reject_unauth_destination, check_recipient_access
mysql:/etc/postfix/sqlconf/sender_access.cf

sender_access.cf
query           = SELECT if(count(*) = 0, "REJECT 'User doesn't exist'",
"OK") FROM users u WHERE u.username='%u' AND u.domain='%d' AND u.active='1';



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/Prevent-Backscatter-tp88359p88404.html
Sent from the Postfix Users mailing list archive at Nabble.com.

Reply via email to