postfix failed to start CentOS 6.5

7,885

having that little experience with linux/Centos etc, you must use yum installer, compiling MySQL server and installing other packages with yum - never do this again. check what repositories you have already, at least i know that IUS and REMI have latest mysql packages and all dependencies. and run:
yum install mysql mysql-server

Share:
7,885

Related videos on Youtube

Grant Martin
Author by

Grant Martin

Updated on September 18, 2022

Comments

  • Grant Martin
    Grant Martin over 1 year

    DISCLAIMER: I am new to CentOS, so please forgive me if I overlooked something simple.

    Here is my issue:

    I recently just reformatted my server to CentOS 6.5 x64 and I have been having issues getting postfix to work.

    I am following this guide: http://www.krizna.com/centos/setup-mail-server-in-centos-6/ to install postfix MTA.

    I have followed all the steps but when I try to start the server (service postfix start) I get this error:

    Starting postfix:[FAILED]

    I have looked in my mail log and messages log and I see no errors regarding why it is not starting. Is there another log I should be looking in?

    When I run the command

    postconf -n

    I get the following error:

    postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory

    I compiled the newest version of MySQL from source and it is working with apache, but I wasnt able to locate libmysqlclient.so.16, only libmysqlclient.so.18. Could it be that my version of MySQL is too new for the postfix version?

    Postfix Version 2.6.6 (Installed with yum) MySQL Version 5.6.19 (Installed from source)

    Whats even stranger is that I have another server running the same OS (Installed from the same disk) and postfix starts just fine. (Using the postfix that came with CentOS, nothing has been installed on my other server). Could this be an issue with how my OS was installed?

    This problem is driving me crazy, any help would be much appreciated.

    Note: All of this is as root, Naughty me! :-)