[Dovecot] systemd socket and service
Hello. I'm use systemd and have some questions:
- Why dovecot.socket contains only imap ListenStream? [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
- Does dovecot.service required to use dovecot lmtp, or it may be stoppped (i not often check my mails via client, but have many incoming mails some time)
-- Vasiliy G Tolstov v.tolstov@selfip.ru Selfip.Ru
On 22.2.2011, at 12.17, Vasiliy G Tolstov wrote:
Hello. I'm use systemd and have some questions:
- Why dovecot.socket contains only imap ListenStream?
You mean why doesn't it contain POP3? I guess mainly because that's how it was submitted to me and I didn't think of it. Also now that I do think about it, I'm still not sure if it should contain POP3 by default. Even Dovecot's on example-config doesn't enable POP3 by default.
- Does dovecot.service required to use dovecot lmtp, or it may be stoppped (i not often check my mails via client, but have many incoming mails some time)
I don't understand. If you want LMTP enabled, you also need to list its socket to dovecot.socket. LMTP is executed in a similar way to IMAP/POP3. (If you want LMTP via UNIX socket, I don't really know the answer to that. Does systemd support listening on UNIX sockets? Maybe it requires patching Dovecot more.)
On Mon, 2011-02-28 at 23:35 +0200, Timo Sirainen wrote:
On 22.2.2011, at 12.17, Vasiliy G Tolstov wrote:
Hello. I'm use systemd and have some questions:
- Why dovecot.socket contains only imap ListenStream?
You mean why doesn't it contain POP3? I guess mainly because that's how it was submitted to me and I didn't think of it. Also now that I do think about it, I'm still not sure if it should contain POP3 by default. Even Dovecot's on example-config doesn't enable POP3 by default.
Ok. I'm not read default config in v2 dovecot.
- Does dovecot.service required to use dovecot lmtp, or it may be stoppped (i not often check my mails via client, but have many incoming mails some time)
I don't understand. If you want LMTP enabled, you also need to list its socket to dovecot.socket. LMTP is executed in a similar way to IMAP/POP3. (If you want LMTP via UNIX socket, I don't really know the answer to that. Does systemd support listening on UNIX sockets? Maybe it requires patching Dovecot more.)
I'm not fully understand how can i do that and not lost my changes to dovecot.socket when the packages updates and file has been rewritten...
-- Vasiliy G Tolstov v.tolstov@selfip.ru Selfip.Ru
- Does dovecot.service required to use dovecot lmtp, or it may be stoppped (i not often check my mails via client, but have many incoming mails some time)
I don't understand. If you want LMTP enabled, you also need to list its socket to dovecot.socket. LMTP is executed in a similar way to IMAP/POP3. (If you want LMTP via UNIX socket, I don't really know the answer to that. Does systemd support listening on UNIX sockets? Maybe it requires patching Dovecot more.)
I'm not fully understand how can i do that and not lost my changes to dovecot.socket when the packages updates and file has been rewritten...
packages should install systemd socket/service files in /lib/systemd/.... if you want to change any file, you should copy it to /etc/systemd/... and modify it there. systemd prefers files in /etc/systemd over those in /lib/systemd
On Tue, 2011-03-01 at 09:36 +0100, Michal Hlavinka wrote:
- Does dovecot.service required to use dovecot lmtp, or it may be stoppped (i not often check my mails via client, but have many incoming mails some time)
I don't understand. If you want LMTP enabled, you also need to list its socket to dovecot.socket. LMTP is executed in a similar way to IMAP/POP3. (If you want LMTP via UNIX socket, I don't really know the answer to that. Does systemd support listening on UNIX sockets? Maybe it requires patching Dovecot more.)
I'm not fully understand how can i do that and not lost my changes to dovecot.socket when the packages updates and file has been rewritten...
packages should install systemd socket/service files in /lib/systemd/.... if you want to change any file, you should copy it to /etc/systemd/... and modify it there. systemd prefers files in /etc/systemd over those in /lib/systemd
Ohh. Very nice. Thank You very much!
Vasiliy G Tolstov v.tolstov@selfip.ru Selfip.Ru
participants (3)
-
Michal Hlavinka
-
Timo Sirainen
-
Vasiliy G Tolstov