I have an interesting question about logging.  Postfix is working fine.  I have 
one domain, sermon-archive.info, as mydomain.  All other domains are listed in 
vmail_domains, for example:

lafn.org        OK


vmail_users contains:

bc...@lafn.org                  home_mail/doug/


vmail_alias contains:

bc...@lafn.org                  doug



When email is sent to bc...@lafn.org, the following line is logged:

Aug 15 11:56:15 mail postfix/pipe[63616]: 4GnmjC1J7cz2fjRj: 
to=<d...@mail.sermon-archive.info>, orig_to=<bc...@lafn.org>, relay=dovecot, 
delay=0.16, delays=0.08/0.02/0/0.06, dsn=2.0.0, status=sent (delivered via 
dovecot service)

That line has the to field as mail.sermon-archive.info.  I am a bit confused as 
to why it would be that.  It's not wrong, and it works fine.  It's just that 
the log scanners pick up that as the to address and not the original to so it 
looks like everything was sent to the sermon-archive.info address.  I would 
like to be able to figure out the original to field.  

Looking through the man page for pipe, it appears that master.cf has the 
default arguments of:

 -f ${sender} -d ${recipient}

If I replaced recipient with original_recipient, would that affect the log 
message, or cause any issues with delivery to dovecot?  Would I be better off 
patching the log scanner to pick up the orig_to field?

-- Doug

Reply via email to