General
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the domain in mail's sends

Carme Torca
Super Advisor

How to change the domain in mail's sends

Hi,

I have at sendmail.cf on serverA

DSserver-exchange
Dj$w.domain.com
DMdomain.com

and when I send one mail from serverA it shows me

carmen@serverA.domain.com and I would like that it shows carmen@domain.com

Any idea??
Thanks!
Carmen.
Users are not too bad ;-)
5 REPLIES
Court Campbell
Honored Contributor

Re: How to change the domain in mail's sends

Did you restart sendmail?

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

It doesn't automagically pickup your changes.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Carme Torca
Super Advisor

Re: How to change the domain in mail's sends

Yes, I restarted it
Users are not too bad ;-)
Court Campbell
Honored Contributor

Re: How to change the domain in mail's sends

You might try commenting out the line

Dj$w.domain.com

and the restarting sendmail.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Aashique
Honored Contributor

Re: How to change the domain in mail's sends

Hi,
Please check your "/etc/hosts" file entry.

Thanks & Regards
Aashique
Rasheed Tamton
Honored Contributor

Re: How to change the domain in mail's sends

Hi,

Did you check /etc/mail/aliases

vi /etc/mail/aliases

Enter host aliases after # Local aliases
#Local aliases
usergroup :carme@host.com

The program "/usr/sbin/newaliases" must be run after this file is updated.

Rgds,
Rasheed Tamton.