Fred Morris: > By default, local_recipient_maps looks something like this, and to be > (locally) delivered something must have an envelope recipient in here. > In fact, SMTP milters are not called until after this check is made: > > local_recipient_maps = proxy:unix:passwd.byname $alias_maps > > I want to call a milter as a "bump in the wire" before this check to > potentially alter local recipients prior to them ricocheting off of all > of that shininess.
Why use a milter? Why not tweak local_recipient_maps lookups? You should be able to use a milter before the proxy filter to BLOCK a recipient that Postfix would have accepted (the opposite, using a milter to ACCEPT a recipient that Postfix would reject makes no sense). net - postfix smtpd - proxy filter - postfix smtpd - cleanup - queue milter But this milter won't be able to process header, body, or end-of-body events. Only the events associated with SMTP commands. Wietse