> I think this bug is back in dovecot 2.4.1.
> I'm getting:-
> lmtp(15118): Error: conn unix:/run/dovecot/anvil:
net_connect_unix(/run/dovecot/anvil) failed: Permission denied
I get the same error with Dovecot 2.4.1.
This is caused by running lmtp as non-root, i.e. with a configuration like
service lmtp {
user = vmail
}
src/lmtp/lmtp-commands.c client_default_cmd_mail() has this code:
/* Connect to anvil before dropping privileges */
lmtp_anvil_init();
However if I got this right
a) This code is called after dropping privileges, so would not have the
permissions.
b) It doesn't actually connect to the anvil socket since lmtp_anvil_init()
doesn't call anvil_client_connect()
Adding lmtp_anvil_init(); anvil_client_connect() calls in src/lmtp/main.c
main() before drop_privileges() fixes the error but I don't know if that's
the right approach.
Cheers,
Felix
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]