POSTFIX2DLF.IN(1) LogReport's Lire Documentation POSTFIX2DLF.IN(1) (NAME) postfix2dlf - postfix dlf (SYNOPSIS) postfix2dlf (DESCRIPTION) postfix2dlf postfix (Distilled Log Format - DLF) Lire . postfix2dlf_pre(1) postfix2dlf_main(1) . stdin DLF stdout . stderr . lr_log2xml(1) . (RATIONALE) postfix2dlf dlf . postfix . ( sendmail rcpts= .) : : queueid from- . : : $LR_POSTFIX_MAX_QUEUE_SIZE . : sort(1) queueid . queueid ( syslog Sun Solaris queueid ). . : sort(1) db . db queueid nof-lines-with-this-id . tmpfile . : . db lr_postfix2dlf_main(1) dlf . ..SH " (EXAMPLES)" : Dec 1 04:02:56 internetsrv postfix/pickup[20919]: 693A3578E: uid=0 from= Dec 1 04:02:56 internetsrv postfix/cleanup[20921]: 693A3578E: message-id= Dec 1 04:02:57 internetsrv postfix/qmgr[20164]: 693A3578E: from=, size=617 (queue active) Dec 1 04:02:57 internetsrv postfix/cleanup[20921]: E325C578D: message-id= Dec 1 04:02:58 internetsrv postfix/local[20924]: 693A3578E: to=, relay=local, delay=3, status=sent (forwarded as E325C578D) Dec 1 04:02:58 internetsrv postfix/qmgr[20164]: E325C578D: from=, size=769 (queue active) Dec 1 04:02:59 internetsrv postfix/smtp[20925]: E325C578D: to=, relay=1.example.com.vp.pt[10.0.0.1], delay=2, status=sent (250 Requested mail action Ok.) Dec 1 06:58:22 internetsrv postfix/smtpd[21142]: connect from 2.example.com.fi[10.0.0.2] Dec 1 06:58:23 internetsrv postfix/smtpd[21142]: 42BFE578D: client=2.example.com.fi[10.0.0.2] Dec 1 06:58:24 internetsrv postfix/cleanup[21143]: 42BFE578D: message-id= Dec 1 06:58:24 internetsrv postfix/qmgr[20164]: 42BFE578D: from=, size=2473 (queue active) Dec 1 06:58:26 internetsrv postfix/smtp[21145]: 42BFE578D: to=, relay=1.example.com.vp.pt[10.0.0.1], delay=3, status=sent (250 Requested mail action Ok.) Dec 1 06:59:22 internetsrv postfix/smtpd[21142]: disconnect from 2.example.com.fi[10.0.0.2] Dec 1 07:08:28 internetsrv postfix/smtpd[21160]: connect from 2.example.com.fi[10.0.0.2] Dec 1 07:08:28 internetsrv postfix/smtpd[21160]: C7B39578D: client=2.example.com.fi[10.0.0.2] Dec 1 07:08:29 internetsrv postfix/cleanup[21161]: C7B39578D: message-id= Dec 1 07:08:29 internetsrv postfix/qmgr[20164]: C7B39578D: from=, size=2173 (queue active) Dec 1 07:08:32 internetsrv postfix/smtp[21163]: C7B39578D: to=, relay=3.example.com.vp.pt[10.0.0.3], delay=4, status=sent (250 Requested mail action Ok.) Dec 1 07:08:33 internetsrv postfix/smtpd[21160]: disconnect from 2.example.com.fi[10.0.0.2] Dec 1 07:18:42 internetsrv postfix/smtpd[21166]: connect from 2.example.com.fi[10.0.0.2] : 1007175776 internetsrv 693A3578E john.doe.2 example.com localhost 127.0.0.1 617 3 0 john.doe.2 example.com localhost 127.0.0.1 sent (forwarded_as_e325c578d) 1007175779 internetsrv E325C578D john.doe.2 example.com localhost 127.0.0.1 769 2 0 john.doe.3 example.com 1.example.com.vp.pt 10.0.0.1 sent (250_requested_mail_action_ok.) 1007186303 internetsrv 42BFE578D john.doe.5 example.com 2.example.com.fi 10.0.0.2 2473 3 0 john.doe.6 example.com 1.example.com.vp.pt 10.0.0.1 sent (250_requested_mail_action_ok.) 1007186908 internetsrv C7B39578D john.doe.8 example.com 2.example.com.fi 10.0.0.2 2173 4 0 john.doe.9 example.com 3.example.com.vp.pt 10.0.0.3 sent (250_requested_mail_action_ok.) postfix2dlf lr_log2report : $ lr_log2report postfix < /var/log/mail.log > report . ( ) : $ LR_SERVICE=email LR_ID=`date +%s` /path/to/lire/convertors/postfix2dlf < /var/log/mail.log > mail.dlf . /path/to/libexec/lire /path/to/lire/convertors PATH TMPDIR LR_DBFILE LR_DBDIR . /path/to/etc/lire/profile_lean /path/to/etc/lire/defaults source ..SH " (LOGFORMAT)" Postfix : (from local to remote) postfix/pickup[81586]: 094BE204: uid=1001 from= postfix/cleanup[81683]: 094BE204: message-id=<20000531080729.L39824@cgmd76206.c.nl> postfix/qmgr[13460]: 094BE204: from=, size=1717 (queue active) postfix/smtp[81685]: 094BE204: to=, relay=smtp.c.nl[212.83.68.146], delay=4, status=sent (250 Message received: 20000531060722.ZCOV13476.relay02@cgmd76206.c.nl) (from local to local) postfix/pickup[81849]: 473B9204: uid=1001 from= postfix/cleanup[81916]: 473B9204: message-id=<200005310901.LAA56567@kludge.mpn.cp.p.com> postfix/qmgr[13460]: 473B9204: from=, size=1997 (queue active) postfix/local[81918]: 473B9204: to=, relay=local, delay=0, status=sent ("|exec /usr/local/bin/procmail -t") (from remote to local) postfix/smtpd[82056]: A17131C5: client=gw-nl1.o-it.com[193.79.128.34] postfix/cleanup[82057]: A17131C5: message-id=<023201bfcad1$16365ba0$775910ac@ehvbos.nl.oit.com> postfix/qmgr[13460]: A17131C5: from=, size=1692 (queue active) postfix/local[82059]: A17131C5: to=, relay=local, delay=1, status=sent ("|/usr/local/majordomo/wrapper majordomo") (from remote to remote) postfix/smtpd[58567]: connect from kweetal.t.nl[131.155.2.7] postfix/smtpd[58567]: 9A16E229: client=kweetal.t.nl[131.155.2.7] postfix/cleanup[58570]: 9A16E229: message-id=<200006041246.OAA23888@bw2.baub.bwk.t.nl> postfix/qmgr[236]: 9A16E229: from=, size=774 (queue active) postfix/smtpd[58567]: disconnect from kweetal.t.nl[131.155.2.7] postfix/smtp[58574]: 9A16E229: to=, relay=mx3.x.nl[194.109.6.48], delay=15, status=sent (250 OAA23290 Message accepted for delivery) (PERFORMANCE) postfix2dlf postfix . : postfix2dlf_pre info read 195257 lines; output 177027 DLF lines; 3 errors postfix2dlf_pre info memory stats: vsize=5900K rss=4508K majflt=430 postfix2dlf_pre info elapsed time in seconds real=626 user=449.16 system=8.7 postfix2dlf_main info read 177027 lines; output 61671 DLF lines; 0 errors postfix2dlf_main info memory stats: vsize=5976K rss=4656K majflt=427 postfix2dlf_main info elapsed time in seconds real=245 user=152.05 system=4.15 . (EXAMPLES) postfix2dlf lr_log2report : $ lr_run lr_log2report postfix < /var/log/maillog TMPDIR : (tmpfile) . postfix (queueids) . . (THANKS) Brad Knowles (patches). Emanuele "luca" lmtp. (SEE ALSO) postfix2dlf_main(1) postfix2dlf_pre(1) dlf : argomail2dlf(1) exim2dlf(1) nms2dlf(1) qmail2dlf(1) sendmail2dlf(1) lr_log2xml(1). (VERSION) $Id: postfix2dlf.in,v 1.40 2006/07/23 13:16:34 vanbaal Exp $ (COPYRIGHT) (C) 2000, 2001, 2002 Stichting LogReport Foundation LogReport@LogReport.org Lire . Lire << >> (GNU General Public License) / ( ) . . << >> . GNU General Public License ( COPYING ) http://www.gnu.org/copyleft/gpl.html . (AUTHORS) Joost van Baal Edwin Groothuis. Lire 2.1.1 2025-09-28 POSTFIX2DLF.IN(1)