On Sun, 2007-09-02 at 18:55 -0700, Nelson Serafica wrote:
I'm setting up a mail server but don't know if
perdition can do this.
It can.
I have a front server and 5 local server. Front server
has 3 public
ip's. Can I designate different domains per public IP basis? Let's say
the public IP:
64.0.2.6 (domain X) to local server A
64.0.2.7 (domain Y) to local server B
64.0.2.8 (domain Z) to local server C
So here's the questions:
Can all these public IP listen to port 110/143 at the same time?
If someone email to domain X, it will listen to 64.0.2.6 port 110/143
and transferred it to local server A?
Perdition should listen on all interfaces by default, so that part isn't
a problem.
You would then need to add "add_domain servername_lookup" into your
config file(s) which will convert "USER eric" into "USER
eric(a)64.0.2.6" (or .2.7 or .2.8 depending on which IP address they
connected to).
Finally you will need some sort of username to server map. For
something as simple as this layout, regular expressions might be the way
to go, so you will want something like these in your config files(s):
map_library /usr/lib/libperditiondb_posix_regex.so
map_library_opt /etc/popmap.re
And something like this in popmap.re:
(.*)(a)64.0.2.6 $1@serverA
(.*)(a)64.0.2.7 $1@serverB
(.*)(a)64.0.2.8 $1@serverC
That should be about it. I've never tried using the regex library
myself, so that last bit might be wrong, but the general idea should be
okay.
Chris.