Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Showing results for 
Search instead for 
Did you mean: 

Changing the email domain

Go to solution
Regular Advisor

Changing the email domain

Hi All -
I've been reading through the posts and still can't quite figure out how to do the following..

Our 11.11 hpux server sends automatic emails out after certain processes. The email comes through as, I need to have the emails come through as I'm pretty sure I found in the file what I want to do (below)

Masquerade as (DM):
If you wish to have mail appear to be from some host or location other than the loacl host, set macro M to the name you wish to masquerade as.

Where do I add this command in the file? Also how should the entry look?

Thank you for your time.
Ivan Krastev
Honored Contributor

Re: Changing the email domain

Just use:

after that :
# /sbin/init.d/sendmail stop

# /sbin/init.d/sendmail start

Regular Advisor

Re: Changing the email domain

not working. Is there anything else I need to do in that could be overriding this?

I do have the following setup also

Dj$, is this OK w/the DM?
Geoff Wild
Honored Contributor

Re: Changing the email domain

I don't use the Dj macro - and it works for me.

I use the DM and DS macro's and Troot - otherwise it is pretty much stock.

Make sure the first host in /etc/hosts is this server's hostname and Fully Qualify it:

192.x.x.x servername

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Regular Advisor

Re: Changing the email domain

doh! got it. Just the DM worked, I was testing w/root and not a standard user. Thank you!