Dear Viktor, you're probably right but that would be one of possible ways to do auto-responses. However in this case the autoresponser is not the clue. The original_recipient should work as expected, shouldn't it ? I tried to use no_address_mappings in master.cf and autoresponder_destination_recipient_limit=1 as was written in postfix documentation but without success. I can't find other options :(
2014-10-01 14:47 GMT+02:00 Viktor Dukhovni [via Postfix] <ml-node+s1071664n71295...@n5.nabble.com>: > 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. > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://postfix.1071664.n5.nabble.com/Postfix-original-recipient-tp71161p71295.html > To unsubscribe from Postfix original_recipient, click here. > NAML -- View this message in context: http://postfix.1071664.n5.nabble.com/Postfix-original-recipient-tp71161p71296.html Sent from the Postfix Users mailing list archive at Nabble.com.