Headache-saving tips when setting up Postfix/Procmail/Courier-IMAP/SMTP-Auth/MySQL/Vmail on Debian:

  • Add home_mailbox = Maildir/ line to your /etc/postfix/main.cf (also useful to define your myhostname and mydomain)
  • Make sure you have an /etc/procmailrc file with at least, otherwise you won’t be seeing any mail:
    MAILDIR=$HOME/Maildir/
    DEFAULT=$MAILDIR
  • Run maildirmake Maildir in existing user folders, and then run maildirmake /etc/skel/Maildir; Courier-IMAP will barf w/o a properly created Maildir; watch permissions
  • Courier will throw errors if it can’t find the File Access Monitor daemon – this is probably a good thing to have installed from a performance perspective. apt-get install fam
  • this SMTP Auth/SMTP over SSL – Debian Woody 3.0 guide works. w/ Debian unstable I used sasl2 (install the sasl2 libs and sasl2 bins), use saslpasswd2 to create a sasldb2 (see a trend?) and enter appropriately in the sasl/smtpd.conf