Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SCO mailx -r on RedHat Linux

Status
Not open for further replies.
Jun 15, 2002
31
US
I'm looking for a solution to a problem. We currently use the SCO mailx -r function to alter 'reply' addresses when sending order confirmation e-mails. We are porting to RedHat Linux ES-4 and appear to have only the 'mail' and 'sendmail' commands which do not appear to have the '-r' option. I'm looking for a work-around to alter the 'reply' address. IE:, custservice@domain.com, sales@domain.com, support@domain.com. Right now the e-mails go out from user@localhost.localdomain
Thanks
 
look at sendmail address mapping features.

QatQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
Are there any examples either command line sendmail -f , ect. or the table/file entries
 
enable genericstable in your sendmail.mc, uncommend or add (if they do not exist) the following lines:

Code:
FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl


create the file /etc/mail/generics-domains where you simply write the list of domains to which the users you want to change addresses for belong to.

Make sure you include the real domain of the mail server as well.

exmaple, if your mail server is called mailserver.yourcompany.com and it is serving mail for the domain yourotherdomain.com and you need to change the user qatqat@yourotherdomain.com to me.yourotherdomain.com, add both domains to the /etc/mail/generics-domains file.


create or edit the file /etc/mail/genericstable and add

Code:
qatqat         me.yourotherdomain.com

from the /etc/mail directory execute,

make
newaliases
/etc/rc.d sendmail restart

Now mail from qatqat@yourotherdomain.com should go out as me@yourotherdomain.com

QatQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top