Noel Jones wrote: > On 11/9/2016 8:58 AM, Kris Deugau wrote: >> I'm in the process of migrating my personal domain to a new server, and >> in the process I'm switching from sendmail to Postfix. >> >> One feature I haven't been able to quite figure out is part of >> sendmail's "virtusertable" - *most* of this is equivalent to >> virtual_alias_maps, but it also allows you to do a variety of other >> things such as reject arbitrary recipients with a custom SMTP response >> code and message. >> >> For instance: >> >> kdeugau...@deepnet.cx error:5.1.1:550 This address is no longer valid >> as it was sold to spammers >> >> I've come close to an exact match by adding a check_recipient_access map >> to smtpd_recipient_restrictions, but the resulting SMTP status codes >> aren't quite correct - 554 vs 550. > > Yes, check_recipient_access is the right tool for this. You can > manually specify the result code, see: > http://www.postfix.org/access.5.html > > oldu...@example.com 550 5.1.1 address not valid
Ahh, I found my mistake; I misread that reference page. You use EITHER the numeric codes OR the text codes, not both. -kgd