An improved mail server stack in Jaunty: Dovecot and Postfix integration

A session during last UDS was dedicated to improving the mail server stack available in Ubuntu Server. One of the item that came out of the discussion was a better integration between postfix and dovecot. Ante Karamatic worked on implementing it for Jaunty and his results have been uploaded.

To test it all you need is a jaunty system and install the dovecot-postfix package. Once the installation has completed the following configuration will be available:

SASL authentication for smtp services

Postfix is automatically configured to use Dovecot’s SASL authentifcation daemon. Remote SMTP clients can be authenticated to the Postfix SMTP server using the Dovecot user database. The same credentials (username/password, kerberos) can be used for accessing imap, pop3 and smtp services.

Dovecot deliver as the default Local Delivery Agent

postfix will use Dovecot’s deliver command to distribute incoming email to the end user’s mailbox using the Maildir format. Combining Dovecot deliver support for sieve scripts and the managesieve service enabled by default a complete server-side mail filtering solution is available out of the box.

Tls for smtp  services

Tls is made available for smtp and smtpd services provided by postfix while imap and pop3 are available via ssl. Security hasn’t been left out of the picture.

So if you’re interested in a integrated mail stack providing a combination of smtp, imap, pop3 and managesieve services the Jaunty Jackalope will suit you. Have a look at it, test it and with one simple command:

apt-get install dovecot-postfix

Let know the Ubuntu Server teamabout your suggestions and comments.

14 Responses to “An improved mail server stack in Jaunty: Dovecot and Postfix integration”

  1. Great news!

    Keep up rocking with the work you (the whole ubuntu server team) are doing on ubuntu server.

    Linux really needs a simple way of installing different servers (mail, file, web, etc…).


  2. There are some known issues with current version (postfix certificate paths have typos and there’s a missing argument in postfix’s, so early adopters should wait couple of days untill new upload hits repository.

  3. […] item that came out of the discussion was a better integration between postfix and dovecot. Read it here To test it all you need is a jaunty system and install the dovecot-postfix package. Once the […]

  4. […] Ubuntu 9.04 Alpha 5 released, new notifications are now in Jaunty, Kubuntu 8.04.2 released, Ubuntu 9.10: Karmic Koala announced, US Team seeking mentors to help new and upcoming LoCos, reports from Global Bug Jam, EPC out in Albuquerque, NM, USA, open source 3D game maker, LoCos Docs Day, LoCo Teams Meeting in #ubuntu-locoteams, Saturday Feb 28th 18:00 UTC, Drupal 5.x and 6.x Ubuntu LoCo Suite Released, more Ubuntu training available in the US, Ubuntu wins LQ desktop distro of the year, experimenting with 3g phones with NetworkManager and compatible phones on Ubuntu wiki, HP and Canonical working to get Proliant line certified, HP releases netbook with Ubuntu, HP customized UI available for download, survey finds Ubuntu server used for “mission critical” work, and improved mail stack with dovecot and postfix coming to Jaunty. […]

  5. Anyone happen to know if this package will work in Debian 5?

    • Sounds like a great improvement, as evidenced by the enormous howto s I’ve tried to follow to setup a mail server.
      None of the tutorials worked so far, so I’ve installed the dovecot-postfix package, but I’m wondering what to do next. The main things I am trying to figure out are:
      how to add email accounts
      what ports need to be forwarded (I have 25 forwarded right now)
      what setting to use to connect a client and check the mail

      I have an mx record on my domain pointing to my ip, and port 25 forwarded. I’m trying to figure out what to do next. Do you have any advice or howto that I can follow that uses the dovecot-postfix package method?

      Thank you so much in advance.

      • Erik, I was just wondering if you got your email figured out. If you haven’t yet maybe we could team up and try to work it out, I’m pretty much in the same place as you!

      • Hi Lukas, I got it partially working. I can check the account with imap and thunderbird and send email to myself, but I can’t seem to get email to or from the real world. That may be a problem with my ISP though. You may have better luck then me in the end.
        Do you have a Ubuntu forums account? If so, that would be the ideal place to try and get something working, I’m SoftwareExplorer at ubuntu forums and you could leave a comment on my page or pm me.

  6. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading about the mail server. Nice information

  7. Hi all,

    I’m just setting up a new VPS, and was wondering what the memory usage of this ueber package is.

    As I am not going to use the POP3 server functionality, but RoundCube webmail with the Dovecot IMAP and Postfix SMTP bits :
    Is there anyway of reducing the memory usage of (or not installing) the Dovecot POP3 server ?

    It would be nice to have a webmail only incarnation.


  8. miles sakaguchi Says:

    hi, so I installed apt-get install dovecot-postfix
    this is the telnet localhost 25 dialog:
    miles@erific:~$ telnet localhost 25
    Trying ::1…
    Connected to localhost.
    Escape character is ‘^]’.
    220 ESMTP Postfix (Ubuntu)
    ehlo localhost
    250-SIZE 10240000
    250 DSN
    auth login
    503 5.5.1 Error: authentication not enabled
    oing wrong? I want the smtp auth to work.

    please what am I d

  9. […] and dovecot is now configured to be integrated and configured for smtp auth. the article is:…x-integration/ p.s. the os is ubuntu 10.4 desktop. Idid do apt-get update first. thanks, Miles […]

  10. miles sakaguchi Says:

    hey the version of dovecot that comes with this setup is 1,2.9 so dovecot always gives
    the error Fatal: Time just moved backwards by 35999 seconds. This might cause a lot of problems if you can get the 2.0 versio or latter it would be appreciated
    thanks. I think this might be the caise of my problems posted above

Leave a Reply to Matt Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: