On Fri, Jun 29, 2012 at 02:09:31PM +0100, Christian Gregoire wrote:
Hi,
I'd like to use Perdition as a POP proxy server so that my customers
don't have to change their POP settings while migrating from one hoster
to another. Right now, the login is, say, john, but the new hoster
requires to authenticate using the full email address, say
john.doe(a)mydomain.com.
Does Perdition allow for a user lookup so that the USER login is modified
before sent to the real server ?
Hi Christian,
yes, this should be possible.
Off the top of my head, I think that this can be achieved by
using a regular expression popmap along the lines of:
--- begin /etc/perdition/popmap.re ---
(.*): $1@mydomain.com@localhost
--- end /etc/perdition/popmap.re ---
Where localhost is the name of the real-server that perdition should
connect to.
You will need the following configuration options set when you invoke
perdition.
map_library /usr/lib/libperditiondb_posix_regex.so.0
map_library_opt /etc/perdition/popmap.re
username_from_database