HomeAboutMailing ListList Chatter /0/0 35.170.78.142

Dovecot sux.. Dovecot rox

2020-10-07 by: "Mike (meuon) Harrison"
From: "Mike (meuon) Harrison" 
------------------------------------------------------


On topic rant and fix!

At ring-u.com, some things were locking up because dovecot was locking 
under load... I hated it. The problem was I was using the default easy 
config that works for small load systems, postfix delivered to 
/var/spool/mail/$user and dovecot was grabbing the same. 1 file, 1 lock, 
Postfix and Dovecot trying to manage a file that was constantly being read 
and rewritten. Really bad mojo.

I was about to create a dedicated mail server and install Courier, 
because that's what I used to have to do for high capacity mail systems 
using Maildir formats.. (1 file per message).

The fix in 2 parts:

Postfix, added to /etc/postfix/main.cf

    home_mailbox = Maildir/
    mailbox_command =

Dovecot,change to /etc/dovecot/conf.d/10-mail.conf

#mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_location = maildir:~/Maildir


That was easy! (oh and restart both...)

And now Dovecot and Postfix aren't trying to read and write the same file 
at the same time, and life is good.

I need to change this everywhere, making it part of my default system 
(that handles email) setup.


Why does a VoIP telecom do weird things with email?
Fax to Email. Email to Fax, VoiceMail to Email, VoiceMail 
w/Transcription to Email, SMS to Email.... plus all the usually account 
stuff, invoices, notices, etc..It's insane how much email we process.

--meuon--  me as a subatomic particle sending this with 100% recycled electrons.



=============================================================== From: Jason Brown ------------------------------------------------------ I was never fond of the mbox format, maildir (one file per message) made more logical sense, and is easier to troubleshoot. On Wed, Oct 7, 2020 at 9:45 AM Mike (meuon) Harrison wrote: -- Jason Brown