Need help/suggestions for domain-less login

Discussion in 'Tips/Tricks/Mods' started by elwood8, Sep 2, 2010.

  1. elwood8

    elwood8 New Member

    I am setting up an ISPConfig3 system to replace a manually-configured Postfix/Courier system for ISP-style e-mail access. My ISPConfig install went quite smoothly, but I am left with one problematic issue. ISPConfig e-mail boxes need to be logged into with a [email protected] style address, but this particular box (will only be serving one domain) needs to accept username-only (with appropriate-password, of course) logins for IMAP and POP.

    Has anyone run into this before (seems likely to me), and is there any configuration advice on this? Any and all input is greatly appreciated.

    Thanks!
     
  2. Mark_NL

    Mark_NL Member

    /etc/courier/authmysqlrc

    MYSQL_LOGIN_FIELD email

    if you check the table mail_user, that's the login name, unfortunately you can't change that field, else you won't have a valid mail address.

    however, you could try and change "MYSQL_LOGIN_FIELD email" to

    Code:
    MYSQL_LOGIN_FIELD SUBSTRING_INDEX(email,'@',1)
    This should return you everything before the @ in the mail address.

    This is all pure theoretical, since i don't have a test environment at the moment to test it on ..
     

Share This Page