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.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to