prk_73508
Jan 31, 2011Nimbostratus
POP & IMAP Username Re-writes
Hi all,
We're trying to re-write the username on an incoming POP3, IMAP, POP3S or IMAPS (using SSL offload for the POP3S & IMAPS) to append a domain to the username if none exists.
EG, if the customer's POP3 client sends: "user username" when authenticating we'd rewrite to "user username@domain.name" and pass on to the mail server, preserving any case. If they already had a domain name in the username, we wouldn't touch it.
Ditto with IMAP, where it sends "auth login username password", we'd re-write to "auth login username@domain.name password", but "auth login username@any.string password" wouldn't be touched.
I've had a search through the existing rules, but nothing shows up.
Any ideas on how we'd do this?
Thanks,
prk.