On Mon, Nov 28, 2011 at 09:13, David E. Smith <dave@mvn.net> wrote:
domain1.com:10.1.1.1
domain2.com:10.1.1.2
192.168.1.1:10.1.1.1
192.168.1.2:10.1.1.2


I don't think I'm getting what I want out of my popmap with the above - I need to be able to change the username/domain based on the key. Here's what I'm trying to do:

* If a user sends a fully-qualified email address as their POP3 login name, look up the domain provided in that login name, and route based upon that. (The first entries in the above table seem to do that.)
* If a user sends only a username as the POP3 login name, look up the IP they connected to, route their connection based on that, and rewrite the username.

I don't understand the correct syntax to use in the popmap to handle the domain rewriting part. Should it be something like
192.168.1.2:10.1.1.2@domain.com
or some other, more odd syntax?

David Smith
MVN.net