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

Re: getmail configuration (How to run fetchmail as daemon at startup)



Am 2007-03-24 10:46:15, schrieb Paul E Condon:
> 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.

One JOB one TOOL!

"fetchmail" is fetching messages and deliver (by default) to localhost
or /var/spool/mail/$LOGNAME

"procmail" is a Mail-Delivey-Agent (MDA).

So you could setup "fetchmail" with:
----8<-----------------------------------------------------------------
default
    mda "/usr/bin/procmail -d %T"
    ...
poll ...
    ...
----8<-----------------------------------------------------------------

and "procmail" with
----8<-----------------------------------------------------------------
MAILDIR=${HOME}/Maildir
DEFAULT=${MAILDIR}/
LOGFILE=${HOME}/log/fetchmail.`date +%Y-%m-%d`.log
----8<-----------------------------------------------------------------

which will deliver always to ~/Maildir/
if you do not setup additional recipes.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: