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.
Maybe its an over simplification or will double your mail server load but why not 'bcc' the required emails to a dummy account ?
|All times are GMT -5. The time now is 09:46 AM.|