On Mon, 2007-09-03 at 22:44 -0700, Nelson Serafica wrote:
So you mean I will just remove the hashmark in
add_domain
servername_lookup and add:
(.*)(a)64.0.2.6 $1@serverA
(.*)(a)64.0.2.7 $1@serverB
(.*)(a)64.0.2.8 $1@serverC
to popmap.re? server A is the local server and 64.0.2.6 is the public.
Same goes to other IPs.
Come to think of it, you might not even need the "$1@" part, but I've
not tried it that way.
I just add serverA,serverB and serverC in the
outgoing_server of the
perdition.imap.conf. Is this correct?
Oh yes, I forgot that bit. You won't need outgoing_server, because it
should get the details from the popmap.re lookup.
Our system setup is a little different from yours, but our
perdition.imap4.conf file (minus a few irrelevant bits) might help:
add_domain servername_lookup
no_bind_banner
domain_delimiter @
group nogroup
map_library /usr/local/perdition/lib/libperditiondb_bdb.so
map_library_opt /usr/local/perdition/etc/popmap.db
timeout 1800
username nobody
username_from_database
We use BerkeleyDB lookups instead of regex and our login names get
changed on the way through the system, but the basic idea is the same.
The popmap.db file has entries that look a bit like this:
user1(a)domain1.com mailbox1@server1
user2(a)domain1.com mailbox2@server5
user3(a)domain3.com mailbox9@server1
Our real IMAP server expects to see mailbox1, mailbox2, etc. as login
names, but as you are probably not doing this, you can omit
"username_from_database".
Chris.