On Mon, Feb 07, 2011 at 12:19:07PM +0000, Paul wrote:
Hi
I am not 100% sure this is possible with Perdition but if I explain what
I need to do maybe someone could offer some advice.
I am moving some customers from one POP server to another.
The old POP server has usernames in the format
"username"
The new POP server uses the format
"username(a)domain.com"
I have about 50 different domains on these servers with approx 1000
users so I am trying to avoid getting all users to have to change there
POP usernames
I was hoping I could perform the translation with Perdition, i.e.
1. User pops with "username"
2. Perdition looks up username and uses "username(a)domain.com" against
the new server
I was trying to use
username:username@domain.com@1.2.3.4
(where 1.2.3.4 is the IP of the new POP server) in the pop map, but I
dont think it is reading this correctly and is just using username see below
Feb 7 12:18:20 paris perdition[5628]: Auth: 5.6.7.8->9.10.11.12
user="paulh" passwd="XXXXXX" server="1.2.3.4"
port="110" status="failed:
Re-Authentication Failure"
I would be very grateful for any advice/pointers.
Hi Paul,
I believe that you can get what you are after by adding the
username_from_database option to your perdition configuration file (not the
popmap) or specifying --username_from_database on the command line.
Also, depending on how many real-servers you have, you may find the POSIX
Regular Expression popmap useful for this kind of mapping. For example, it
would save you needing an entry per-user if they all map to the same
real-server and domain.
# cat /etc/perdition/popmap.re
([^@]*): $1@domain.com@10.10.10.1
Thanks Simon, that's fantastic, does exactly what I want, thanks for the
pointer to the .re file, its going to save me a lot of time!!
Paul