Adventures in Ubuntu Breezy Dovecot

    I mentioned the other day that I am having problems with Dovecot on Ubuntu Breezy. Now's the time to debug it, and here are my notes...

    No inetd.conf

      sed: can't read /etc/inetd.conf: No such file or directory

    This first error is because of this poorly implemented test:

      # The init script should do nothing if dovecot is being run from inetd
      for p in `sed -r "s/^ *(([^:]+|\[[^]]+]|\*):)?(pop3s?|imaps?)[ \t].*/\3/;t;d" \
        for q in `sed -r "s/^ *protocols[ \t]*=[ \t]*(([^\"]*)|\"(.*)\")/\2\3/;t;d" \
          if [ $p = $q ]; then
            exit 0

    You can see from the comment that the intention is that the init script doesn't do anything if dovecot is running from inetd. The error message is kinda bogus though, in that the code keeps executing after that failed line with the sed call in it. If you find the error annoying, then make it go away:

      touch /etc/inetd.conf

    In a perfect world, you'd hope that the packager would change the script to do something more like this:

      for p in `sed -r "s/^ *(([^:]+|\[[^]]+]|\*):)?(pop3s?|imaps?)[ \t].*/\3/;t;d" \
        /etc/inetd.conf 2> /dev/null`

    Moving right along...

    It doesn't start the service

    I had enabled the imap_listen variable in the dovecot.conf file, but not put it in the protocols variable. The init script checks this, and bugged out without an error message. I would think an error message would be nicer.

    And now it works.

    Tags for this post: linux ubuntu dovecot
    Related posts: Ubuntu Breezy and Dovecot hate me; Installing wine on Ubuntu Hoary; Compiling MythTV 0.19 for Ubuntu Dapper; Update on the Dell; Upgrading Ubuntu Feisty now that its end of lifed; MySQL Workbench

posted at: 20:40 | path: /linux/ubuntu | permanent link to this entry