Okay.. so I finally figured out what's going on.
Getting dovecot to give some usefull debugging apparently needed to
create it's own log file rather than logging to syslog, anyway..
OpenSMTPD is calling dovecot-lda with the wrong user!
Dovecot expects the user to be vmail, which is setup in "unix_listener
auth-userdb", which in this case is "vmail", but OpenSMTPD is calling
dovecot-lda with the username of the recipient.
I have tried using something like:
deliver to mda "/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d vmail"
But this still isn't working.
Setting all users in <vuser> to vmail gives this:
Apr 17 01:26:04 lda: Debug: auth input: [email protected] uid=5000
gid=5000 home=/var/vmail
Apr 17 01:26:04 lda([email protected]): Fatal: setgid(5000(vmail) from
userdb lookup) failed with euid=1001(foo), gid=1001(foo),
egid=1001(foo): Operation not permitted (This binary should probably
be called with process group set to 5000(vmail) instead of 1001(foo))
And it doesn't matter what "-d" (username) is set to.
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]