[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fetchmail & Sendmail



On Fri, Feb 16, 2001 at 10:46:10AM -0800, Rob Hudson wrote:
> I'm using the fetchmail-procmail-sendmail combo to get mail off of a
> mailserver, filter it, and read it locally.  I'm using that same mail
> server to pass sent mail to.
> 
> In this case, I don't know if sendmail is overkill and if I should be
> using something different.
> 
> What I'd like to fix is this...
> 
> When fetchmail gets mail, I think it passes it to sendmail which
> checks to make sure the domain exists.

AFAIK, it is actually trying to work out where to deliver email: it is
using the DNS servers to try to work out the final destination for the email.
This behaviour is likely to be because of the usage of sendmail as a mail
gateway, though of course you yourself are not using it as such.

All you need to do (I think) is to make sure that in your /etc/nsswitch.conf
file you have the hosts line as dns first and then files. Hence:

hosts:          dns files
networks:       files

Thus if your dns servers are down then your computer will fall back on the 
files, in which case all you probably need is an entry or two in /etc/hosts
with a localhost entry and your hostname entry.

Personally I use postfix but the configuration is very similar to sendmail.

I could of course be very wrong here!

Matthew

>  Today, my DNS servers listed
> in /etc/resolv.conf were down, and all the mail I fetched got bounced
> and lost.  I'd like for this not to happen and get any and all mail
> that is in my box no matter if it's spam and has an unresolvable
> domain or not.  How can I set this up?
> 
> Thanks,
> Rob
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 
> 



Reply to: