Adding complexity to an existing deployment

Josh Coombs <[email protected]> Mon, 25 Mar 2013 17:23:09 -0400
Newsgroups gmane.mail.perdition.user
Message-ID <CACcUnf9ef2TvXXvEpkJcJV+z=eDo3NS0NjKih1hp2=8GzN+WpQ@mail.gmail.com>
I've got an existing Perdition proxy that I need to clone, and layer
on some more complexity to.

The existing setup uses a simple regex setup to farm incoming
connections to different servers based on username.

Conf:
map_library /usr/local/lib/libperditiondb_posix_regex.so.0
inetd_mode

popmap.re
^[0-9]: num.mail.domain.com
^[a,A]: a.mail.domain.com
^[b,B]: b.mail.domain.com

etc, etc

Users login with just a username, no domain info is present in their
login.  The mailservers they're directed to don't expect domain info
in the login.

What I've been asked to do on the new server is to require users to
login as [email protected] and I have to bolt in support for a couple
dedicated subdomains.

My current conf:

map_library /usr/local/lib/libperditiondb_posix_regex.so.0
S remote_login

popmap.re:
(^[0-9])@domain.com: num.mail.domain.com
(^[a,A])@domain.com: a.mail.domain.com
(^[b,B])@domain.com: b.mail.domain.com
...
(.*)@subdomain1.domain.com: subdomain1.domain.com
(.*)@subdomain2.domain.com: subdomain2.domain.com

The subdomain entries work.  The massaged load distribution regexs
from the original setup fail noting that perdition couldn't determine
a proper outbound server.  Anyone have suggestions for a cleaner regex
to try?

Josh C
______________________________________________
Perdition-users mailing list
[email protected]
http://lists.vergenet.net/listinfo/perdition-users