A question about sendmail configuration
2007-12-24 21:07:00
I have a problem with the sendmail configuration to allow the users to send
an email from Sun servers (Solaris 2.6 and 8) to the Internet. The servers
stay in the internal network and have no knowledge about the Internet,
because our internal DNS server can not resolve any external hostname and
doesn't contain any MX record for outside domains. There is a mail server in
our network who knows how to send the emails outside. So I define the Smart
Host in sendmail.cf to forward all outbound mails to the "relay" host.
However it works only for the email addresses in our own domain. Because
sendmail relies on DNS server to resolve the domain part in the address,
sendmail gets time out in name resolution and doesn't forward the mail to
the mail server. The mails are put into the queue and tried later, but with
the same result.
# /usr/lib/sendmail -t -v sdm_test7 at hotmail.com < /dev/null
sdm_test7 at hotmail.com... hotmail.com: Name server timeout
sdm_test7 at hotmail.com... Transient parse error -- message queued for future
delivery
sdm_test7 at hotmail.com... queued
sendmail did not even connect to the mail server. However if I sent the mail
to an address in our domain, I got
# /usr/lib/sendmail -t -v tester at my.domain < /dev/null
tester at my.domain ... Connecting to mailhost.my.domain via relay...
220 mailhost.my.domain ESMTP Server (Microsoft Exchange Internet Mail
Service 5.5.2653.13) ready
>>> EHLO myhost.my.domain
250-mailhost.my.domain Hello [myhost.my.domain]
250-XEXCH50
250-HELP
250-ETRN
250-DSN
250-SIZE 0
250-AUTH LOGIN
250 AUTH=LOGIN
>>> MAIL From:<root at myhost.my.domain>
250 OK - mail from <root at myhost.my.domain>
>>> RCPT To:< tester at my.domain>
250 OK - Recipient < tester at my.domain>
>>> DATA
354 Send data. End with CRLF.CRLF
>>> .
250 OK
tester at my.domain... Sent (OK)
Closing connection to mailhost.my.domain.
>>> QUIT
221 closing connection
I don't see any problem with the rule sets, except the failure with name
lookup
# /usr/lib/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 3,0 sdm_test7 at hotmail.com
rewrite: ruleset 3 input: sdm_test7 @ hotmail . com
rewrite: ruleset 96 input: sdm_test7 < @ hotmail . com >
hotmail.com: Name server timeout
rewrite: ruleset 96 returns: sdm_test7 < @ hotmail . com >
rewrite: ruleset 3 returns: sdm_test7 < @ hotmail . com >
== Ruleset 3,0 (3) status 75
rewrite: ruleset 0 input: sdm_test7 < @ hotmail . com >
rewrite: ruleset 199 input: sdm_test7 < @ hotmail . com >
rewrite: ruleset 199 returns: sdm_test7 < @ hotmail . com >
rewrite: ruleset 98 input: sdm_test7 < @ hotmail . com >
rewrite: ruleset 98 returns: sdm_test7 < @ hotmail . com >
rewrite: ruleset 198 input: sdm_test7 < @ hotmail . com >
rewrite: ruleset 95 input: < mailhost . mydomain > sdm_test7 < @ hotmail
. com >
rewrite: ruleset 95 returns: $# relay $@ mailhost . my . domain $:
sdm_test7 < @ hotmail . com >
rewrite: ruleset 198 returns: $# relay $@ mailhost . my . domain $:
sdm_test7 < @ hotmail . com >
rewrite: ruleset 0 returns: $# relay $@ mailhost . my . domain $:
sdm_test7 < @ hotmail . com >
>
I am not familiar with sendmail :-( I just looked through quickly some FAQs
and tried some thing like creating a new sendmail.cf by using
FEATURE(`nodns') or FEATURE(`accept_unresolvable_domains'), but with no
luck.
Can sb. help me to set up the configuration to allow forwarding outbound
non-local mails to the mail server? I will summarize. TIA
Chi
Comments
Got something to say?
You must be logged in to post a comment.

