[Dovecot] Calling dovecot-lda from within Antispam pipe script (bash) seems to have no effect

e-frog e-frog at gmx.de
Sat Jun 22 10:57:12 EEST 2013


On 21.06.2013 21:54, wrote Ben Johnson:

>
> write(2, "\1\00429770 user sa-training at exampl"..., 139^A^D29770 user
> sa-training at example.com: Error reading configuration:
> net_connect_unix(/var/run/dovecot/config) failed: Permission denied
>
> It seems the issue here is that "root" is the only user who is allowed
> to read Dovecot's configuration file. Presumably, Dovecot, like most
> services, is started as "root" and then drops its permissions to
> least-required once started.
>

You can change owner and mode for /var/run/dovecot/config with the 
following entry in 10-master.conf:

service config {
   unix_listener config {
     mode = 0600
     user = vmail
   }
}

More details can be found here: http://wiki2.dovecot.org/Services

/e-frog


More information about the dovecot mailing list