On Tue, Mar 10, 2009 at 10:23:30PM -0400, Sahil Tandon wrote:
> On Mar 10, 2009, at 9:27 PM, Curtis wrote:
>
>> I've got the catch-all feature explained here working just fine...
>>
>> http://www.postfix.org/VIRTUAL_README.html
>>
>> Is there an easy way to designate an explicit *invalid* email address so
>> that even though the catch-all is enabled for a domain, a specific email
>> address is considered invalid and is bounced at smtp?
>
> Use transport maps to direct messages for the specific email address to the
> error mailer.
>
> http://www.postfix.org/transport.5.html
> http://www.postfix.org/error.8.html
This works because smtpd(8) policy is applied to input address before
rewriting. One can also enhance the rewriting tables:
virtual:
@example.com [email protected]
[email protected] [email protected]
transport:
[email protected] error:5.1.1 Invalid recipient address
address.invalid error:5.1.1 Invalid recipient address
this bounces the address when submitted locally.
--
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:[email protected]?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.