Noel Jones: > On 3/9/2011 10:26 AM, Mauro wrote: > > On 9 March 2011 16:19, Reindl Harald<h.rei...@thelounge.net> wrote: > >> [root@mail:~]$ cat maillog | grep -i sasl | grep reindl | tail -n 2 > >> Mar 9 15:00:22 mail postfix/smtpd[7582]: 0BA7FE9: > >> client=rh.thelounge.net[10.0.0.99], sasl_method=PLAIN, > >> sasl_username=h.rei...@thelounge.net > >> Mar 9 16:23:45 mail postfix/smtpd[8877]: 614CEE8: > >> client=rh.thelounge.net[10.0.0.99], sasl_method=PLAIN, > >> sasl_username=h.rei...@thelounge.net > >> > >> [root@mail:~]$ cat maillog | grep 614CEE8 > >> Mar 9 16:23:45 mail postfix/smtpd[8877]: 614CEE8: > >> client=rh.thelounge.net[10.0.0.99], sasl_method=PLAIN, > >> sasl_username=h.rei...@thelounge.net > >> Mar 9 16:23:45 mail postfix/cleanup[8918]: 614CEE8: > >> message-id=<4d779b81.3050...@thelounge.net> > >> Mar 9 16:23:45 mail postfix/qmgr[19091]: 614CEE8: > >> from=<h.rei...@thelounge.net>, size=2543, nrcpt=1 (queue active) > >> Mar 9 16:23:45 mail postfix/lmtp[8303]: 614CEE8: > >> to=<strip...@thelounge.net>, relay=127.0.0.1[127.0.0.1]:24, > >> delay=0.15, delays=0.03/0/0/0.12, dsn=2.0.0, status=sent (215 > >> Recipient<strip...@thelounge.net> OK) > >> Mar 9 16:24:15 mail postfix/qmgr[19091]: 614CEE8: removed > > > > But from what I undestand 614CEE8 is not unique and I have to parse > > logs for one year. > > counters for a specific queueid should be reset after a ... > QUEUEID: removed" log entry.
Correct. With current Postfix implementations, there are two "marker" records that you can use: - The "postfix/qmgr .... removed" record that says the file is deleted. This record was introduced with Postfix version 2.1. - The "postfix/smtpd ... client=..." that says the file is created. This record is written by all Postfix versions. There is no equivalent record for mail that is submitted with the Postfix sendmail command. Instead use "postfix/cleanup .. message-id=..." which is also logged for SMTP mail. Wietse