----- Original Message ----
From: Chris Stratford <chris.stratford@pipex.net>
To: Nelson Serafica <ntserafica@yahoo.com>
Cc: perdition-users@vergenet.net
Sent: Thursday, September 6, 2007 4:35:24 PM
Subject: Re: [PERDITION-USERS] multiple domains and local servers
On Wed, 2007-09-05 at 19:12 -0700, Nelson Serafica wrote:
> Thanks Chris for all the replies. I can now login in POP/IMAP in my
> IP. It almost solve my problem but still there are some glitch. I'm
> not sure if this can be done in regex or whatever. Here is my
> popmap.re:
>
> ^nelsonts: 10.5.0.1 (email is nelsonts@foo.com)
> ^helpdesk: 10.5.0.7 (email is helpdesk@foo.com)
> ^nelsonts: 10.5.0.7 (email is
nelsonts@fee.net)
...
> Is there an other way for me to forward this to 10.5.0.7?
> Is it possible to read the email address instead of login name?
> popmap.re will rely in domain and not in login name.
Your previous popmap.re was better for this. Try something like:
^nelsonts@foo.com: 10.5.0.1
^helpdesk@foo.com: 10.5.0.7
^nelsonts@fee.com: 10.5.0.7
(By the way, if you are planning to do this on a per-user basis, one of
the DB backends might be better than regex - I thought originally you
wanted all of the @foo.com addresses to go to 10.5.0.1 and the @fee.net
ones to go to 10.5.0.7)
With this, if you login with "nelsonts@foo.com" you end up at 10.5.0.1.
if you login with nelsonts@fee.net you end up at 10.5.0.7. Now the fun
starts...
Your perdition server has three addresses (from your other email):
60.4.5.1
60.4.5.2
60.4.5.3
If
the reverse DNS for these addresses is set up as something like this:
60.4.5.1 imap.foo.com
60.4.5.2 imap.fee.net
60.4.5.4 imap.something.else.com
If you connect to 60.4.5.1 and log in with just "nelsonts" Perdition
will do a reverse lookup against the interface you connected to (in this
case finding imap.foo.com), remove the first bit (this is configurable)
and append the rest to the login name (assuming you still have
"add_domain servername_lookup" in your config file) leaving you with
"nelsonts@foo.com".
If you connect to the other addresses it would add "fee.net" or
"something.else.com" as appropriate.
Note: The reverse DNS *must* be set up for this to work. Without that,
you would only be able to use "nelsonts@fee.net" style logins (unless
you run multiple copies of Perdition, as you suggest in your
other
mail).
I think that's what you're trying to achieve.
Chris.