Both external and internal SMTP port cannot be the same.
Change your relay mail server to use port 26 since all incoming mail will go through PMG first then redirect to your actual email server.
Try set custom spamassassin score for dkim and spf rule and let spamassassin quarantine/block it.
https://svn.apache.org/repos/asf/spamassassin/trunk/rules/25_dkim.cf
https://svn.apache.org/repos/asf/spamassassin/trunk/rules/25_spf.cf
There is procmail but I am not sure PMG can handle it.
https://wiki.archlinux.org/title/Procmail
http://lists.mailscanner.info/pipermail/mailscanner/2020-April/106168.html
It work for me. This is my /etc/pmg/spamassassin/custom.cf and test email from gmail.
Return-path: <user1@gmail.com>
Received: from pmg.mydomain.com ([192.168.40.106])
by mail.mydomain.com with ESMTP; Tue, 13 Sep 2022 08:54:48 +0800
Received: from pmg.mydomain.com (localhost.localdomain...
93.112.39.252 is being blacklisted.
status=bounced (host mx-biz.mail.am0.yahoodns.net[67.195.204.83] said: 553 5.7.1 [TSS07] Connections will not be accepted from 93.112.39.252, because the ip is in Spamhaus's list; see https://postmaster.yahooinc.com/error-codes (in reply to MAIL FROM command))
You need to set smarthost to relay outgoing through PMG. Check zimbra's documentation on how to set it up.
https://wiki.zimbra.com/wiki/Sending_mail_through_an_external_relay
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.