Re: Automatically inferring %d on multi-domain virtual install ?

2016-02-24 Thread Gabriel L. Somlo
On Sun, Feb 21, 2016 at 04:20:07AM +0200, Timo Sirainen wrote: > How about: > > passdb { > driver = passwd-file > args = username_format=%l /etc/dovecot/passwd.domains > result_success = continue > } > > passdb { > .. the real passdb for authentication .. > } > > Where /etc/dovecot/passw

Re: Automatically inferring %d on multi-domain virtual install ?

2016-02-24 Thread Gabriel L. Somlo
On Sun, Feb 21, 2016 at 04:20:07AM +0200, Timo Sirainen wrote: > How about: > > passdb { > driver = passwd-file > args = username_format=%l /etc/dovecot/passwd.domains > result_success = continue > } > > passdb { > .. the real passdb for authentication .. > } > > Where /etc/dovecot/passw

Re: Automatically inferring %d on multi-domain virtual install ?

2016-02-22 Thread Leon Kyneur
On 22/02/16 18:56, Steffen Kaiser wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 21 Feb 2016, Leon Kyneur wrote: Date: Sun, 21 Feb 2016 10:51:21 + From: Leon Kyneur To: Dovecot Mailing List , Timo Sirainen Subject: Re: Automatically inferring %d on multi-domain virtual

Re: Automatically inferring %d on multi-domain virtual install ?

2016-02-22 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 21 Feb 2016, Leon Kyneur wrote: Date: Sun, 21 Feb 2016 10:51:21 + From: Leon Kyneur To: Dovecot Mailing List , Timo Sirainen Subject: Re: Automatically inferring %d on multi-domain virtual install ? very intrigued by your solution

Re: Automatically inferring %d on multi-domain virtual install ?

2016-02-21 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 21 Feb 2016, Leon Kyneur wrote: Date: Sun, 21 Feb 2016 10:51:21 + From: Leon Kyneur To: Dovecot Mailing List , Timo Sirainen Subject: Re: Automatically inferring %d on multi-domain virtual install ? very intrigued by your solution

Re: Automatically inferring %d on multi-domain virtual install ?

2016-02-21 Thread Leon Kyneur
very intrigued by your solution Timo, have attempted something similar in the past to no avail. When I tried I was unable to retain the user@domain when setting the domain as extra field - protected is new to me and can't find documentation - but also doesn't work :( # cat passwd.domains 10.100.1

Re: Automatically inferring %d on multi-domain virtual install ?

2016-02-20 Thread Timo Sirainen
How about: passdb { driver = passwd-file args = username_format=%l /etc/dovecot/passwd.domains result_success = continue } passdb { .. the real passdb for authentication .. } Where /etc/dovecot/passwd.domains contains: 10.0.0.100:domain=foo.org 10.0.0.101:domain=bar.org So the

Re: Automatically inferring %d on multi-domain virtual install ?

2016-02-19 Thread Gabriel L. Somlo
On Fri, Feb 19, 2016 at 08:41:15AM +0100, Steffen Kaiser wrote: > >I'm trying to allow domain-less logins for a multi-domain virtual IMAP > >server, and wondering if I can automatically infer the domain (value of > >variable %d) from the local IP (%l) or the hostname used by the client > >when conn

Re: Automatically inferring %d on multi-domain virtual install ?

2016-02-18 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 12 Feb 2016, Gabriel L. Somlo wrote: I'm trying to allow domain-less logins for a multi-domain virtual IMAP server, and wondering if I can automatically infer the domain (value of variable %d) from the local IP (%l) or the hostname used by t

Automatically inferring %d on multi-domain virtual install ?

2016-02-12 Thread Gabriel L. Somlo
Hi, I'm trying to allow domain-less logins for a multi-domain virtual IMAP server, and wondering if I can automatically infer the domain (value of variable %d) from the local IP (%l) or the hostname used by the client when connecting to my server. Let's say I have two host names: mail.foo.org (10