On Wed, Apr 09, 2025 at 03:26:27PM +0200, Gioele Pannetto via Postfix-users 
wrote:
> Hi,
> I'm configuring an inbound-only Postfix server and I have connected an
> antispam software using the milter interface of Postfix with the
> smtpd_milters propriety.
> 
> Suppose I have a mailbox (u...@example.com) and an alias to that mailbox
> (al...@example.com). In the virtual_mailbox_maps I have the first address,
> in virtual_alias_maps I have the second address mapped to the first.
> 
> Right now when I send an email to al...@example.com the milter receives that
> address as the recipient.
> Is there a way to pass the expanded address to the milter? The perfect
> solution for my use case would be to receive the expanded address as the
> RCPT in the milter, but I'm open to alternative solutions.

You have a choice between running milters while the SMTP client is still
waiting for a response, and therefore being able to reject some
recipients or the entire message, and running milters *after* the
message is accepted (a.k.a. "post-queue" content-inspection), which
can happen after virtual alias rewriting has taken place.

Which if these do you want more, pre-queue (ability to return SMTP
5XX responses), or post-queue (ability to handle rewritten recipients)?

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to