I see that /lib/systemd/system/dovecot.socket has

 [Unit]
 Description=Dovecot IMAP/POP3 email server activation socket

 [Socket]
 #dovecot expects separate IPv4 and IPv6 sockets
 BindIPv6Only=ipv6-only
 ListenStream=0.0.0.0:143
 ListenStream=[::]:143
 ListenStream=0.0.0.0:993
 ListenStream=[::]:993
 KeepAlive=true

 [Install]
 WantedBy=sockets.target


but then, this is not going to work for anyone wanting to use pop3s on
port 995 or pop3 on port 110.

Additionally, under "[Socket]", there would need to be

 ListenStream=0.0.0.0:110
 ListenStream=[::]:110
 ListenStream=0.0.0.0:995
 ListenStream=[::]:995


depending upon what ports are desired, but probably more useful to include
them all by default.

And still, neither "dovecot.socket" nor "dovecot.service" is being started.


A related discussion about what to do with synchronizing dovecot and systemd
configuration files, from 2012 March 15, can be found at

 http://comments.gmane.org/gmane.mail.imap.dovecot/63437


There is also some related discussion about dovecot configuration at

 https://bugzilla.redhat.com/show_bug.cgi?id=743444



There is a relevant bit here, from Michal Hlavinka, 2011 December 14,

        /{etc|lib}/systemd/system/sockets.target.wants/<daemon>.service is
        like /etc/rc.d/rd.5/<daemon> 

        so in fact, it's not that different.

        service <daemon> start uses:
        for init script:
        /etc/init.d/<daemon>
        for systemd:
        /lib/systemd/system/<daemon>.service

        for start during boot:
        init script:
        /etc/rc.d/rc.5/Sxy<daemon>
        systemd:
        /lib/systemd/system/multi-user.target.wants/<daemon>.service

        so both SysV init and systemd need that file in multiple locations to
        work.


So then, that implies

 $ sudo ln -s ../dovecot.socket 
/lib/systemd/system/multi-user.target.wants/dovecot.socket

or

 $ sudo ln -s ../dovecot.service 
/lib/systemd/system/multi-user.target.wants/dovecot.service


Sure enough - that seems to work, starting on boot.  It may be that those
links could alternatively go into /etc/systemd/system/multi-user.target.wants/.

It would seem that dovecot-core should create one of those links.  How to
decide which link?  Perhaps, at least, a whacking-big note inside of
/etc/dovecot/README, or perhaps a selection process upon installation.


James




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to