On Tue, Dec 23, 2008 at 04:50:56PM -0600, J.P. Trosclair wrote: > >Hello, I have clients sending mails to an non-existent email > >address/domain, emailerm...@exchange.example.net. I want to discard any > >mail sent to this address. I looked at smtpd_recipient_restrictions, but > >cant figure out how to get this done. Please help me!! > > Haven't tried this, just something to research further: > > in main.cf: > smtpd_recipient_restrictions = > ....other options.... > check_recipient_access hash:/etc/postfix/recipient_access > ....other options.... > > in recipient_access: > emailerm...@exchange.example.net DISCARD
Note, this discards the mail for all recipients, not just in the invalid recipient. To discard one recipient, add a transport entry for that recipient u...@example.com discard:reason for log files -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.