Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 8th February 2009, 10: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[]Feb 8 12:09:04 server1 postfix/cleanup[4732]: 8B84F2239C9: message-id=<32872. 3.250>
Feb 8 12:09:04 server1 postfix/cleanup[4732]: 8B84F2239C9: warning: header Subject: test from localhost.localdomain[]; 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=[] [], 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
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 12:14
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 18:51
slow download through webserver problem snewp Technical 14 9th May 2008 06:25
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 10:40

All times are GMT +2. The time now is 18:44.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.