Re: getmail configuration (How to run fetchmail as daemon at startup)
Paul E Condon <email@example.com> wrote:
> On Sat, Mar 24, 2007 at 10:07:22AM +0200, Andrei Popescu wrote:
> > Owen Heisler <firstname.lastname@example.org> wrote:
> > > My mail is in ~/.Maildir, accessed by dovecot-imapd, delived to by
> > > postfix. How can I configure getmail to deliver mail through
> > > postfix or dovecot? I don't know what fetchmail does, but I
> > > don't think it delivers directly to ~/.Maildir. Also, I haven't
> > > ever had problems with fetchmail configured this way. Debian
> > > Etch.
> > Getmail was designed to deliver directly to Maildir:
> > [destination]
> > type = Maildir
> > path = ~/Maildir/
> > or through an MDA (mail delivery agent) like maildrop:
> > [destination]
> > type = MDA_external
> > path = /usr/bin/maildrop
> > unixfrom = true
> > Delivery through reinjection in a mail queue is not officially
> > supported as it can break many things if not done properly. And if
> > you know how to do it properly you don't need to ask ;)
> I've been following this thread precisely because I don't know how to
> gain control over the email aspects of my Etch system.
> Prior posts in this thread, indicated that getmail could be used as a
> replacement for fetchmail. But, I have come to depend on procmail to
> sort my mail into topic-defined mail folders. Is doing this really
> something that is very difficult? Where can I find more information?
> - not a simple quick fix recipe, but a discussion of the issues and
> how to address them.
Here is how I see it:
The *nix philosophy is to have a program do one task and do it good.
Getmail was designed to retrieve mail and that's it. If you want to
runt it periodically use cron. If you want to sort/filter your mail use
and MDA like procmail or maildrop. To handle your mail use your
favorite mail client, which possibly uses an external pager for mail
reading and an external editor for the actual writing. Why should I be
forced to use some internal editor when I prefer $editor? (Actually I
like claws-mail's editor better then cream/mcedit for writing mails :)
And eventually you send mail using an MTA like sendmail or more modern
Now to get back to your question, getmail has no problem in working
with procmail. Just replace maildrop with procmail in my example and
check if it needs some additional options.
Whether procmail is the best tool for the job is one of those holy wars
questions. Strictly in my opinion and not meant to start a war I think
maildrop's syntax is easier.
If you can't explain it simply, you don't understand it well enough.