[Dovecot] appending domain based on port
Timo Sirainen
tss at iki.fi
Thu Jan 31 16:43:18 EET 2008
On Mon, 2008-01-28 at 12:11 -0500, Eric Hester wrote:
> I am looking for a way to append a domain to unqualified user names
> based on the port that the client connected to. Like this:
>
> port 9110 - @test.com
> port 9111 - @other.com
> port 9112 - @third.com
>
> it looks like auth-default-realm does this, but you can only specify
> it once for the whole process.
>
> I know I could do this by running a separate copy of dovecot attached
> to each port in question, but I would like to do it all in one process
> if possible.
What passdb do you use? This would be possible with SQL and
checkpassword passdbs at least. You can get the local port from %l
variable.
> Other questions I have, if I use the auth-default-realm:
>
> 1) does it happen before auth lookup I assume?
Yes.
> 2) do I have to define the domain i use here as an auth-realm in
> addition to default?
No.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080131/53725150/attachment.bin
More information about the dovecot
mailing list