setting service_count results in Permission denied

Timo Sirainen tss at iki.fi
Wed Apr 15 16:40:19 UTC 2015


On 06 Apr 2015, at 23:28, Micah Anderson <micah at 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 
>  }
> }



More information about the dovecot mailing list