Sendmail ignoring "smarthost" ?

From: Timothy Arnold (tim@ngfl.gov.uk)
Date: Tue Sep 23 2003 - 11:30:16 EDT


Dear Sun Managers,

Does anyone know why Sendmail ignores the Smarthost directive for local
domains? for example:

the machine is 'schroedinger.ngfl.gov.uk' and it tries to send mail to
'tim@ose.org.uk' - here is the output:

$ /usr/lib/sendmail -v -C /etc/mail/sendmail.cf tim@ose.org.uk
boo
tim@ose.org.uk... Connecting to jack.ngfl.gov.uk. via relay...
220 kerouac.ngfl.gov.uk ESMTP Server ready.
>>> EHLO schroedinger.ngfl.gov.uk
250-kerouac.ngfl.gov.uk Hello erwin.ngfl.gov.uk [10.10.6.20]
250-SIZE
250-PIPELINING
250 HELP
>>> MAIL From:<tim@schroedinger.ngfl.gov.uk> SIZE=4
250 <tim@schroedinger.ngfl.gov.uk> is syntactically correct
>>> RCPT To:<tim@ose.org.uk>
250 <tim@ose.org.uk> is syntactically correct
>>> DATA
354 Enter message, ending with "." on a line by itself
>>> .
250 OK id=1A1oru-00070N-00
tim@ose.org.uk... Sent (OK id=1A1oru-00070N-00)
Closing connection to jack.ngfl.gov.uk.
>>> QUIT
221 kerouac.ngfl.gov.uk closing connection

As you can see, it correctly sends the mail to the smarthost. However,
if I choose a subdomain like 'testforum.ngfl.gov.uk'

$ /usr/lib/sendmail -v -C /etc/mail/sendmail.cf
tim@testforum.ngfl.gov.uk
boo
tim@testforum.ngfl.gov.uk... Connecting to mail30.messagelabs.com. via
esmtp...
tim@testforum.ngfl.gov.uk... Connecting to mail21.messagelabs.com. via
esmtp...
tim@testforum.ngfl.gov.uk... Deferred: Connection refused by
mail21.messagelabs.com.
(root@schroedinger)-(16:14:02 :: Tue Sep 23)-(tim)

It looks at the MX records in the internal DNS... How do I get sendmail
to always use the smarthost?

Also, does anyone have any configuration tips for sendmail for use as a
relay for PHP/Apache to a smarthost - I have a Sendmail manual but its
over 1000 pages long!

Thanks for all your help.

Timothy.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:10 EDT