Connecting to MySQL/Postfix

Discussion in 'Server Operation' started by kevinfc, Dec 18, 2006.

  1. kevinfc

    kevinfc New Member

    So here is my latest situation:

    I have everything all installed and running (Postfix, MySQL, Courier, etc..). My latest problem is that what I start authdaemond for Courier-Authlib, I get the following error in the logs:

    authdaemond: stopping authdaemond children
    authdaemond: modules="authmysql", daemons=5
    authdaemond: Installing libauthmysql
    authdaemond: libauthmysql.so: cannot open shared object file: No such file or directory

    I am using MySQL to store the user info and when I tried to connect via POP3 or IMAP, the login would always come back and when I check the postfix logs it says LOGIN FAILED. I am assuming that it is not connecting to MySQL to check the database for the user.

    I compiled Courier-Authlib with the following:

    ./configure \
    --with-mysql-libs=/usr/local/mysql/lib/mysql\
    --with-mysql-includes=/usr/local/mysql/include/mysql/ \
    --with-authmysql

    and got no errors. So my question is how to I tell authdaemond where to find the module, and/or how do I install the needed module?

    Thanks all. Much appreciated.

    Kevin
     
  2. kevinfc

    kevinfc New Member

    Sorry all, these lines should actually read

    --with-mysql-libs=/usr/local/mysql/lib\
    --with-mysql-includes=/usr/local/mysql/include \

    Thanks

    Kevin
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Which distribution do you use?
    What's the output of
    Code:
    updatedb
    locate libauthmysql.so
    ?
     

Share This Page