Wednesday, May 03, 2006

Sendmail, dovecot, squirrelmail and Maildir

I had to advise somebody today on how to configure sendmail/dovecot/squirrelmail with Maildir. There really is no excuse not to switch to Maildir; it's both faster than mbox and supports sub directories!
I know this works on Fedora 4/5 so I just thought I'd post the config before I forget:

/etc/procmailrc (just the one line needed)

/etc/dovecot.conf (replace the appropriate line in your existing config)
default_mail_env = maildir:/%h/Maildir

/usr/share/squirrelmail/config/config.php (this section is near the beginning of the file)
$domain = '';
$imapServerAddress = 'localhost';
$imapPort = 143;
$useSendmail = true;
$smtpServerAddress = 'localhost';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$pop_before_smtp = false;
$imap_server_type = 'courier';
$invert_time = false;
$optional_delimiter = '.';
$encode_header_key = '';


Mikie said...

Of all these, procmail is the most important, as it's defaults are compiled-in, and it can run without the configuration file. You'll kick yourself for hours wondering why it isn't working, looking for procmailrc that isn't there, until you figure out that procmail puts everything into the system mailbox in /var/spool/mail in mbox format.

Like I did...

Anonymous said...

Great work, fast and easy, it worked fine for me in Fedora 11 with a few changes.

Phillip said...

Thanks for sharing! I used this on CentOS Linux 4.7 + Sendmail 8.13.1 + Dovecot IMAP/POP3 Server 0.99.11 + SquirrellMail 1.4.19 with no issues.