Operating System - HP-UX
1833159 Members
2922 Online
110051 Solutions
New Discussion

sendmail to new smtp server

 
SOLVED
Go to solution
Donald Fisher
Advisor

sendmail to new smtp server

I'm in the process of changing over to new IP's and of course new domain.

Running HPUX V11.0 on current domain and NIC is dual homed to both networks.

Employee's email accounts are now on new mail server, new domain.

Several months ago we asked the corporate mail server administrators to forward email sent to @new.com to @old.com. Worked great. Now it will take them two months to undo that request.

I want to switch from the old corporate smtp server, old domain to the new local smtp server, new domain.

1.2.3.4 smtp.old.com #corporate
1.2.5.1 machine.local.old.com #local
5.6.7.8 smtp.new.com
5.6.7.9 machine.local.new.com #same as 1.2.5.1

/etc/nsswitch.conf
hosts: files [NOTFOUND=continue TRYAGAIN=continue] dns [NOTFOUND=continue TRYAGAIN=continue] nis

/etc/mail/sendmail.cf
DS 5.6.7.8
Dj$w.local.old.com
DX 5.6.7.8
DW 5.6.7.8
#O TryNullMXList

This does not work. Help!
5 REPLIES 5
Ben Sachs_1
Advisor

Re: sendmail to new smtp server

Just want to clarify... I assume you have restarted sendmail daemon on the box?

what happens when you run a command like

echo test | sendmail -v address@new.com

Is it sent to the old.com mail server, or do you get an error sending to new.com?

-Ben
Donald Fisher
Advisor

Re: sendmail to new smtp server


Yes you are correct ...
I did a stop (/sbin/init.d/sendmail stop)
changed sendmail.cf
then start (/sbin/init.d/sendmail start)

sendmail -v john.doe@new.com

Connecting to smtp705.old.com. via relay..

which is the old network.
Ben Sachs_1
Advisor
Solution

Re: sendmail to new smtp server

In nsswitch.conf what is your "aliases:" entry set to?

According to "man nsswitch.conf"-- that is the nsswitch.conf entry that sendmail uses, not hosts.

Also sounds like maybe the MX record in DNS for new.com is still for the old.com mail server..

from a windows box (which is set to same DNS as unix box), load up nslookup, and issue a "set querytype=MX" to set to look for mail records. type old.com then new.com and see what does it find?

I'm no expert in this area but so far no one else has responded..
-Ben
Kellogg Unix Team
Trusted Contributor

Re: sendmail to new smtp server

John,

In your DNS, check MX record for new.com domain which should point to smtp.new.com.

Also, in smtp.new.com host, /etc/mail/sendmail.cw should have entry for new.com (apart from localhost and its own name). And once you see mails coming to this server, check /etc/mailertable as well.

HTH
...Manjeet
work is fun ! (my manager is standing behind me!!)
Uday_S_Ankolekar
Honored Contributor

Re: sendmail to new smtp server

Also have a look at /etc/resolv.conf file. This file has your domain and search order option. Change it accordingly.

-USA..
Good Luck..