Can I, at least, add the from in the logs ?
Jun 15 11:59:01 smtp postfix/smtp[3061]: 683EB37AECA3:
to=<[email protected]>, relay=mx1.hotmail.com[65.55.92.136]:25,
conn_use=91, delay=401662, delays=401197/464/0.13/0.32, dsn=2.0.0,
status=sent (250 <[email protected]>
Queued mail for delivery)
would be :
Jun 15 11:59:01 smtp postfix/smtp[3061]: 683EB37AECA3:
from=<[email protected]>, to=<[email protected]>,
relay=mx1.hotmail.com[65.55.92.136]:25, conn_use=91, delay=401662,
delays=401197/464/0.13/0.32, dsn=2.0.0, status=sent (250
<[email protected]> Queued mail for delivery)
Stéphane.
Magnus Bäck a écrit :
On Mon, June 15, 2009 10:35 am, Stéphane MERLE said:
I would love to customize a little the logs of postfix. We are using
postfix for massmailing and I'd like to be able to get statistic on
mailing, so I would like to tag each mail with the mailing number so I
can split the log files by mailing and then get the bounced/sent/spam
detection for each mailing and get back to our users with specific data
for there mailings.
Use the queue id to correlate log entries for a single message. That'll
let you obtain statistics for delivered and rejected messages. Bounces are
another thing -- there is no way for Postfix to know that a particular
bounce message is for a specific message that Postfix has sent. What you
can do is use VERP to at least identify which recipient addresses lead to
bounces.