Re: Newbie Q: using incoming IP for rewrites?
Simon Horman <[email protected]> Fri, 2 Dec 2011 15:50:16 +0900
| Newsgroups | gmane.mail.perdition.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Dec 01, 2011 at 03:36:08PM -0600, David E. Smith wrote: > On Mon, Nov 28, 2011 at 09:13, David E. Smith <[email protected]> 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:[email protected] > or some other, more odd syntax? Hi David, unfortunately perdition only supports one lookup. I believe that the code would need to be (slightly) modified to allow the or logic you are after. ______________________________________________ Perdition-users mailing list [email protected] http://lists.vergenet.net/listinfo/perdition-users