LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2003, 06:16 AM   #1
timjames
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
Post Logging mail subject headers in Postfix


Hi,

I want to log the email subject line in the Postfix maillog file.

I have tried using 'always_bcc' to redirect email to a fake user which redirects the email header to the mail log file, using sed command in aliases. Unfortunately this is not working, as it appears Postfix is not sending any mails to bcc.

Any one any ideas on this. It seems a pretty common thing to request, but I haven't had much luck finding any answers on this one.

Thanks,
Tim.
 
Old 03-20-2009, 02:07 PM   #2
frank_w
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
don't know if you need this any more but it hard to find info

Here are the steps:
edit the /etc/postfix/main.cf files add the following line to the header_checks section:

header_checks = pcre:/etc/postfix/header_checks


Edit the /etc/postfix/header_checks file and add the following:
/^Subject:/ WARN

check out /etc/postfix/header_checks file for more info.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 6 09-23-2019 10:09 PM
Piping to mail and adding a subject line. Echo Kilo Linux - General 1 12-03-2005 11:24 AM
Blank emails with no headers??!!!!! (postfix/spamassassin/procmail) birkinshawc Linux - Software 0 03-10-2004 08:59 AM
How do I make procmail recognize ISO encoded subject headers (=?ISO-)? xeza Linux - Software 0 10-06-2003 01:16 PM
How do I enter a subject when awk | data to mail 360 Programming 3 05-06-2002 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration