Re: [Dovecot] appending domain based on port

2008-02-04 Thread Timo Sirainen
On Mon, 2008-02-04 at 12:54 -0500, Eric Hester wrote: > Sorry, now that I reread the comment for listen I see it says space > separated list. I'm not sure this is clear to everyone that it can be > used to listen on multiple ports as there are wiki pages showing how > to use iptables to get additio

Re: [Dovecot] appending domain based on port

2008-02-04 Thread Eric Hester
Sorry, now that I reread the comment for listen I see it says space separated list. I'm not sure this is clear to everyone that it can be used to listen on multiple ports as there are wiki pages showing how to use iptables to get additional ports: http://wiki.dovecot.org/Iptables The patch worked

Re: [Dovecot] appending domain based on port

2008-02-04 Thread Timo Sirainen
On Mon, 2008-02-04 at 11:40 -0500, Eric Hester wrote: > Any chance of getting multiple ports per protocol in 1.1 or is that a > major undertaking? It should already work: listen = *:143 *:144 *:145 signature.asc Description: This is a digitally signed message part

Re: [Dovecot] appending domain based on port

2008-02-04 Thread Eric Hester
Any chance of getting multiple ports per protocol in 1.1 or is that a major undertaking? On Feb 4, 2008 4:23 AM, Timo Sirainen <[EMAIL PROTECTED]> wrote: > On Sun, 2008-02-03 at 17:25 -0500, Eric Hester wrote: > > I got this working using %l for the ip, but I'd really rather do > > multiple ports

Re: [Dovecot] appending domain based on port

2008-02-04 Thread Timo Sirainen
On Sun, 2008-02-03 at 17:25 -0500, Eric Hester wrote: > I got this working using %l for the ip, but I'd really rather do > multiple ports so I don't have to have 4 ips on 16 different machines. Oh, somehow I wasn't thinking and thought %l was the same as port :) > I was trying to use the new 1.1

Re: [Dovecot] appending domain based on port

2008-02-03 Thread Eric Hester
I got this working using %l for the ip, but I'd really rather do multiple ports so I don't have to have 4 ips on 16 different machines. I was trying to use the new 1.1 %a variable as the local port in my query but it seems to always return 0 in 1.1beta14, does this variable not work yet? On Jan 3

Re: [Dovecot] appending domain based on port

2008-01-31 Thread Timo Sirainen
On Thu, 2008-01-31 at 10:32 -0500, Eric Hester wrote: > I use sql for my passwd db. So are you saying use some kind of > conditional in my select that checks for @ in the username and if not > found appends the domain based on the %l variable (using something > like a join to a table that has port

Re: [Dovecot] appending domain based on port

2008-01-31 Thread Eric Hester
I use sql for my passwd db. So are you saying use some kind of conditional in my select that checks for @ in the username and if not found appends the domain based on the %l variable (using something like a join to a table that has port to domain mappings). Interesting. Im worried that might add si

Re: [Dovecot] appending domain based on port

2008-01-31 Thread Timo Sirainen
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

[Dovecot] appending domain based on port

2008-01-28 Thread Eric Hester
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