]> pere.pagekite.me Git - homepage.git/blob - mypapers/drafts/imap-local-delivery.html
Nytt bokforslag.
[homepage.git] / mypapers / drafts / imap-local-delivery.html
1 <HTML>
2 <HEAD>
3 <TITLE>Configuring fetchmail and procmail for local delivery</TITLE>
4 </HEAD>
5 <BODY>
6
7 <H1>Configuring fetchmail and procmail for local delivery</H1>
8
9 I wanted to fetch my email from a IMAP server and be able to read it
10 using good old elm. To do this I decided to use fetchmail to get the
11 email from the IMAP server, and procmail to do the local delivery.
12
13 The fetchmail config file (<TT>~/.fetchmailrc</TT>) file needs to call
14 procmail with '-f-':
15
16 <BLOCKQUOTE><PRE>
17 # Configuration created Wed Mar 8 10:06:26 2000 by fetchmailconf
18 set postmaster "pere"
19 set daemon 30 # seconds between mail checks
20 poll eeserver.ee.uwa.edu.au with proto IMAP
21 mda "/usr/bin/procmail -f-"
22 poll odin.ee.uwa.edu.au with proto IMAP
23 mda "/usr/bin/procmail -f-"
24 </PRE></BLOCKQUOTE>
25
26 The procmail config file need to specify path to required support
27 programs, and where to store the incoming email:
28
29 <BLOCKQUOTE><PRE>
30 PATH=/bin:/usr/bin:/usr/sbin
31 MAILDIR=$HOME/Mail #you'd better make sure it exists
32 DEFAULT=$MAILDIR/imap-mbox #completely optional
33 LOGFILE=$MAILDIR/from #recommended
34 </PRE></BLOCKQUOTE>
35
36 <HR>
37 Petter Reinholdtsen, March 2000
38
39 </BODY>
40 </HTML>