nevermind figured it out. If anyone wants to know:

perdition.conf:

map_library /usr/lib/libperditiondb_posix_regex.so.0
map_library_opt /etc/perdition/popmap.re

popmap.re:

(.*)@domain.com: 123.123.123.123

On Thu, Jan 15, 2009 at 2:10 PM, Simon Horman <horms@verge.net.au> wrote:
On Thu, Jan 15, 2009 at 01:55:37PM +1100, Stephen Vaughan wrote:
> Hi,
>
> Is it possible to proxy imap/pop3 connections based on the domain used in
> the username? I'm trying to avoid having to enter in thousands of email
> addresses into the popmap, instead having a wild card of *@domain.com ->
> server1, *@domain1.com -> server2

Yes. Perhaps the easiest way to achive this would be using a regex map.


--
Simon Horman
 VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
 H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en




--
Best Regards,
Stephen