Hello,
today I noticed I don;t have orig_to in my log file even that the address is rewrited.
I googled this problem with no luck.
According to what Viktor wrote in this message http://www.mail-archive.com/postfix-users@postfix.org/msg08917.html orig_to should appear in case of virtual_alias_maps rewriting. Following this thread I have found an advice to do cleanup -v and watch logs. In fact address is modified by virtual_alias_maps but in logs I don't have orig_to (only the last address). How can I enable orig_to in logs? Is this because of delivering via dovecot service?
Any help will be appreciated.

Michal

Below is logfile with cleanup -v (part with recipient address):

Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A log_client_address=10.0.15.24 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A log_client_port=51933 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A log_message_origin=unknown[10.0.15.24] Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A log_helo_name=server2.abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A log_protocol_name=ESMTP Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A client_name=unknown Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A reverse_client_name=unknown Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A client_address=10.0.15.24 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A client_port=51933 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A helo_name=server2.abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A client_address_type=2 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope A dsn_orig_rcpt=rfc822;michal.li...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope R michal.li...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr request = rewrite Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr rule = local Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr address = michal.li...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/rewrite socket: wanted attribute: flags Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: flags Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute value: 0 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/rewrite socket: wanted attribute: address Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: address Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute value: michal.li...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/rewrite socket: wanted attribute: (list terminator) Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: (end) Aug 8 00:13:43 mailserver postfix/cleanup[14571]: rewrite_clnt: local: michal.li...@abc.pl -> michal.li...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: been_here_check: michal.li...@abc.pl: 0 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr request = lookup Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr table = mysql:/etc/postfix/mysql_virtual_alias_maps.cf Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr flags = 16448 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr key = michal.li...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/proxymap socket: wanted attribute: status Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: status Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute value: 0 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/proxymap socket: wanted attribute: value Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: value Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute value: mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/proxymap socket: wanted attribute: (list terminator) Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: (end) Aug 8 00:13:43 mailserver postfix/cleanup[14571]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql_virtual_alias_maps.cf flags=lock|fold_fix key=michal.li...@abc.pl -> status=0 result=mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: maps_find: virtual_alias_maps: proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): michal.lipka@
abc.pl = mli...@abc.pl
Aug 8 00:13:43 mailserver postfix/cleanup[14571]: mail_addr_find: michal.li...@abc.pl -> mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr request = rewrite Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr rule = local Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr address = mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/rewrite socket: wanted attribute: flags Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: flags Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute value: 0 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/rewrite socket: wanted attribute: address Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: address Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute value: mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/rewrite socket: wanted attribute: (list terminator) Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: (end) Aug 8 00:13:43 mailserver postfix/cleanup[14571]: rewrite_clnt: local: mli...@abc.pl -> mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: mail_addr_map: michal.li...@abc.pl -> 0: mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: been_here_check: mli...@abc.pl: 0 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr request = lookup Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr table = mysql:/etc/postfix/mysql_virtual_alias_maps.cf Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr flags = 16448 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: send attr key = mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/proxymap socket: wanted attribute: status Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: status Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute value: 0 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/proxymap socket: wanted attribute: value Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: value Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute value: mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: private/proxymap socket: wanted attribute: (list terminator) Aug 8 00:13:43 mailserver postfix/cleanup[14571]: input attribute name: (end) Aug 8 00:13:43 mailserver postfix/cleanup[14571]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql_virtual_alias_maps.cf flags=lock|fold_fix key=mli...@abc.pl -> status=0 result=mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: maps_find: virtual_alias_maps: proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): mli...@abc.pl = mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: mail_addr_find: mli...@abc.pl -> mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: rewrite_clnt: cached: local: mli...@abc.pl -> mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: mail_addr_map: mli...@abc.pl -> 0: mli...@abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: been_here: mli...@abc.pl: 0 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: been_here_check: mli...@abc.pl: 1 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: been_here: mli...@abc.pl: 0 Aug 8 00:13:43 mailserver postfix/cleanup[14571]: maps_find: recipient_bcc_maps: michal.li...@abc.pl: not found Aug 8 00:13:43 mailserver postfix/cleanup[14571]: match_string: abc.pl ~? mailserver.abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: match_string: abc.pl ~? localhost Aug 8 00:13:43 mailserver postfix/cleanup[14571]: match_string: abc.pl ~? localhost.localdomain Aug 8 00:13:43 mailserver postfix/cleanup[14571]: match_string: abc.pl ~? localhost.mailserver.abc.pl Aug 8 00:13:43 mailserver postfix/cleanup[14571]: match_list_match: abc.pl: no match Aug 8 00:13:43 mailserver postfix/cleanup[14571]: maps_find: recipient_bcc_maps: @abc.pl: not found Aug 8 00:13:43 mailserver postfix/cleanup[14571]: mail_addr_find: michal.li...@abc.pl -> (not found)
Aug  8 00:13:43 mailserver postfix/cleanup[14571]: initial envelope M
Aug 8 00:13:43 mailserver postfix/qmgr[14487]: 033D96251CC: from=<mic...@lipka.waw.pl>, size=1678, nrcpt=2 (queue active) Aug 8 00:13:43 mailserver postfix/pipe[14577]: 033D96251CC: to=<mli...@abc.pl>, relay=dovecot, delay=0.39, delays=0.1/0.06/0/0.23, dsn=2.0.0, status=sent (delivered via dovecot service)

Reply via email to