When sendmail is asked to deliver mail (local or remote) it will verify the
domain name and ip address to "prevent" spoofing. So it does a lookup. To
handle lookups for local hosts, you should run named and force named to look in
the hosts file before trying other nameservers. You do that by adding a line
to your host.conf file like this;
# force named to look at the local hosts file first
order hosts bind
If you run named and diald, I have found that named tries to resolve the
IP address that diald uses for the local Slip interface sl0. So I added it
to my hosts file. Check for a line called "local" in diald.conf and use that Ip
address in the hosts file like this; [ use whatever IP address is listed in YOUR
diald.conf]
# bogus name for bogus interface to keep named happy with diald
192.168.2.10 bogus.localdomain bogus
Then when sendmail does the name lookup when it tries to send mail (even
local), named will provide the answer based on what it finds in the hosts
file. The hosts file should have all your local addresses in it. If named
can't find the answer in hosts, it will try the nameserver listed in
resolv.conf and that will trigger diald. As far as I can tell, you can not
force sendmail to use the hosts file.
So, if you run sendmail, you should run named, and if you run named, it will
trigger diald for any lookups it can't get locally. So provide what it needs
for ALL your local interfaces, including the one that diald creates.
Alex Vandenham
Avantel Systems
On Sun, 09 Jan 2000, Hoo Kok Mun wrote:
> At Sunday 09:34 PM 09/01/00 +1300, you wrote:
> >Hi,
> >
> >I am neither a real guru nor an expert but I try to help. I seem to have a
> >very similar environment here.
>
> Hi Mike,
>
> You are a very humble person. Anyway, I am glad I have some
> advice/suggestions to work on.
> I have ran out of ideas.
>
>
> >I start sendmail initially with arguments "-bd -om" only and then in the
> >if-up script just sendmail -q.
>
> I tried the above but diald still dials out.
>
>
> >sendmail 'expensive' and 'nocanonify' (both important for servers with
> >dial-up access to the net only). Nocanonify seems to prevent DNS resolutions
> >which I guess to be part of your problem that it dials out to resolve DNS
> >names?
>
> I have tried few combinations:
> 1) expensive = true, nocanonify, sendmail -bd -om
> 2) expensive = true, nocanonify, sendmail -bd -q15m
> 3) expensive = true, nocanonify, and Deliverymode=queueonly, sendmail -bd -om
> 4) expensive = true, nocanonify, and Deliverymode=queueonly, sendmail -bd -q15m
>
> All the above still activate diald.
>
> >I don't believe you have to change diald filter settings for sendmail.
>
> I am using the original diald filter.
>
> Any other stuff/areas/suggestions/ideas that I can try out?
>
> Thanks.
>
>
> ***************************************************************
> "What you get by achieving your goals is not as
> important as what you become by achieving your goals."
> Email : [EMAIL PROTECTED]
> Home Page : http://home.pacific.net.sg/~hkmun
> ***************************************************************
>
>
> -
> 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]