Dovecot and Postfix integration

Ante Karamatić ivoks at grad.hr
Fri Jan 18 10:20:15 UTC 2008


On Fri, 18 Jan 2008 10:41:52 +0100
Soren Hansen <soren at ubuntu.com> wrote:

> I'm not sure about switching to Maildir. I definitely think Maildir
> is a major improvement over mbox, but I'm worried too many things
> still depend on /var/spool/mail/$USERNAME to be where the user's mail
> is at. I could be totally wrong, but we need to check it.

I would say that those things are broken then. If we decide to go with
Maildir, then we should just append 'dir=~/Maildir' for every
pam_mail.so in /etc/pam.d. Other than that, some minor changes
in /etc/login.defs (optional). If program doesn't respect pam or
login.defs, then it's broken :)

> If we focus on the SASL stuff for a little bit, IIRC my last proposal
> was to make postfix's init script do something like:
> 
> if [ -x /usr/sbin/dovecot ]
> then
>     # Use http://pastebin.ubuntu-nl.org/46677/ to grab the socket path
>     if [ ! -e /etc/postfix/dovecot_sasl_configured ]
>     then
>         # Set the SASL stuff up (like in your debdiff)
>         postconf -e 'blahblah'
>     else
>         SASL_SOCKET="`parsestuff "auth default" "socket" "client"
> "path"`" mount -o bind
> "${SASL_SOCKET}" /var/spool/postfix/private/auth fi
> fi
> 
> How does that look?

I see some problems with it, but this could be explained in
documentation (i.e. if someone configures auth mechanism in main.cf
and leaves dovecot_sasl_configured, it could get funny). But I do like
the idea, maybe we should use postconf to find out if auth mechanism is
configured and then decide what to do...

LaMont?




More information about the ubuntu-server mailing list