euglug.org

[Eug-lug] Fetchmail, Procmail, And How It All Relates

작성자

카테고리:



Jason Van CleveFri Jul 23 09:36:19 PDT 2004

Quoth Cory Petkovsek, on Thu, 22 Jul 2004 16:54:20 -0700:

> > Am I only dreaming?
> No, set it up as I described.  It will run without maintenance and
> you'll learn something too.
> 
> 
>   .===========.
>   v          ||
> POP3 ---> fetchmail ---> postfix ---> procmail ---> maildir
> inet	  local/root     local/root   local/user    ~/maildir

Okay, but wait.  A few crevices remain in my brain.  How does postfix
connect to procmail?  I actually run postfix on my server, where it is a
system daemon serving as an SMTP as well as a POP3 service.  In your
system, then, would I simply configure my MUA to make its POP requests
to the local postfix daemon?  And what does postfix do to invoke
procmail, or is that the MUA's responsibility?  How would I integrate
procmail?

At any rate, installing postfix wasn't that easy (better than sendmail,
I know, but still "interesting").  It's just not something I want have
to do on my workstations.

Isn't there a way to do this without the need for a local MTA?  It just
seems like an unnecessary middleman.  Sylpheed tends to hog my resources
when it's busy retrieving mail, and I want to use procmail for
filtering.  So what I need is something that will run as a daemon, grab
my mail from the remote POP server, and hand it over to procmail for
filtering and distribution.  I thought that's what fetchmail did, but
apparently not:  so I'm not much closer to my objective.  (Sigh!)

How 'bout this:  can procmail do what I want all by itself?  Can it
access a POP server in daemon mode?  (I suppose now I AM dreaming.) 
Alternately, is there any SINGLE daemon application that can retrieve
mail and give it to procmail, as opposed to fetchmail and sendmail
together?

. . . Sheesh, this stuff really is contorted, or I am dull.  I quote the
fetchmail man page, "fetchmail is a mail-retrieval and forwarding
utility; it fetches mail from remote mailservers and forwards it to your
local (client) machine's delivery system.  You can then handle the
retrieved mail using normal mail user agents such as mutt(1), elm(1) or
Mail(1)."  Great, but "normal mail user agents" can also retrieve from
the remote server, directly:  so what the heck does fetchmail buy me?

Ha!  Riddle me that.

--Jason V. C.

--
The day Microsoft makes something that doesn't suck is probably the day
they start making vacuum cleaners. --Ernst Jan Plugge