LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Configuring Sendmail to send duplicate messages to the administrator (https://www.linuxquestions.org/questions/linux-software-2/configuring-sendmail-to-send-duplicate-messages-to-the-administrator-899198/)

kaplan71 08-24-2011 10:38 AM

Configuring Sendmail to send duplicate messages to the administrator
 
Hi there --

I am running a website that is a 'clearinghouse' for files being sent to and received from my company. The website sends e-mail notifications to the intended recipients. The Sendmail server is used for this latter purpose.

To keep close watch of what is being sent and received, I would like to configure Sendmail to send a duplicate message to the administrator whenever a transaction takes place. I realize this is 'Big Brother' in action, but my reasoning is to ensure the site is being used properly.

How can I configure Sendmail to send duplicate e-mails to the administrator? Thanks.

tronayne 08-24-2011 12:11 PM

If the mail is being sent automagically to a user; i.e., it's in a shell program somewhere or other doing something or other to sent and received files, all you have to do is change the line that sends the mail to send "you" a copy.

In mail or mailx, it's -c address(es) (send "carbon copies" to a list of users).

If you're using something else as a mailer, check the manual page for how to send a copy.

Hope this helps some.

LBM 08-24-2011 09:14 PM

Postfix has always_bcc which can do this.
I am not familiar with sendmail, but maybe it have the same functionality?


All times are GMT -5. The time now is 08:13 AM.