Operating System - HP-UX
1753523 Members
9731 Online
108795 Solutions
New Discussion юеВ

Re: sendmail appends RDPT To: domain.com with another domain.com

 
Bob_165
Frequent Advisor

sendmail appends RDPT To: domain.com with another domain.com

HereтАЩs a weird one. This is a new HP-UX server running HP-UX 11i2

echo test | sendmail -v name@domain.com

name@domaint.com... Connecting to mail.domain.com. via relay...
220 mail.domain.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 read
y at Fri, 31 Jul 2009 17:32:28 -0400
>>> EHLO Server.domain.com
250-mail.domain.com Hello [128.1.0.XX]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
>>> MAIL From: SIZE=5 AUTH=root@Server.domain.
com
250 2.1.0 root@Server.domain.com....Sender OK
>>> RCPT To:
550 5.7.1 Unable to relay for user@domain.com.domain.com
>>> RSET
250 2.0.0 Resetting
/dead.letter... Saved message in /dead.letter
Closing connection to mail.domain.com.
>>> QUIT
221 2.0.0 mail.domain.com Service closing transmission channel

As you can see, when it gets down to RCPT To: it adds a second (same) domain.com. So of course now it wonтАЩt send it.

IтАЩve looked at my resolve.conf and my sendmail.cf and sendmail.cw

Anybody have any other clues??
4 REPLIES 4
VK2COT
Honored Contributor

Re: sendmail appends RDPT To: domain.com with another domain.com

Hello,

Who manages the DNS for domain.com. Is it,
by any chance your own domain?

a) If so, check your DNS. Errors in zone
configs create these kind of problems :)

For example, what does this command report:

nslookup somehost.domain.com

b) Second possibility, is domain.com
accepting wildcard MX resource records?

If so, add an option to DNS Search options.
Specifically, add the following to
sendmail.mc file:

define(`confBIND_OPTS',`-DNSRCH HasWildcardMX')dnl

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Bob_165
Frequent Advisor

Re: sendmail appends RDPT To: domain.com with another domain.com

The DNS displays correctly (no double domains)

I think you might be on to something with the MX record. The company changed domain names awhile back, but I believe they still have some remnants of the old domain and allow members of the old domain to function.

I looked in the /etc/mail and I can't find a sendmail.mc file.

Maybe you├в re thinking sendmail.cw? I thought that was just for hostnames.com etc..

Please let me know...thanks!
Steven E. Protter
Exalted Contributor

Re: sendmail appends RDPT To: domain.com with another domain.com

Shalom,

HP-UX relocates the sendmail.mc file and gives it a slightly different name.

See this script for file locations.

http://www.hpux.ws/buildmail.hpux.text

Script is usable BTW

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
Bob_165
Frequent Advisor

Re: sendmail appends RDPT To: domain.com with another domain.com

Here's some more info...

I changed the HP systems domain from domain.com to just domain.
Now it works like if should!

..But I don't understand why.