On Wed, 2014-08-20 at 11:47 +0200, Giovanni Bechis wrote: > On 08/20/14 11:27, Martijn van Duren wrote: > > Hello Giovanni, > > > > When doing a login the username is always stripped from its domain part. > > For my setup (sqlite-based) I worked around this in the following manner > > (only important sections): > I have to think if it is possible for me, I want to switch to opensmtpd only > one node of my postfix cluster for the moment; my user database must be > postfix-compatible for some time. > Cheers & Thanks > Giovanni
In that case you could try something like this in your mysql.conf (Haven't tested, so I could be way of in my assumptions in query_alias): query_alias select COALESCE(destination, REPLACE(maddr, '@', '_')), ? as maddr from mail_forwarding where source=maddr; query_userinfo select uid,gid,maildir from mail_user where REPLACE(login, '@', '_')=? and server_id=6; and for smtpd.conf: accept for domain <vdomains> userbase <vusers> virtual <aliases> deliver to maildir -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
