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 08-30-2006, 02:32 PM   #1
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
How can I save Sendmail relayed mqueue messages?


Did some searching but most posts talk about how to empty the mqueue not how to save it.

In normal operation Sendmail puts the message files in /var/spool/mqueue to be sent out then deletes the entries once the message is sent. On a new mail server this is working like a champ.

However since it is a mail server which we created to handle a new domain for automated billing message there is a desire to see the actual text of the messages we are sending out. (Messages are originating from an Oracle process on another server and being relayed through this one to the outside world.)

Of course a while loop could be created to try to copy the files as they are created but it would likely be fairly hit or miss and also would likely chew up a lot of CPU.

I’m wondering if there is an adjustment that can be made to sendmail.cf that would make it either hold the messages after sent or duplicate the ones sent to another directory?

This is Sendmail 8.13.1.
 
Old 07-17-2012, 05:36 PM   #2
poe101
LQ Newbie
 
Registered: Jun 2012
Location: Dublin
Distribution: Various Ubuntu (a server and several desktops)
Posts: 7
Blog Entries: 1

Rep: Reputation: Disabled
Maybe its an over simplification or will double your mail server load but why not 'bcc' the required emails to a dummy account ?
 
  


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
/var/spool/mqueue/ is empty, but Sendmail keeps on sending messages guarriman Linux - Software 1 02-20-2006 04:46 AM
Sendmail queued messages twantrd Linux - General 2 02-17-2006 08:16 PM
Configuring Sendmail to save "Sent Messages"? provo1234 Linux - Networking 1 01-08-2005 02:10 AM
Where does fetchmail save the messages gubak Linux - Networking 1 08-04-2004 06:12 AM
Sendmail don't want deliver messages ruddy Linux - Software 0 01-14-2004 08:24 AM

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

All times are GMT -5. The time now is 07:03 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