On Wed, Oct 01, 2014 at 02:56:48AM -0700, Artyum wrote: > Thank you for notice Bill. I'll try paste all again as text: > > I noticed that in my postfix configuration there is a problem with > ${original_recipient} which is not set or is overwritten by > ${recipient} > My master.cf is below. The problem is that in the autoresponder -r > ${original_recipient} is equal to ${recipient}. > Because of that, if user address belongs to a group (aliases) then if > sender sends message to this group then the autoresponder responds > from uses address. I want autoresponder only replay if the mail was > sent directly to the user (not throught alias). > I'd like to know the ${original_recipient} to check if the mail was > sent directly to user or to alias group.
IIRC for auto-responses, the correct way to determine whether a message was sent "directly", is to parse the To: and Cc: headers. The envelope will often contain the user name in original-recipient even in mail via lists. -- Viktor.