postfix filter lmtp

Discussion in 'General' started by ptroms, Jun 1, 2021.

  1. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Ok, you'll also need to change 'lmtp' to 'amavis' in /etc/postfix/tag_as_originating.re and /etc/postfix/tag_as_foreign.re and in the content_filter line in main.cf, so it talks smtp on port 10024 instead of lmtp.
     
  2. ptroms

    ptroms Member

    Postfix online however the nasty emails stuck.
    Code:
    Jun  9 21:45:06 ups postfix/smtpd[18685]: connect from mail.tsohost.co.uk[195.62.28.191]
    Jun  9 21:45:06 ups policyd-spf[19230]: prepend Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=195.62.28.191; helo=mail.tsohost.co.uk; [email protected]; receiver=<UNKNOWN>
    Jun  9 21:45:06 ups postfix/smtpd[18685]: A89F28C3F3B: client=mail.tsohost.co.uk[195.62.28.191]
    Jun  9 21:45:06 ups postfix/smtpd[19231]: connect from mail.tsohost.co.uk[195.62.28.191]
    Jun  9 21:45:07 ups policyd-spf[19233]: prepend Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=195.62.28.191; helo=mail.tsohost.co.uk; [email protected]; receiver=<UNKNOWN>
    Jun  9 21:45:07 ups postfix/smtpd[19231]: 2D01A8C3F49: client=mail.tsohost.co.uk[195.62.28.191]
    So I disabled the SPF filter and that comes up:
    Code:
    Jun  9 22:00:07 ups postfix/smtpd[21746]: connect from mail.tsohost.co.uk[195.62.28.191]
    Jun  9 22:00:07 ups postfix/smtpd[21746]: 6D22C8C3F1C: client=mail.tsohost.co.uk[195.62.28.191]
    Jun  9 22:00:07 ups postfix/smtpd[22130]: connect from mail.tsohost.co.uk[195.62.28.191]
    Jun  9 22:00:07 ups postfix/smtpd[22130]: BC26B8C3F3A: client=mail.tsohost.co.uk[195.62.28.191]
    They still stuck on before get in.
     
    Last edited: Jun 9, 2021
  3. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    So that confirms the problem is not with amavis, which of course makes perfect sense if the DATA phase doesn't complete as the one log showed.
    So you disabled that and that rules out another piece, which certainly doesn't hurt. policyd isn't used in a standard setup, what else have you changed/customized? What is your current main.cf and master.cf? The log lines you show just show the connection and client info - what else is logged after that? Your logs show various domains, indicating the issue is probably on your end. What firewalls do you / your hosting provider have in place?

    Try a test smtp send from the local server, then try from another machine attached to the same network as your server (no firewalls/routers), and see what happens; if both of those work, test from an external point so you can see what's going on from both sides of the smtp connection.
     
    ptroms likes this.
  4. ptroms

    ptroms Member

    Yea it is a bit of pain - recently. I have been checking all the configuration all DNS, iptables, eth and etc. All seems to be in order. So I am just putting back the origin conf as it was. Of all random local and public domains mails are running smoothly and promptly. Only the two emails that get bouncing so far. I have done some DNS modification and it takes sometime to update. I will keep you inform. Thank you for all of your help.
     

Share This Page