[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensmtpd-misc
Subject:    Re: OpenSMTPD can't talk with Dovecot, wrong UID
From:       Martin Braun <yellowgoldmine () gmail ! com>
Date:       2014-04-16 23:38:18
Message-ID: CAFNm86SZ4J9K0bngEQx9ZjpAwBxxmZfcNC2RZnVr-4hv_p-WBw () mail ! gmail ! com
[Download RAW message or body]

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 <yellowgoldmine@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: foo@example.com uid=5000
> gid=5000 home=/var/vmail
> Apr 17 01:26:04 lda(foo@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+unsubscribe@opensmtpd.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic