Re: Fetchmail / exim / courier imap
On Mon, 28 Oct 2002 15:09:56 +1100
"Joyce, Matthew" <MJoyce@ccia.org.au> wrote:
>
> I have an old 486/66 with debian, I though I might use it to get my
> emails from several accounts.
>
> I have install fetchmail, configured exim and install courier imap.
>
> After creating a Maildir folder (makemaildir I think) I can connect
> via an imap client and see the folders ok.
>
> When I ran fetchmail, it did collect my email, but put it in single
> file in/var/mail/user.
> This was of course correct because I had not changed the config.
>
> After a bit of googling, I made some changes to point to
> ${home}/Maildir and also maildir_format = true.
>
> Now it still connects to the servers and downloads the email, but I
> cannot fathom where they go.
>
> They do not appear in the Maildir folders, nor the /var/mail folder.
Put fetchmail back the way it was, install procmail, and put a
'.procmailrc' in ~/ as follows:
SHELL=/bin/sh
PATH=$PATH:/usr/local/bin:/usr/local/mh/bin:/usr/bin:/bin
MAILDIR=$HOME/Maildir/
LOGFILE=$HOME/Maildir/fetchlog
#Regenerate a clean 'From' header
:0fhw
|formail -I "From " -a "From "
#Safety stanza -- uncomment to enable
#Copy all incoming mail to ~/Maildir/.backup **CLEAN WEEKLY BY HAND**
#:0c:
#.backup/
#debian-user
:0:
* ^Resent-Sender.*debian-user-request@lists.debian.org
.Debian-User/
#Insert other stanzas here for other folders
#Dump to IMAP inbox anything not yet sorted
:0:
./
I have this .procmailrc file in my /etc/skel directory so it is added
for every new user (minus the debian-user stanza).
Fetchmail delivers to exim -- exim will automatically pipe through
procmail if a ~/.procmailrc is present or send mail to
/var/mail/$username if not.
G
--
gvl2 (Gerald)
AirBall the Rolling Basket Case (1969 Standard Beetle)
LifeSaver (1974 Bay Window Bus)
http://www.phorce1.com
Reply to: