Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

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


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.

Old 03-20-2009, 02:07 PM   #2
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/ 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.


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 > Forums > Linux Forums > Linux - Software

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

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