|
Setting up IMAP with
Maildir
A very short bit on what to set up
to use, Sendmail (Nothing needs changed Dovecot, Procmail
and pine to use Maildir
This is on a Linux CentOS 4.5 System
|
Dovecot.conf changes:
(Just what to change )
comment out pop login
login = imap
protocols = imap
default_mail_env = maildir:~/Maildir
The above line will let
/home/user/Maildir be the mail directory |
|
/etc/procmail:
DROPPRIVS=yes
MAILDIR=$HOME/Maildir
DEFAULT=$MAILDIR/
:0fw
# The following line tells Procmail to send messages to Spamassassin
only if they are less thatn 256000 bytes. Most spam falls well below
this size and a larger size could seriously affect performance.)
* < 256000
| /usr/bin/spamc |
|
/home/user/.procmailrc:
SHELL=/bin/sh
PMDIR=/home/goldenhawk/.procmail
LOGFILE=$PMDIR/log
LOG="
"
VERBOSE=no
MAILDIR=$HOME/Maildir/ #
This directory must exist & be writable by your LOGNAME!
INCLUDERC=$PMDIR/rc.spamassassin
#INCLUDERC=$PMDIR/rc.testing
#INCLUDERC=$PMDIR/rc.subscriptions
INCLUDERC=$PMDIR/rc.filters |
|
/home/user/.procmail/rc.filter:
# ----
# Catch SPAM
# ----
:0:
* ^X-Spam-Flag: YES
* ^X-Spam-Level: \*\*\*\*\*
.spam/
#/dev/null
# ----
# Mailing list filters
# ----
# SHORTWAVE List
:0:
* ^Subject:.*[Shortwave]
.shortwave/
# F117-NIghthawk List
:0:
* ^Subject:.*F117
.nighthawk/
# Linux
List
:0:
* ^Delivered-To:.*Linux
.linux/
# dump
whaterver else in goldenhawk
:0:
.goldenhawk/ |
|
pine setup:
(From Main Menu via the (S)
Setup then (C) Config
domain = someplace.com
inbox-path {localhost/novalidate-cert}INBOX
Then, from Main via (L)
Folder Collection setup
Nickname : My Mail
Server : localhost
Path :
View :
|
NOTE: Pay attention to the
ending "/" in rc.filters lines - and what has and does not have "/" in other
files.
Thanks to String for the tips on procmail settings,
I was lost on this whole thing until I made the proper rc.filters file! (I had
the mail there, but they were buried so far no mail client could find them).
|