On 30.09.2011, at 19:25, Simeon Ott wrote: > hello, > > i recently configured gnarwl autoresponder on my mailserver. the > autoresponder works great as long as the sender doesn't use BATV. otherwise > the autoresponded message is not delivered to the origin sender. is there a > possibility to pipe another attribute then ${sender} in the master.cf? > > here are the relevant configuration parts: > master.cf: > gnarwl unix - n n - - pipe flags=F > user=vmail argv=/usr/bin/gnarwl -a ${user} -s ${sender} > > transport(.db) > autoreply.example.com gnarwl: > > gnarwl.cfg > # Name of the macro, refering to the "From:" field of a received mail > map_sender $sender > # How to send mail. Specify full name to your MTA plus arguments. Only the > # map_sender and map_receiver macros are expanded. This program must be > # able to accept email from stdin. > # mta /usr/sbin/sendmail -F $recepient -t $sender > mta /usr/sbin/sendmail -f $recepient -F $recepient $sender > > if I send an email from a server which uses BATV verification (as microsoft > does), in the following case «send...@senderdomain.com», postfix pipes for > the sender attribute something like this to gnarwl: > <prvs=1254408a08=send...@senderdomain.com> > > gnarwl picks this up and tries to send an autoresponse via mta. it failes > with trying to send a message to <prvs>, which does not exist on the system. > > following the mail.log of the explained mail exchange > Sep 30 09:22:33 ares postgrey[28908]: action=pass, reason=triplet found, > delay=903, client_name=am1ehsobe002.messaging.microsoft.com, > client_address=213.199.154.205, > sender=prvs=1254408a08=send...@senderdomain.com, recipient=rc...@rcvdomain.com > Sep 30 09:22:33 ares postfix/smtpd[23207]: DC9FE2C6101: > client=am1ehsobe002.messaging.microsoft.com[213.199.154.205] > Sep 30 09:22:33 ares postfix/cleanup[23790]: DC9FE2C6101: > message-id=<0fd46e70-f8b5-40a1-818b-3abe7871a...@senderdomain.com> > Sep 30 09:22:34 ares postfix/qmgr[23383]: DC9FE2C6101: > from=<prvs=1254408a08=send...@senderdomain.com>, size=2824, nrcpt=2 (queue > active) > Sep 30 09:22:34 ares postfix/smtpd[23207]: disconnect from > am1ehsobe002.messaging.microsoft.com[213.199.154.205] > Sep 30 09:22:35 ares postfix/smtpd[23796]: connect from localhost[127.0.0.1] > Sep 30 09:22:35 ares postfix/smtpd[23796]: B00CF2C649F: > client=localhost[127.0.0.1] > Sep 30 09:22:35 ares postfix/cleanup[23790]: B00CF2C649F: > message-id=<0fd46e70-f8b5-40a1-818b-3abe7871a...@senderdomain.com> > Sep 30 09:22:35 ares postfix/qmgr[23383]: B00CF2C649F: > from=<prvs=1254408a08=send...@senderdomain.com>, size=3407, nrcpt=3 (queue > active) > Sep 30 09:22:35 ares postfix/smtpd[23796]: disconnect from > localhost[127.0.0.1] > Sep 30 09:22:35 ares amavis[23051]: (23051-08) Passed CLEAN, > [213.199.154.205] [193.138.69.163] <prvs=1254408a08=send...@senderdomain.com> > -> > <"rc...@rcvdomain.com,rc...@rcvdomain.com"@autoreply.example.com>,<rc...@rcvdomain.com,rc...@rcvdomain.com>, > Message-ID: <0fd46e70-f8b5-40a1-818b-3abe7871a...@senderdomain.com>, > mail_id: uyNBYKR8Tz1s, Hits: -2.6, size: 2824, queued_as: B00CF2C649F, 1817 ms > Sep 30 09:22:35 ares postfix/smtp[23791]: DC9FE2C6101: > to=<rc...@rcvdomain.com,rc...@rcvdomain.com@autoreply.example.com>, > relay=127.0.0.1[127.0.0.1]:10024, delay=2, delays=0.19/0/0.01/1.8, dsn=2.0.0, > status=sent (250 2.0.0 Ok, id=23051-08, from MTA([127.0.0.1]:10025): 250 > 2.0.0 Ok: queued as B00CF2C649F) > Sep 30 09:22:35 ares postfix/smtp[23791]: DC9FE2C6101: > to=<rc...@rcvdomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2, > delays=0.19/0/0.01/1.8, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=23051-08, > from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as B00CF2C649F) > Sep 30 09:22:35 ares postfix/qmgr[23383]: DC9FE2C6101: removed > Sep 30 09:22:35 ares postfix/pipe[23797]: B00CF2C649F: > to=<rc...@rcvdomain.com>, relay=maildrop, delay=0.22, > delays=0.09/0.01/0/0.12, dsn=2.0.0, status=sent (delivered via maildrop > service) > Sep 30 09:22:35 ares postfix/pickup[23053]: EE6662C64A7: uid=5000 > from=<rc...@rcvdomain.com> > Sep 30 09:22:35 ares postfix/cleanup[23790]: EE6662C64A7: > message-id=<20110930072235.ee6662c6...@ares.intra.example.com> > Sep 30 09:22:36 ares postfix/pipe[23817]: B00CF2C649F: > to=<rc...@rcvdomain.com,rc...@rcvdomain.com@autoreply.example.com>, > relay=gnarwl, delay=0.3, delays=0.09/0.04/0/0.17, dsn=2.0.0, status=sent > (delivered via gnarwl service) > Sep 30 09:22:36 ares postfix/pipe[23817]: B00CF2C649F: > to=<rc...@rcvdomain.com,rc...@rcvdomain.com@autoreply.example.com>, > relay=gnarwl, delay=0.35, delays=0.09/0.04/0/0.22, dsn=2.0.0, status=sent > (delivered via gnarwl service) > Sep 30 09:22:36 ares postfix/qmgr[23383]: B00CF2C649F: removed > Sep 30 09:22:36 ares postfix/qmgr[23383]: EE6662C64A7: > from=<rc...@rcvdomain.com>, size=935, nrcpt=1 (queue active) > Sep 30 09:22:40 ares postfix/smtpd[23796]: connect from localhost[127.0.0.1] > Sep 30 09:22:40 ares postfix/smtpd[23796]: F1F592C6101: > client=localhost[127.0.0.1] > Sep 30 09:22:41 ares postfix/cleanup[23790]: F1F592C6101: > message-id=<20110930072235.ee6662c6...@ares.intra.example.com> > Sep 30 09:22:41 ares postfix/qmgr[23383]: F1F592C6101: > from=<rc...@rcvdomain.com>, size=1578, nrcpt=1 (queue active) > Sep 30 09:22:41 ares postfix/smtpd[23796]: disconnect from > localhost[127.0.0.1] > Sep 30 09:22:41 ares amavis[23081]: (23081-08) Passed CLEAN, > <rc...@rcvdomain.com> -> <p...@ares.intra.example.com>, Message-ID: > <20110930072235.ee6662c6...@ares.intra.example.com>, mail_id: Ie+WuC0MyE5S, > Hits: -1.901, size: 933, queued_as: F1F592C6101, 5101 ms > Sep 30 09:22:41 ares postfix/smtp[23791]: EE6662C64A7: > to=<p...@ares.intra.example.com>, orig_to=<prvs>, > relay=127.0.0.1[127.0.0.1]:10024, delay=5.3, delays=0.17/0/0.01/5.1, > dsn=2.0.0, status=sent (250 2.0.0 Ok, id=23081-08, from > MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as F1F592C6101) > Sep 30 09:22:41 ares postfix/qmgr[23383]: EE6662C64A7: removed > Sep 30 09:22:41 ares postfix/local[23824]: F1F592C6101: > to=<p...@ares.intra.example.com>, relay=local, delay=0.31, > delays=0.17/0.05/0/0.09, dsn=5.1.1, status=bounced (unknown user: "prvs") > Sep 30 09:22:41 ares postfix/cleanup[23790]: 4A6A52C64A7: > message-id=<20110930072241.4a6a52c6...@ares.intra.example.com> > Sep 30 09:22:41 ares postfix/qmgr[23383]: 4A6A52C64A7: from=<>, size=3502, > nrcpt=1 (queue active) > Sep 30 09:22:41 ares postfix/bounce[23825]: F1F592C6101: sender non-delivery > notification: 4A6A52C64A7 > Sep 30 09:22:41 ares postfix/qmgr[23383]: F1F592C6101: removed > Sep 30 09:22:41 ares postfix/pipe[23797]: 4A6A52C64A7: > to=<rc...@rcvdomain.com>, relay=maildrop, delay=0.16, > delays=0.07/0.01/0/0.08, dsn=2.0.0, status=sent (delivered via maildrop > service) > Sep 30 09:22:41 ares postfix/qmgr[23383]: 4A6A52C64A7: removed > > any ideas how i could fix this? > thank you in advance for your help
i forgot to add my configuration in main.cf. here it is: # autoresponder recipient_bcc_maps = ldap:ar ar_server_host = ldap.intra.example.com ar_search_base = ou=domains,dc=intra,dc=example,dc=com ar_scope = sub ar_query_filter = (&(&(objectClass=CourierMailAccount)(vacationActive=TRUE))(mail=%s)) ar_result_attribute = mail ar_result_format = %s,%s...@autoreply.example.com ar_version = 3 jimmy