Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've defined SMART_HOST to be a specific server, lets call it However, when I send a test mail using 'sendmail -t', sendmail tries to use, which subsequently rejects my mail. I've verified that works and that does not work (yay telnet). I've recompiled vi make, make -C and m4. I've verified the DS entry in I've restarted sendmail correctly. I'm not sure how to proceed at this point. Any ideas?

Here is my SMART_HOST line:


...and here is the result of a test mail. It never tries to use, instead it uses

$ echo subject: test; echo | sendmail -Am -v -flocaluser -- subject: test Connecting to via relay...
>>> EHLO
250 SIZE 52428800
>>> MAIL From:<> SIZE=1
250 sender <> ok 
>>> RCPT To:<>
550 #5.1.0 Address rejected.
>>> RSET
250 reset
localuser... Connecting to local...
localuser... Sent
Closing connection to
>>> QUIT

And last, here is a test mail sent using

$ hostname
$ telnet 25
Trying ***.***.***.***...
Connected to (***.***.***.***).
Escape character is '^]'.
220 ESMTP Sendmail 8.14.1/8.14.1/ITS-7.0/ldap2-1+tls; Tue, 21 Dec 2010 13:27:44 -0700 (MST)
helo foo
250 Hello [***.***.***.***], pleased to meet you
mail from:
250 2.1.0 Sender ok
rcpt to:   
250 2.1.5 Recipient ok
354 Enter mail, end with "." on a line by itself
250 2.0.0 oBLKRikZ003758 Message accepted for delivery
221 2.0.0 closing connection
Connection closed by foreign host.

Any ideas?


share|improve this question

1 Answer 1

up vote 2 down vote accepted

Sendmail may be performing an MX lookup on the domain, which is not necessarily what you want. Enclose the hostname in square brackets to prevent this.

share|improve this answer
that did it... at least for the test mail :) thanks – daniel Dec 21 '10 at 21:43
This works when using -Am, but reverts back to if I don't specify -Am. Is there a way to force sendmail to not perform an MX lookup system wide? – daniel Dec 21 '10 at 21:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.