LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
 
Search this Thread
Old 11-12-2012, 01:45 PM   #1
thesunlover
LQ Newbie
 
Registered: Nov 2009
Posts: 19

Rep: Reputation: 0
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
 
Old 11-13-2012, 07:12 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,076
Blog Entries: 6

Rep: Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to set the default gateway if I configured IPv4 and IPv6 address? leericlapton Linux - Networking 1 10-26-2011 07:57 AM
sending mails in script using mailx fails kais1 Linux - Newbie 2 07-26-2009 11:40 PM
How programatically in C do I get/set the default route or gateway address of eth0 jroberts5477 Linux - Networking 2 09-15-2006 01:11 PM
set reply to address on mailx hamish Linux - Newbie 3 05-31-2005 02:28 AM
How do I set the ip address for eth0, eth1 and the default gateway? abefroman Suse/Novell 5 05-19-2005 04:15 AM


All times are GMT -5. The time now is 04:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration