Dovecot and Postfix integration

Soren Hansen soren at ubuntu.com
Fri Jan 18 09:41:52 UTC 2008


On Sat, Jan 12, 2008 at 07:16:05PM +0100, Ante Karamatić wrote:
> As some of you know, I've been working on better out-of-the-box
> dovecot and postfix integration in Ubuntu.

\o/


> Status of the work is at:
> 
> https://bugs.edge.launchpad.net/ubuntu/+source/dovecot/+bug/164837
> 
> We kind of all agreed on having this integrated trough task in tasksel.
> Last debdiff provided there should be enough for this kind of setup.

I'm still not convinved this is the right approach.

> Since these are all good changes for everybody, there are ideas on
> moving this out of tasksel and into packages. This way everybody would
> benefit from our changes.

Yes.

> I didn't do anything since last debdiff, so I would like to hear pros
> and cons that that last idea (moving everything into packages).
> Basically, if someone would install postfix, he automatically would
> get dovecot-common (note that this isn't IMAP/POP3 daemon, but a SASL
> component) and preconfigured system for Maildir.

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.

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?

-- 
Soren Hansen
Ubuntu Server Team
http://www.ubuntu.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20080118/c442dbd8/attachment.pgp>


More information about the ubuntu-server mailing list