Operating System - HP-UX
1844587 Members
2779 Online
110233 Solutions
New Discussion

Sendmail in multiple domains

 
Daniel Skates
Advisor

Sendmail in multiple domains

I haev an interesting issue on one of the Unix boxes we have. It is located in NZ, and as such has a .co.nz extension on the domain name. Here in Australia it is .com.au

Whenever I send a message from this server to myself (my email address is .com.au), the exchange server receives it as .co.nz, and it is undeliverable.

mail.log shows the correct addresses going out, however SMTP relay host is showing it as going to my non-existent .co.nz alter ego.

One way around it is for them to add a .co.nz entry in exchange, but not really feasible for the masses who will use this.

Am I missing something here?
13 REPLIES 13
RAC_1
Honored Contributor

Re: Sendmail in multiple domains

This does not look like a unix issue at all. Check what address exchange resolves your email address to.

/usr/sbin/expand_alias xyz@whatever.com

If it is expanding to nothing.com instead of whatever.com, it is exchange problem. Also good to check mail.log file and logname command.
There is no substitute to HARDWORK
Daniel Skates
Advisor

Re: Sendmail in multiple domains

It resolves to the .co.nz address!

However, the machines in australia resolve to the .com.au address, and they use the same exchange/relay host, so I still suspect a local issue.

I've checked the /etc/mail/aliases file, and this is OK, and as far as I can tell, it is sending to the .com.au address, however a sendmail -v shows a different story...

>>> MAIL From:
250 2.1.0 root@hostname.co.nz....Sender OK
>>> RCPT To:
250 2.1.5 daniel.skates@hostname.co.nz
>>> DATA
354 Start mail input; end with .
>>> .
250 2.6.0 <200601250410.RAA21622@iceberg.lion-nathan.co.nz> Queued mail for del
ivery
daniel.skates@lion-nathan.com.au... Sent (2.6.0 <200601250410.RAA21622@iceberg.
lion-nathan.co.nz> Queued mail for delivery)

mail.log shows the .com.au address, but exchange is receiving as .co.nz!

Any further ideas here greatly appreciated.
Geoff Wild
Honored Contributor

Re: Sendmail in multiple domains

Try setting the DM macro in sendmail.cf to yourdomain.com.au

Rgds...Geoff
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.
Hoang Chi Cong_1
Honored Contributor

Re: Sendmail in multiple domains

Hi Daniel Skates

Can you check for the name of your organize?
Does it reconize from the .co.nz?
Take a look at this website and it will usefull for you next time:
http://www.sendmail.org/faq/section4.html

Regard,
Hoang Chi Cong
Looking for a special chance.......
RAC_1
Honored Contributor

Re: Sendmail in multiple domains

logname
What does it show??
Also have you set DM macro in sendmail.cf file?? Also how exactly you send the email?? do you explicitely use -r option on mail/mailx?? Is sendmail running with -r option??
There is no substitute to HARDWORK
RAC_1
Honored Contributor

Re: Sendmail in multiple domains

logname
What does it show??
Also have you set DM macro in sendmail.cf file?? Also how exactly you send the email?? do you explicitely use -r option on mail/mailx?? Is sendmail running with -r option??

Also nslookup on ip address and on host name on both machines for smart realy resolve to same?
There is no substitute to HARDWORK
Daniel Skates
Advisor

Re: Sendmail in multiple domains

setting DM to
DMhostname.com.au

Seems to have made no differece.

running sendmail with:
/usr/sbin/sendmail -bd -q30m && echo "sendmail"

run using sendmail, or mailx.
logname shows: root

nslookups on both hosts: OK.

Geoff Wild
Honored Contributor

Re: Sendmail in multiple domains

What about setting th DS macro to be the same relay server as well?

Rgds...Geoff
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.
Daniel Skates
Advisor

Re: Sendmail in multiple domains

DS macro set the same across all of our servers. Interestingly, if I set Dj$w. to .com.au extension, still goes to the wrong place. I am thinking this lies outside the sendmail config, and more around the DODGY DNS setup I have just inherited... ;-)

Ideas? Comments?
RAC_1
Honored Contributor

Re: Sendmail in multiple domains

What version of sendmail?? How is aliases setting done in /etc/nsswitch.conf file?? Also how does /etc/mail/service look like??
There is no substitute to HARDWORK
Daniel Skates
Advisor

Re: Sendmail in multiple domains

/usr/sbin/sendmail:
Copyright (c) 1998 HEWLETT PACKARD COMPANY and its licensors,
including Sendmail, Inc., and the Regents of the
University of California. All rights reserved.
version.c 8.9.3.1 (Berkeley) 4/10/2002 (PHNE_26305)



/etc/mail/service.switch
hosts dns files
aliases files

/etc/nsswitch.conf
hosts: dns files
Muthukumar_5
Honored Contributor

Re: Sendmail in multiple domains

what is there in /etc/resolv.conf. The problem is based on resolvation methods.

--
Muthu
Easy to suggest when don't know about the problem!
Daniel Skates
Advisor

Re: Sendmail in multiple domains

Don't hate me for this.... i just inherited this...and has to be like this for the interim, otherwise things break...

domain lion-nathan.co.nz
search lion-nathan.co.nz lion-nathan.com.au roar.net.nz
nameserver 192.200.72.204
nameserver 192.200.72.201
nameserver 192.200.72.200
#nameserver 202.27.252.6
nameserver 10.20.7.200
root@iceberg:/ >