OT: Re: Any potential gotchas using Maildir with MailScanner?
Mike McMullen
mlm at LOANPROCESSING.NET
Thu Dec 29 18:46:03 GMT 2005
[ The following text is in the "iso-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
Moved this to OT since it's not really MailScanner related. -Mike
----- Original Message -----
From: "Kai Schaetzl" <maillists at CONACTIVE.COM>
To: <MAILSCANNER at JISCMAIL.AC.UK>
Sent: Thursday, December 29, 2005 9:26 AM
Subject: Re: Any potential gotchas using Maildir with MailScanner?
> Mike, thanks for sharing your experience. Is there any need to tell
> procmail about it if there's no .procmailrc in use? I mean, no user has a
> procmailrc or .forward and incoming mail is just delivered (by LDA
> procmail) to the INBOX of that user.
>
> Kai
>
Hi Kai,
I used a .procmailrc file in my home directory on the mail server. You
have to tell procmail somewhere that you are using maildir format.
Since I already had a .procmailrc to handle message sorting I added the
following to the top of my .procmailrc file:
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR
The trailing slash on $HOME/Maildir is important!
One advantage of using the .procmailrc in my home directory is that
it enabled me to convert all my folders and mail to maildir format on the
production system while all the other users stayed with mbox.
You can put the same two lines in /etc/procmailrc and it will be the default
behavior for the entire system.
My setup is FC4 with milter-greylist/sendmail/MailScanner/SA/ClamAV and
dovecot for IMAP service. If you are using dovecot after you do your mbox
to Maildir conversion rename your mbox directory (typically ~/mail)
to something else or dovecot will use it over Maildir.
All this can be set in /etc/dovecot.conf.
Once your comfortable that your email was converted correctly and is getting
stored in the right place, you can delete your mbox directory.
I still have to get used to my inbox not being in /var/spool/mail anymore!
Hope this helps,
Mike
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list