Unable to receive email with Plesk Email Security extension installed: (!)connect_to_sql: unable to connect to DSN 'DBI:mysql:database=emailsecurity;mysql_socket=/var/run/mysqld/mysqld.sock'

Comments

14 comments

  • Avatar
    Sakisx

    It is working with your fix.

    0
  • Avatar
    Commande (Edited )

    not working for me

    0
  • Avatar
    Giannis Agathos

    Now it's working again!

    0
  • Avatar
    Benjamin Rougier

    Thank you !

    0
  • Avatar
    M.O. Verheijen (Edited )

    On several Plesk servers (CentOS 7), in two config files (/etc/mail/local.cf and /etc/amavisd/email-security.conf) the following line was changed after the update:

     ["DBI:mysql:database=emailsecurity;host=localhost;port=3306", "username", "password"]

    The lines where changed to use a socket connection, on my CentOS 7-servers, there is no such socket.
    Restoring both files from the backups did solve the problem.
     

    This update broke my spamassassin-filtering and no mail was accepted on my servers for several hours!
    Luckily we have Backup MX-servers, no mail was lost. But it diminish my trust in this extension. 

     

     

    0
  • Avatar
    Derek Billingsley

    Glad this was fixed quickly but boy it caused a lot of customer grief today.

    0
  • Avatar
    IT4BC . (Edited )

    I have Centos 7 Plesk server and the onlyhave /etc/mail/spamassassin/local.cf.  I did make the change on /etc/amavisd/email-security.conf and restored an earlier version of that local.cf with no joy.

    0
  • Avatar
    M.O. Verheijen

    Hello IT4BC,

    What is the error in your maillog?
    Can you state the two db-lines in those files?

     

    0
  • Avatar
    raoul delaboule (Edited )

    work after uninstall Plesk Email Security extension

    /usr/local/psa/admin/sbin/mailmng --restart-service

    postsuper -r ALL

    1
  • Avatar
    it suport

    The fix above did not resolve the email issue.

    Uninstalling Plesk Email Security allows NEW emails to be sent and received…

    However we now hve 90+ emails in mail queue with error Deferred “4.3.2 deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to RCPT TO command))”

    On Resend the error becomes: 4.3.0 deferred (mail transport unavailable)

    0
  • Avatar
    Office (Edited )

    If you reinstall this Extension the DB entry was set correct and send the mails in the mail queue:

    @lookup_sql_dsn =(

    ["DBI:mysql:database=emailsecurity;host=localhost;port=3306" 

    Sorry but we think your workaround is wrong and many customers are waiting for a patch :-)

    0
  • Avatar
    IT4BC .

    In our case the amavisd/email-security.conf was the problem.  

     

    typo, restart service all good..

    0
  • Avatar
    Terry Majamaki

    The command line change did not fix it for us, but the extension update did fix it. Thank you. 

    0
  • Avatar
    Sigma Quasar

     Thanks to raoul delaboule

    I uninstall and reinstall the extension and then execute the Raoul commands:

    /usr/local/psa/admin/sbin/mailmng --restart-service

    postsuper -r ALL

    Works on some minutes, is not inmediate

    0

Please sign in to leave a comment.

Have more questions? Submit a request