On Sat, Jan 08, 2011 at 11:43:42AM +0530, Ramprasad wrote:

> Sahil Tandon's header_checks works at smtpd level ( I assume). Can the
> same be implemented at smtp level when the mail is actually sent. 
> The idea is the mail may be queued and the syslog of the transaction
> info should happen when the mail is being sent not when received. 

If you put the unique message-instance identifiers int the Message-Id
instead of the Subject header, then Postfix logs will contain the queue-id
<-> message-id mapping, and also the delivery time of each queue-id.

Logging the Subject in smtp(8) headers does not accurately disclose
the time of delivery, since the delivery may fail (Yahoo, for example,
often tempfails at ".")... The design you describe is I think flawed,
and you really should use the logs in a more natural way.

-- 
        Viktor.

Reply via email to