SMART_HOST

I have a host that is behind a firewall and there is no DNS. I do have
access to a mail server. I use SMART_HOST with the IP to the mail
server:

define(`SMART_HOST', `smtp:10.8.10.10')

But it complain that "Name server: 10.8.10.10: host name lookup
failure"

I then put my mail server into my /etc/hosts file and use my mail
server name for SMART_HOST. But still getting "Name server:
mail.mydomain.com: host name lookup failure"

Anyone have a simular environment? Please give me some pointers.

Thanks!
richard.tan [ Do, 17 März 2005 10:55 ] [ ID #700349 ]

Re: SMART_HOST

richard.tan [at] compucredit.com wrote:
> I have a host that is behind a firewall and there is no DNS. I do have
> access to a mail server. I use SMART_HOST with the IP to the mail
> server:
>
> define(`SMART_HOST', `smtp:10.8.10.10')
>
> But it complain that "Name server: 10.8.10.10: host name lookup
> failure"
>
> I then put my mail server into my /etc/hosts file and use my mail
> server name for SMART_HOST. But still getting "Name server:
> mail.mydomain.com: host name lookup failure"
>
> Anyone have a simular environment? Please give me some pointers.

Turn off lookups for MX records of the smart host:
define(`SMART_HOST', `smtp:[10.8.10.10]')

For remaining hints read:
http://www.sendmail.org/faq/section3.html#3.22
Q3.22 -- How do I configure sendmail not to use DNS?
Last update: January 14, 2004

--
Andrzej [en:Andrew] Adam Filip anfi [at] priv.onet.pl anfi [at] xl.wp.pl
Home Page http://anfi.homeunix.net/
Andrzej Adam Filip [ Do, 17 März 2005 11:02 ] [ ID #700350 ]

Re: SMART_HOST

wrote:

> define(`SMART_HOST', `smtp:10.8.10.10')
>
> But it complain that "Name server: 10.8.10.10: host name lookup
> failure"

10.8.10.10 is NOT a hostname, it's an IP address. Hence you must
use [10.8.10.10] just as required for e-mail addresses.

--
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
ca+sendmail(-no-copie [ Do, 17 März 2005 16:21 ] [ ID #701622 ]

Re: SMART_HOST

Thanks. The [10.8.10.10 ] take care of that problem. I also added
these in my sendmail.mc:
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`accept_unqualified_senders')dnl
And this in submit.mc:
define(`confDIRECT_SUBMISSION_MODIFIERS', `C')dnl

m4 for both. Now I got this when I try to send to
someone [at] somedomain.com: "Mhost map: lookup (somedomain.com): deferred"
richard.tan [ Fr, 18 März 2005 04:40 ] [ ID #702228 ]

Re: SMART_HOST

richard.tan [at] compucredit.com wrote:
> Thanks. The [10.8.10.10 ] take care of that problem. I also added
> these in my sendmail.mc:
> FEATURE(`accept_unresolvable_domains')dnl
> FEATURE(`accept_unqualified_senders')dnl
> And this in submit.mc:
> define(`confDIRECT_SUBMISSION_MODIFIERS', `C')dnl
>
> m4 for both. Now I got this when I try to send to
> someone [at] somedomain.com: "Mhost map: lookup (somedomain.com): deferred"

Have you restarted *BOTH* sendmail daemons after modifying *.cf files?
(MTA/MSA, sendmail.cf/submit.cf)

Check if your DNS resolver works correctly.
What is reported by the commands below?

# ask for DNS MX records of somedomain.com
nslookup -type=mx somedomain.com
# ask any DNS records of somedomain.com
nslookup -type=any somedomain.com
# see sendmail's DNS queries (sendmail-8.12+) - execute as root
(echo "subject: test"; echo "") | sendmail -d8.20 -Am -v

--
Andrzej [en:Andrew] Adam Filip anfi [at] priv.onet.pl anfi [at] xl.wp.pl
Andrzej Adam Filip [ Fr, 18 März 2005 13:02 ] [ ID #703479 ]

Re: SMART_HOST

richard.tan [at] compucredit.com writes:

> I have a host that is behind a firewall and there is no DNS. I do have
> access to a mail server. I use SMART_HOST with the IP to the mail
> server:

If there is no DNS, on service switch file should have line
hosts: files

(ie without 'dns' )

Sendmail probably looks about /etc/mail/service.switch

/ Kari Hurtta
Kari Hurtta [ Fr, 18 März 2005 15:45 ] [ ID #703484 ]
Miscellaneous » comp.mail.sendmail » SMART_HOST

Vorheriges Thema: Send Failure to Verizon, but receive ok
Nächstes Thema: One POP3 account many users troble configuring