LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-08-2016, 03:47 PM   #1
rwschneider1
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).

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

Rep: Reputation: 938Reputation: 938Reputation: 938Reputation: 938Reputation: 938Reputation: 938Reputation: 938Reputation: 938
A google search shows literally hundreds of results for this, what have you tried so far?
 
Old 02-11-2016, 10:44 AM   #3
rwschneider1
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:

always_bcc=journal@localhost

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, user@mydomain.com, user@myaliasdomain.com?

Thanks!
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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