Dovecot 1.2.10 fails to start
Ryan Schmidt
ryandesign at macports.org
Sat Feb 6 11:59:41 PST 2010
On Feb 6, 2010, at 06:42, Mark Hattam wrote:
> Ah OK ... it doesn't go away on its own. It's been there a long time through lots of reboots.
>
> iMac:dovecot mark$ ls -la /opt/local/var/run/dovecot/
> total 8
> drwxr-xr-x 6 root admin 204 5 Feb 17:51 .
> drwxr-xr-x 4 root admin 136 21 Nov 02:50 ..
> srw------- 1 root wheel 0 5 Feb 17:51 auth-worker.552
> -rwxrwxrwx 1 root admin 0 30 Aug 23:43 dict-server
> drwxr-x--- 3 root dovecot 102 5 Feb 17:51 login
> -rw------- 1 root admin 4 5 Feb 17:51 master.pid
Note also that dict-server is shown as a regular file (line begins with "-").
> iMac:dovecot mark$ sudo rm dict-server
>
> iMac:dovecot mark$ sudo port deactivate dovecot at 1.1.16_0+darwin_10
> ---> Deactivating dovecot @1.1.16_0+darwin_10
>
> <reboot> to ensure nothing is running that oughtn't be
>
> iMac:~ mark$ sudo port activate dovecot at 1.2.10_0
> ---> Activating dovecot @1.2.10_0
>
> make the above changes to dovecot.conf
> iMac:~ mark$ sudo vi /opt/local/etc/dovecot/dovecot.conf
>
> run the new version again
> iMac:~ mark$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.dovecot.plist
Note that deactivating a port and rebooting would not have unloaded the plist for you. If the plist was loaded, you should unload it before deactivating the port. It might be a good idea for MacPorts base to do this automatically, but it doesn't at present. In any case, it appears you were able to get dovecot stopped and its old socket file deleted, so that's good.
> Now I see
> iMac:dovecot mark$ sudo ls -la /opt/local/var/run/dovecot/
> Password:
> total 16
> drwxr-xr-x 7 root admin 238 6 Feb 12:32 .
> drwxr-xr-x 4 root admin 136 21 Nov 02:50 ..
> srw------- 1 root wheel 0 6 Feb 12:32 auth-worker.64
> srwxrwxrwx 1 root admin 0 6 Feb 12:32 dict-server
> lrwx------ 1 root admin 35 6 Feb 12:32 dovecot.conf -> /opt/local/etc/dovecot/dovecot.conf
> drwxr-x--- 3 root dovecot 102 6 Feb 12:32 login
> -rw------- 1 root admin 3 6 Feb 12:32 master.pid
Note that now dict-server is marked as a socket link like it should be (line begins with "s").
> So dovecot 1.2.10 is now running without chucking errors into system.log or mail.log which appears to be good.
Great!
More information about the macports-users
mailing list