Can't send emails with newer version of Postfix

Discussion in 'General' started by PepinCZ, May 31, 2016.

  1. PepinCZ

    PepinCZ New Member

    I'm running CentOS7. All stuff was great and working, but then postfix was updated and now I'm unable to send emails. I have currently installed Postfix 2.10.1.
    Because I did not find a way how to use code tag, I uploaded log & configs on Pastebin.

    This is log I'm getting it /var/log/maillog when I'm sending email:

    Of course the example.tld domain & [email protected] is in ISPConfig. (I faked them because I don't want spam...)

    This is my Postfix configuration file @ /etc/postfix/
    This is my Postfix configuration file @ /etc/postfix/
    And in case Amavisd is also problem, there is Amavisd configuration file @ /etc/amavisd/amavisd.conf (I have it symlinked on /etc/amavisd.conf)

    Thank you.
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    Remove the marked parts from smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, check_helo_access regexp:/etc/postfix/helo_access, reject_invalid_hostname, reject_non_fqdn_hostname, check_helo_access regexp:/etc/postfix/blacklist_helo and restart postfix
  3. PepinCZ

    PepinCZ New Member

    Ok, So I deleted the smtpd_helo_restrictions line, however I have still same problem.
    //EDIT: After I readed my respond I finaly saw the marked parts (they are not visible in normal reply), so I deleted them, but still the same problem.
    Last edited: May 31, 2016
  4. PepinCZ

    PepinCZ New Member

    Can somebody help me please?
  5. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    What version of ispconfig, guessing 3.1, or did you follow a postfix hardening guide for Did you re-run the ISPConfig installer (ie. update.php) after updating postfix? Things seemed to be mixed up and missing in your config.

    Your immediate problem appears to be twofold, 1) the complete absence of smtpd_recipient_restrictions, including the necessary
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
    which must be on both port 10025 and port 10027 entries in; and 2) get rid of the
    content_filter = amavis:[]:10024
    line in, the proper content filter will be specified by and in smtpd_sender_restrictions.

    Less critical issues:

    Looks like you have an error in helo_access, what does it contain? It won't matter if you really did remove smtpd_helo_restrictions, but should be looked at if you restore that. It's also bypassed for sasl authenticated connections (which your example was), so again this is not your problem, but....

    is caused by this in
    sender_bcc_maps = mysql:/etc/postfix/
    The ispconfig installer should create that file (, so I'm guessing you just need to run the ispconfig update.php.

Share This Page