Possible to rewrite TO: field with ssmtp?

by mbrownnyc   Last Updated October 18, 2018 16:00 PM

I'm trying to re-write the TO: header in sent emails with ssmtp.

I've configured mail sent to root to be sent via ssmtp (by creating a symlink at /etc/sendmail).

It is redirected to the /etc/aliases entry, but the TO: header is always the user itself, in this case, it is "TO: root".

The SMTP server rejects this alias. I'd like to have the TO: field re-written to a configurable email address.

I have configured: /etc/aliases, /etc/ssmtp/revaliases, and /etc/ssmtp/ssmtp.conf as I expect would work.

Is this possible with ssmtp?



Related Questions



linux ssmtp error Cannot open smtp.gmail.com:587

Updated April 27, 2017 10:00 AM

Logwatch is not respecting MailFrom

Updated March 02, 2017 09:00 AM

my mails from postfix are going to spam

Updated May 03, 2017 09:00 AM