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
as suggested in the debugging how-to here is my postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no best_mx_transport = local biff = no broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix content_filter = smtp-amavis:[127.0.0.1]:10024 daemon_directory = /usr/lib/postfix disable_vrfy_command = yes html_directory = /usr/share/doc/postfix/html ignore_mx_lookup_error = yes inet_interfaces = localhost, mail.intra.example.com mailbox_command = mailbox_size_limit = 0 message_size_limit = 15360000 mydestination = ares, ares.intra.example.com, mail.intra.example.com, mail.example.com, localhost myhostname = ares.intra.example.com mynetworks = 127.0.0.0/8, 123.123.123.0/24 readme_directory = /usr/share/doc/postfix recipient_bcc_maps = ldap:ar recipient_delimiter = + relayhost = setgid_group = postdrop smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_helo_required = yes smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, check_policy_service inet:[127.0.0.1]:10023, reject_rbl_client cbl.abuseat.org smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = example.com smtpd_sasl_security_options = noanonymous smtpd_tls_CAfile = /etc/postfix/tls/cacert.crt smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/postfix/tls/mail.crt smtpd_tls_key_file = /etc/postfix/tls/mail.key smtpd_tls_loglevel = 3 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes transport_maps = hash:/etc/postfix/transport virtual_alias_maps = ldap:valias, ldap:vgroup virtual_gid_maps = static:5000 virtual_mailbox_base = /var/spool/postfix/virtual virtual_mailbox_domains = ldap:vdomain virtual_mailbox_maps = ldap:vuser virtual_minimum_uid = 100 virtual_transport = maildrop: virtual_uid_maps = static:5000