LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02: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, 07:24 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
A google search shows literally hundreds of results for this, what have you tried so far?
 
Old 02-11-2016, 09: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



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

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

All times are GMT -5. The time now is 11:54 PM.

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