LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Set default return address for all mails sent from mailx (https://www.linuxquestions.org/questions/linux-networking-3/set-default-return-address-for-all-mails-sent-from-mailx-4175436817/)

thesunlover 11-12-2012 01:45 PM

Set default return address for all mails sent from mailx
 
Hi, I have a question about mailx in Red Hat:

If I use 'mail userid@mydomain.com -- -f root@mydomain.com', the return mail address will be root@mydomain.com.

How can I make all mails sent from this system use root@mydomain.com as return address by default?

Thank you in advance!

nz

MensaWater 11-13-2012 07:12 AM

You need to setup/enable masquerading in whatever MTA you're running (sendmail or postfix usually on RHEL).

Discussion of Sendmail masquerading in RHEL5 can be found at:
http://www.linuxtopia.org/online_boo...email-mta.html


All times are GMT -5. The time now is 05:07 PM.