Can't send/receive email: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

Comments

3 comments

  • Avatar
    Adrian Cherciu (Edited )

    This doesn't work, the only solution was to edit /etc/amavisd/email-security.conf  and modify this line:

    @lookup_sql_dsn =(
        ["DBI:mysql:database=emailsecurity;mysql_socket=/var/run/mysqld/mysqld.sock", "es_ipezbcv", "7P0c_Nd2!r1t^YIsR3"]
    );

    to:

    @lookup_sql_dsn =(
        ["DBI:mysql:database=emailsecurity;mysql_socket=/var/lib/mysql/mysql.sock", "es_ipezbcv", "7P0c_Nd2!r1t^YIsR3"]
    );

    Restart amavis service afterwards:

    service amavis restart

    followed by processing the queued emails:

    postsuper -r ALL

     

    0
  • Avatar
    Nestor Tirado

    I have the same problem, I don't have any service with the name amavisd-new, I did what Adrian Cherciu said but the problem persists.

    0
  • Avatar
    Adrian Cherciu

    I've updated my reply, please do the rest of the commands, I just assumed would be common sense, sorry :) 

    0

Please sign in to leave a comment.

Have more questions? Submit a request