Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2008
    Posts
    19

    Default Courier, courier-auth and custom usernames

    Hello,

    I need to move around 800 email accounts to our new cPanel server with Courier daemon. Problem is, the old pop3/imap username format is not in form user@domain.tld. Changing usernames and notifying computer illiterate users would be a time and nerve intensive work.

    So, I've come to an idea to simply somehow map old usernames to email accounts. Example map file:

    customuser123 user123@domain.tld
    ...

    Only thing needed now is to somehow tell Courier, which old username maps to which new and authenticate against new.

    I see a custom compiled perl binary called /usr/local/cpanel/bin/courier-auth, which does the work of authenticating, it's called by authdaemond.

    Is it possible to make a wrapper around this compiled binary, to pass the rewritten username to it? Is the source available? I could then add the functionality directly.

    Thanks for any tips or info!

  2. #2
    Member
    Join Date
    Sep 2008
    Posts
    19

    Default

    So, I've written a wrapper bash script, needs some more debugging, but looks good!

Similar Threads & Tags
Similar threads

  1. Replies: 8
    Last Post: 03-04-2011, 07:15 AM
  2. Replies: 6
    Last Post: 02-28-2011, 02:19 PM
  3. /usr/local/cpanel/bin/courier-auth what is this?
    By dicen in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-15-2007, 09:03 PM
  4. Courier-Auth Mail Authentication Problems
    By hillbilly1980 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-20-2007, 05:03 AM
  5. courier authlib and courier imap taking up resources
    By dennis in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-18-2005, 02:52 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube