Postfix is setup using virtual domains and addresses, using SQL queries to get 
user addresses and aliases.
I am using a milter that runs during the RCPT and DATA stages.
An email is received to an al...@example.com address that maps to a real 
u...@example.com address.

During the RCPT stage the milter is given al...@example.com for the rcpt_addr.
But during the DATA stage the milter is given u...@example.com instead of 
al...@example.com.

My milter logic is processing for al...@example.com during RCPT but then during 
DATA the email address has changed to u...@example.com messing up the logic.
I have enable_original_recipient=yes, but I obviously misunderstood that 
setting as that isn't sending the original RCPT address to the milter.

Is there anyway for the (alias) envelope RCPT address to be sent to the milter 
during DATA? Or any creative work arounds so the milter logic is working with 
the alias during DATA?

I don't know if it's relevant but i also have:
    milter_protocol = 6
    milter_rcpt_macros = i {rcpt_addr} {rcpt_host} {rcpt_mailer} {tls_version}

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

Reply via email to