sendmail imap mailbox location
Chan Min Wai
dcmwai at pl.jaring.my
Tue Jun 8 11:58:37 UTC 2004
Nina Pham wrote:
> Hi, By default, imap mailboxes are located at
> /var/spool/mail/user-mailboxes. I'd like to change to another location
> so each user can access to his own mailbox (e.g., /imapMail/ninamailbox
> for nina, /imapMail/tommailbox for Tom, etc...) What file should I edit?
> Thanks. By the way, I'm using FC2
>
> Nina
>
>
This is actually my procmailrc to work sendmail with Maildir,
There seem to be a bug here somehow where, Some of the message content
will be missing (it is rarely happen) :)
# /etc/procmailrc
# Setup procmail for imap-maildirs
# MrDev 2704 2001 - Created
# MrDev 0305 2001 - Added support for /var/spool/imap/*
# MrDev 2806 2001 - Moved maillogs to /var/log/imap/
# MrDev 2303 2002 - Added some comments
VERBOSE=off
# convert mimed mail to plain text
:0
* ^Content-Type: *text/plain
{
:0 fbw
* ^Content-Transfer-Encoding: *quoted-printable
| mimencode -u -q
:0 Afhw
| formail -I "Content-Transfer-Encoding: 8bit" -I
"X-Mimed-Autoconverted: quoted-printable to 8bit by procmail"
:0 fbw
* ^Content-Transfer-Encoding: *base64
| mimencode -u -b
:0 Afhw
| formail -I "Content-Transfer-Encoding: 8bit" -I
"X-Mimed-Autoconverted: base64 to 8bit by procmail"
}
# Spool to homedir :
MAILDIR=$HOME/Maildir/
# Spool to /var/spool/imap :
#MAILDIR=/var/spool/imap/$LOGNAME/Maildir/
# Common stuff:
DEFAULT=$MAILDIR
# Logfiles can be useful for debugging:
#LOGFILE=$MAILDIR.maillog
LOGFILE=/var/log/imap/$LOGNAME.log
# Microsoft clients who doesn't obey RFC's may require locking:
#LOCKFILE=$MAILDIR.lockmail
# Just in case mail can't be delivered to users Maildir, spool it here:
ORGMAIL=/var/spool/mail
# End of /etc/procmailrc
More information about the fedora-list
mailing list