Ervin Hegedüs a écrit : > Hello List, > > I try to use ${original_recipients} in master.cf for an external > commands arguments as service. > > The Postfix pipe manual describes it: > > ${original_recipient} > This macro expands to the complete recipient > address before any address rewriting or > aliasing. > > Example: > > vacation unix - n n - - pipe > flags=ORhu user=vacation argv=/usr/local/vacation-ng/vacation-ng.py > ${original_recipient} > > What I want exactly: > there is a simple address, eg: j...@example.com. Joe is member of > i...@example.com virtual address. > b...@example.com also member if i...@example.com. If Joe gets an email, > he wants to send an > auto-reply to sender - if the recipients is j...@example.com. If > recipient is a virtual address, > he doesn't want to send auto-reply. > > But, in that example above the script gets the real address as first > argument, not original > (virtual) address. > > What did I miss? >
most (correct) vacation programs check the To: and Cc: headers. If the (final) recipient is not in these headers, no auto-response should be sent. More on this and other recommendations in RFC 3834. (Please don't build yet another broken auto-responder. there are more checks to do than "original recipient"...) > > I hope my problem is clear. > > Thank you: > > > a.