cancel
Showing results for 
Search instead for 
Did you mean: 

Changing sendmail domain

SOLVED
Go to solution
Jose Mosquera
Honored Contributor

Changing sendmail domain

Hi pals,

Our company are changing teh name. First we have changed our domain addresses in stanadar email service, but old domain names are keep at present on HP-UX boxes, hoeever is necessary mask this old domain to the new domain.

This look easy into /etc/mail/sendmail.cf file setting appropriately Dj option:
Dj$w.newdomain.com

However I dont need show hostname ($w), just need show user.newdomain.com, Does somebody know how?

Rgds.
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: Changing sendmail domain

Take out the $w

Djyourdomain.com

If the domain name is 8 characters or less you can do this:

in /etc/rc.config.d/netconf

Change the hostname to fully qualified.

hpmail becomes

hpmail.domain.com

Sendmail will automatically pick that up on outbound mail.

There will be no neagtive impact. You will need to restart swagentd to install software and its a good idea after such a change to boot.

If you change the hostname, comment out the Dj dierctive in sendmail.cf


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jose Mosquera
Honored Contributor

Re: Changing sendmail domain

Hi Steven,

I had already attempted it and **surprisingly** this has a special behavior when the domain begins with the letter "d" and have three chars lenght, in our case dhl.com, when you configure it "Djdhl.com" a dead letter it is created. Some trick to solve this?

Rgds.
Justo Exposito
Esteemed Contributor
Solution

Re: Changing sendmail domain

Hi Jos?? Maria,

I think that you need a blank space like that:
D dhl.com

Regards,

Justo.
Help is a Beatiful word
Uday_S_Ankolekar
Honored Contributor

Re: Changing sendmail domain

In your /etc/hosts file,
Put first entry with full qualified domain name and then try.
Dj.dhl.com should not give you any problem though but try that hosts entry
Goodluck,
-USA..
Good Luck..
Steven E. Protter
Exalted Contributor

Re: Changing sendmail domain

I've only done this with my own domain

investmenttool.com

Djinvestmenttool.com

If there is something special about d, I've not heard about it.

If a space is required, I believe the syntax should be...

Dj domain.com

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

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com