Extra postfix log for final delivery ?

Discussion in 'Installation/Configuration' started by jayesha, Feb 8, 2009.

  1. jayesha

    jayesha New Member

    Dear All ,

    I am having one query , how to get extra mailog in one line in postfix other than the default one which is coming in /var/log/mailllog ? ( i.e final status / logreport in one line )

    I installed the postfix mailserver with help of "http://www.howtoforge.com/virtual_users_postfix_courier_mailscanner_clamav_centos"

    I want to get the maillog report which contain the date , time , sender email id , receipent email id ,subjetct of email , and status of mail ( sent , bounce , deferred or reject ) ,

    Is it possible to get final delivery report line in maillog with above ??

    For Example the email which is sent locally , I am getting following log ( similarly for outging email )

    ########
    Feb 8 12:09:04 server1 postfix/smtpd[4724]: 8B84F2239C9: client=localhost.localdomain[127.0.0.1]Feb 8 12:09:04 server1 postfix/cleanup[4732]: 8B84F2239C9: message-id=<[email protected]>
    Feb 8 12:09:04 server1 postfix/cleanup[4732]: 8B84F2239C9: warning: header Subject: test from localhost.localdomain[127.0.0.1]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<server1.test.com>
    Feb 8 12:09:04 server1 postfix/qmgr[4715]: 8B84F2239C9: from=<[email protected]>, size=1086, nrcpt=1 (queue active)
    Feb 8 12:09:04 server1 sendmail[4723]: n186d4Hp004723: [email protected], [email protected] (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30533, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 8B84F2239C9)
    Feb 8 12:09:05 server1 postfix/pipe[4734]: 8B84F2239C9: to=<[email protected]>, relay=maildrop, delay=1, status=sent (yourdomain.com)
    Feb 8 12:09:05 server1 postfix/qmgr[4715]: 8B84F2239C9: removed

    #########

    Is it possible to get to "ctladdr=" name in final delivery of each email ?

    I tried the mailwatch with mailscanner , but it's report showing the scanning log and not the actual final delivery report.

    Is there any script / postfix parameter by which I can achive the my final aim ?

    Please guid me I am really stuck here .

    Thanks & Regards
    Jayesh
     

Share This Page