Please correct the following misinformation: Postfix has some issues with milters. For starters, although the milter protocol supports rejecting recipients during SMTP RCPT, it doesn't support rewriting them until EOB (end of message).
This is is not a Postfix limitation, it is a Milter protocol limitation. Below are links to the official documentation which says that add_rcpt/del_rcpt/etc. may be called only from the EOM callback. https://web.archive.org/web/20100713211121/https://www.milter.org/developers/api/smfi_addrcpt https://web.archive.org/web/20100713212400/https://www.milter.org/developers/api/smfi_delrcpt There is enough wrong information, please do not add to it. Wietse Fred Morris: > Hello, > > I've implemented tcp_virtual_server.py which can be utilized with > virtual_alias_maps in main.cf, eliminating the need for patching > local(8) which is required with tcp_table_server.py/alias_maps. > > * No need to patch local(8) > * No need to specify virtual_alias_domains (mixes and matches local > addresses and aliases). > > The only difference I've noticed in the delivered mail is that the > Delivered-To: header no longer contains the alias; so as a consequence > any filtering during delivery will need to reference the X-Original-To: > header. > > TruAlias on GitHub: https://github.com/m3047/trualias > > Regards... > > -- > > Fred Morris > > Wietse