Gentlemen,
Sorry to jump in the middle - I think the m4 line you're looking for to
turn off DNS lookups for sendmail v8.9.1 is:
FEATURE(`nocanonify')
I'm using diald and queuing all mail, sending it out via a cron task at
predetermined times. The following mc file is what I'm using and it works
great - no unwanted DNS lookups forcing up the link via diald. Hope
this helps:
include(`../m4/cf.m4')
OSTYPE(`linux')
define(`confCON_EXPENSIVE', `True')
define(`SMTP_MAILER_FLAGS', `e')
define(`confDELIVERY_MODE', `immediate')
define(`confDIAL_DELAY',`15s')
FEATURE(`nocanonify')
MASQUERADE_AS(`your-isp-mail-host-here')
FEATURE(`allmasquerade')
FEATURE(`masquerade_envelope')
FEATURE(`relay_hosts_only')
FEATURE(`local_procmail')
MAILER(`smtp')
An additional point - if you're masquerading (so that return mail goes to
your ISP's mail server where you pick it up from) you need to enter that
masqueraded host into your /etc/hosts file. If you don't, sendmail will
always try to canonify (i.e. lookup) that host (in this example -
your-isp-mail-host-here) before queuing mail for later delivery.
Dave Merkel
[EMAIL PROTECTED]
On Sun, 16 Aug 1998, Richard McMahon wrote:
> --------
>
> Pieter you said:
>
> > The other thing you need to do is prevent sendmail from doing DNS lookups until
>delivery time. For this you need s /etc/service.switch file.
> >
>
> - snip -
>
> > My service.switch file reads:
> >
> > ---
> > passwd files nis
> > hosts files
> > ---
>
> and you enclosed your .mc file.
>
> I have everything that you have in your .mc file, including a service switch
> file specially for sendmail and it still insists on carrying out lookups,
> reporting that the network is unreachable naturally. As you may have guessed
> from my earlier question about module net-pf-17 and what should I alias to it,
> I have not been able to get diald to run so the delay while sendmail failed to
> do a hostname lookup was not a problem, although very annoying.
>
> The m4 routines in the RH packages do not support the nodns option at sendmail
> v8.9.1 and the sendmail faq section 3.22 suggests that one remove dns from the
> service.switch file and forward to a smart host. I notice that you, Pieter,
> are using sendmail v8.8.something with the anti spam hacks. This makes me
> wonder if the service switch option is broken in 8.9.1, in which case the
> nodns setup will never work.
>
> This would imply that diald will always come up to do a dns lookup using
> sendmail v8.9.1.
>
> I will try to find out if this issue has been raised in the sendmail archives.
>
> (Note if you alter the Linux default switch file /etc/nsswitch.conf and are
> running your own caching nameserver, you don't get any name lookups for
> anything)
>
> ------------------------------------------------------------
> Richard McMahon
> Copenhagen
>
>
>
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-diald" in
> the body of a message to [EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]