Results 1 to 2 of 2

Thread: Courier & Exim: Logging Passwords

  1. #1
    Registered User
    Join Date
    Nov 2003
    Location
    Souther Arizona
    Posts
    4

    Default Courier & Exim: Logging Passwords

    Hello,
    Kind of an odd request, but we're planning on migrating our mailserver. As part of this process we have to convert all mail user's passwords. We could run L0ptCrack to jam out the roughly 3,100 mailboxes, but this would take quite a while.

    However, after doing some testing I discovered that with Courier & Exim (on a differently configured non-CPanel server), you can turn up the logging levels. So I've changed /etc/syslog.conf from mail.info to mail.debug and it works perfectly. User's passwords are logged in clear text.

    Here's the configuration section that I have working on a non-CPanel server and it logs passwords in clear text perfectly:
    Code:
    cram:
      driver = cram_md5
      public_name = CRAM-MD5       
      server_advertise_condition = *
      server_secret = ${lookup mysql{SELECT userClearPassword FROM mailUsers WHERE userEmailAddress = '${quote_mysql:$1}'}{$value}fail}
      server_set_id = $1
    Obviously we already have the passwords stored in clear text, but there's gotta be a way to where we can get this to work.

    Here's the configuration from our CPanel server:

    Code:
    fixed_plain:
    driver = plaintext
    public_name = PLAIN
    server_prompts = :
    server_condition = "${perl{checkuserpass}{$1}{$2}{$3}}"
    server_set_id = $2
    
    fixed_login:
    driver = plaintext
    public_name = LOGIN
    server_prompts = "Username:: : Password::"
    server_condition = "${perl{checkuserpass}{$1}{$2}}"
    server_set_id = $1
    I'm hesitant to modify the configuration for the CPanel server because I obviously don't want to prevent user's from checking their e-mail.

    As a last resort, is there anyway I could modify the $perl{checkuserpass} to get it to possible log all of the converted passwords? Then I could do just a dictionary brute force on our mail users.

    Thanks, any insight would be greatly appreciate.

  2. #2
    Registered User
    Join Date
    Nov 2003
    Location
    Souther Arizona
    Posts
    4

    Default

    Anyone have any suggestions on this?

Similar Threads

  1. PHP script to change users email passwords without logging into cPanel
    By pinepapplepete in forum cPanel Developers
    Replies: 5
    Last Post: 06-30-2008, 03:25 PM
  2. cPanel, exim, courier
    By mdalan in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 01-08-2007, 06:53 PM
  3. Courier IMAP Mail & Directories
    By kdarray in forum cPanel & WHM Discussions
    Replies: 9
    Last Post: 05-16-2006, 02:01 PM
  4. courier-imap pop3d stopped logging
    By ntwaddel in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 11-20-2005, 01:57 PM
  5. courier does not support SORT & THREAD?
    By tawfiq in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 10-30-2005, 07:26 AM