Undestanding Postfix Relay System

Discussion in 'Installation/Configuration' started by vaio1, Dec 13, 2015.

  1. vaio1

    vaio1 Member

    Hi guys,
    why I get from the /var/log/mail.log four different way to relay a message?
    For instance:
    thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    On a ispconfig server there should be no relay lines to a spamassassin service as ispconfig uses amavis.
     
  3. vaio1

    vaio1 Member

    ... but the spamassassin relay lines are there... so what do you suggest me?

    what about the other lines?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post your main.cf and master.cf files (rename domain names in the files).
     
  5. vaio1

    vaio1 Member

    This is the main.cf
     
  6. vaio1

    vaio1 Member

    This is the master.cf
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Edit the master.cf file, change:

    smtp inet n - - - - smtpd -o content_filter=spamassassin

    to:

    smtp inet n - - - - smtpd

    and restart poszfix. Currently you send email twice trough spamassassin, once trogh the spamassassin transport and then a second time trough the amavis transport.
     
    vaio1 likes this.
  8. vaio1

    vaio1 Member

    Ok! Thanks Till! Fixed.
    ... but which is the differences between these sending methods?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Email that came in by smtp made a extra trip trough spamassassin while the mails trough smtps went directly to amavis. Now all mails go trough amavis and amavis filters them with the spamassassin filter.
     
  10. vaio1

    vaio1 Member

    So is it correct the master.cf with this line?
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    This line is not used anymore as we disabled it in the smtp line, so you can leave it or remove it.
     
    vaio1 likes this.

Share This Page