Re: Can Perdition change the USER login ?

Simon Horman <[email protected]> Sat, 30 Jun 2012 14:59:02 +0900
Newsgroups gmane.mail.perdition.user
Message-ID <[email protected]>
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
> [email protected].
> 
> 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 ---
(.*): [email protected]@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
______________________________________________
Perdition-users mailing list
[email protected]
http://lists.vergenet.net/listinfo/perdition-users