Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-08-2016, 02:47 PM   #1
LQ Newbie
Registered: May 2011
Posts: 3

Rep: Reputation: 0
Logging outgoing message content

Hey team,

This feels like a question that's been answered before, but Google has turned up nothing, so here I am.

I have a RHEL server running sendmail that sends out a variety of notifications to a huge user base. Today, my manager got an email from that server, with no subject or body in it. Naturally, he's concerned that some of our users might've received similar messages and he wants me to investigate.

I can see that messages are being sent out if I review /var/log/maillog, but it doesn't show me any of the message content. What I want to do is log all outbound messages' contents, including the subject and body.

I realize this can generate a LOT of data very quickly, so naturally I would set up logrotate to clear it out on a pretty frequent basis.

Also, I'm not opposed to changing my mailer daemon (to postfix, for example).

- Rick
Old 02-10-2016, 07:24 AM   #2
Senior Member
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,733

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
A google search shows literally hundreds of results for this, what have you tried so far?
Old 02-11-2016, 09:44 AM   #3
LQ Newbie
Registered: May 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Well, I decided to switch over to Postfix because the main config file has exactly what I'm looking for. The config option is:


Can someone tell me to configure Postfix to accept all mail destined for the server, regardless of what domain it's for? For example, user@localhost,,



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
Problems with logging outgoing SMTP connections piotr.pawlowski Linux - Security 2 10-27-2011 01:42 PM
how to discard outgoing mail in postfix that have some specific content in attachment alokkic Red Hat 3 07-30-2010 01:39 AM
logging outgoing mails in mailserver????? nics Linux - Server 17 01-01-2009 05:19 AM
Logging incoming/outgoing mail - how to? ziphem Linux - Newbie 0 09-23-2004 03:25 PM
Editing outgoing email content senthil Linux - Software 0 06-13-2003 07:46 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration