View Single Post
  #1  
Old 8th February 2009, 09:35
jayesha jayesha is offline
Junior Member
 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Extra postfix log for final delivery ?

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_c entos"

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=<32872.10.15.63.250.1234075144.squirrel@10.15.6 3.250>
Feb 8 12:09:04 server1 postfix/cleanup[4732]: 8B84F2239C9: warning: header Subject: test from localhost.localdomain[127.0.0.1]; from=<user1@yourdomain.com> to=<user2@yourdomain.com> proto=ESMTP helo=<server1.test.com>
Feb 8 12:09:04 server1 postfix/qmgr[4715]: 8B84F2239C9: from=<user1@yourdomain.com>, size=1086, nrcpt=1 (queue active)
Feb 8 12:09:04 server1 sendmail[4723]: n186d4Hp004723: to=user2@yourdomain.com, ctladdr=user1@yourdomain.com (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=<user2@yourdomain.com>, 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
Reply With Quote
Sponsored Links