X-Postfix; delivery temporarily suspended: connect to[]:10024: Connection refused

Discussion in 'General' started by calbasi, Aug 12, 2015.

  1. calbasi

    calbasi Member

    3 months ago I've disbaled Amavis, to improve my server performance, as described here:
    Then, some days ago, I've update ispconfig and mail don't work... I did'n remember to comment Amavis lines at /etc/postfix/main.cs:
    # content_filter = amavis:[]:10024
    # receive_override_options = no_address_mappings
    Ok. Now I've done it again and my website seems can send email BUT I receive lots of mail deliver error messages: "Undelivered Mail Returned to Sender" with a details file like this:
    Reporting-MTA: dns; mydomain.net
    X-Postfix-Queue-ID: B34D295327
    X-Postfix-Sender: rfc822; [email protected]
    Arrival-Date: Thu, 6 Aug 2015 16:51:57 +0200 (CEST)
    Final-Recipient: rfc822; [email protected]
    Action: failed
    Status: 4.4.1
    Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to[]:10024: Connection refused

    And this command:
    # netstat -tanp|grep 10024
    returns nothing...
    Any ideas?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Post the output of:

    grep content_filter /etc/postfix/main.cf
  3. calbasi

    calbasi Member

    Here you are:
    # content_filter = amavis:[]:10024
    # content_filter = amavis:[]:10024
    Both lines are commented.
  4. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    You may have mail in queue that's set to hit that content filter, from prior to you disabling it. If so, you can just fire up amavis for a minute, flush the queue, then disable again after everything delivers. Atlernatively, there's also a way to change where it's going to deliver to (I don't remember the details, but google should help find it), or you could even fire up another downstream smtpd on port 10024 (ie. duplicate the entry in master.cf and change to, restart postfix, flush the queue, then clean up master.cf).
  5. calbasi

    calbasi Member

    Thanks Jesse, I'm going to try to enable amavis again for a while :)
  6. calbasi

    calbasi Member

    That's it! Thanks a lot!

Share This Page