15 Apr
2015
15 Apr
'15
7:40 p.m.
On 06 Apr 2015, at 23:28, Micah Anderson <micah@riseup.net> wrote:
but when I added that to the service imap block, and restarted dovecot, I see this in the logs: Error: net_connect_unix(/run/dovecot/imap-postlogin) failed: Permission denied
imap process can't connect to imap-postlogin after it has already dropped privileges to the mail user (first time it runs as root).
service imap-postlogin { # the script process runs as the user specified here (v2.0.14+): #user = $default_internal_user
executable = script-login /usr/local/sbin/postlogin_imap
# this UNIX socket listener must use the same name as given to imap executable unix_listener imap-postlogin { # whatever user/mode permissions needed in here, for example: user = vmail } }