Actually setting all users in <vuser> to vmail worked! I had missed a
"%" sign infront of {dest}

Gonna share my setup once I get my notes validated.

It would be really cool to have LMTP working too :)

2014-04-17 1:30 GMT+02:00 Martin Braun <yellowgoldm...@gmail.com>:
> 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: f...@example.com uid=5000
> gid=5000 home=/var/vmail
> Apr 17 01:26:04 lda(f...@example.com): 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 misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to