It may be easy to set up qmail but it's easier to to just fix the sendmail
problem if it's already working. 

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

On Wed, 13 Oct 1999, Jakob Stoklund Olesen wrote: 
> 
> Qmail doesn't touch the DNS when sending local mail. (And it's much
> easier to set up than sendmail).
> 
> -- 
> Jakob Stoklund Olesen
> http://www.image.dk/~stok/
> 
> -
> 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]

Reply via email to