On 2017-02-08 00:10, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sun, 5 Feb 2017, ygrishin-lists@mail2.ca wrote:
service dict { unix_listener dict { mode = 0660 user = Debian-exim group = Debian-exim } }
dovecot-lda-erros.log:
Feb 04 14:23:33 lda(testuser@XXX): Error: read(/var/run/dovecot/dict) failed: Remote disconnected
dovecot.log:
Feb 04 13:57:06 imap(YYY@XXX): Error: write(/var/run/dovecot/dict) failed: Broken pipe ...
dovecot-debug.log:
Feb 04 13:18:12 lda(YYY@XXX): Error: read(/var/run/dovecot/dict) failed: Remote disconnected Feb 04 13:18:12 lda(YYY@XXX): Error: dict quota: Quota update failed, it's now desynced Feb 04 13:57:07 lda(testuser@XXX): Error: write(/var/run/dovecot/dict) failed: Broken pipe
Does a process listens on /var/run/dovecot/dict ?
It certainly does:
#lsof /var/run/dovecot/dict COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dovecot 1140 root 42u unix 0xc6fe2300 0t0 15861 /var/run/dovecot/dict type=STREAM
$ ls -l /var/run/dovecot/dict srw-rw---- 1 Debian-exim Debian-exim 0 Feb 12 03:53 /var/run/dovecot/dict
The socket is accessable by Debian-exim:Debian-exim only (0660). As what user and group does the LDA and imap service run as?
LDA works as dovecot:Debian-exim:
lda:
driver = pipe
... group = Debian-exim ...
(without specifying the user explicitly).
Yuriy