Subject: Re: fetchmail ?
To: Samuel Hornus <Samuel.Hornus@crans.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 07/19/2001 11:24:34
On Thu, Jul 19, 2001 at 01:13:46AM +0200, Samuel Hornus wrote:
> On Wed, 18 Jul 2001, Manuel Bouyer wrote:
> 
> > On Wed, Jul 18, 2001 at 02:18:27AM +0200, Samuel Hornus wrote:
> > >
> > > hi all !
> > >
> > > what shall I do with a fresh -current install
> > > to get fetchmail working ?
> >
> > Create a .fetchmailrc, I guess :)
> 
> yup ;-) it was already created. but neither sendmail nor procmail
> was up and running... thus it did'nt work.
> 
> With sendmail, it works fine.
> procmail is perhaps less 'heavy' tu use on a personnal computer ?

Yes, it's just a mail delivery agent (sendmail will also call a MDA to deliver
mail locally). It should be possible to use sendmail's default
MDA but I didn't try (I use procmail because it can deliver to multiple
mailboxes based on filtering rules)

> 
> > > (sendmail is not enabled in rc.conf. should it be so ?)
> >
> > Not necesserely, it depends on your setup.
> > In my .fetchmailrc I use procmail to deliver mail.
> 
> BTW : it seems procmail AND sendmail are installed by defaults;

No, procmail is in pkgsrc

> how to switch from one to the other ?

In your .fetchmailrc:
mda "procmail -f -"

But note that procmail isn't a remplacement for sendmail (maybe you're
mixing with postfix ?). Sendmail is a Mail Transport Agent (can transfer
mail between computers) and procmail a Mail Delivery Agent (knows how
to write a mail in a mailbox). Usually a MTA calls a MDA for local mail

> (config for procmail is /etc/procmail/... but where is the config for
> sendmail ?)

/etc/mail
note you don't need special config for procmail. Without config file
it will just deliver mail in your default mailbox

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--