Ignore SPF check for outgoing mail

Tools4ISP

Member
Apr 5, 2022
5
0
6
We have a PMG system that is used as an incoming spamfilter. However it is also used (on a different port) for outgoing mail (smarthost). The PMG system is listed in the SPF record as source for the e-mail. Now for the outgoing mail it is reported as having a wrong SPF record by the PMG system. How can we skip SPF checks for outgoing mail? We want to keep everything else working regarding spamfiltering for outgoing mail.
 
could you please provide the logs of such a mail (from the pmg-system)

Thanks
 
Do you mean this?

Apr 5 15:39:16 spamfilter1 postfix/smtpd[701614]: connect from da005.site.eu[80.249.132.44]
Apr 5 15:39:16 spamfilter1 postfix/smtpd[701614]: E34C3E15DD: client=da005.site.eu[80.249.132.44]
Apr 5 15:39:16 spamfilter1 postfix/cleanup[701615]: E34C3E15DD: message-id=<E1nbjOu-007QeV-OD@da005.site.eu>
Apr 5 15:39:16 spamfilter1 postfix/qmgr[669474]: E34C3E15DD: from=<diradmin@da005.site.eu>, size=1185, nrcpt=1 (queue active)
Apr 5 15:39:16 spamfilter1 postfix/smtpd[701614]: disconnect from da005.site.eu[80.249.132.44] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Apr 5 15:39:16 spamfilter1 pmg-smtp-filter[698874]: E1A09624C4684EB697: new mail message-id=<E1nbjOu-007QeV-OD@da005.site.eu>#012
Apr 5 15:39:18 spamfilter1 pmg-smtp-filter[698874]: E1A09624C4684EB697: SA score=1/5 time=1.827 bayes=undefined autolearn=no autolearn_force=no hits=AWL(0.079),KAM_DMARC_NONE(0.25),KAM_DMARC_STATUS(0.01),KAM_LAZY_DOMAIN_SECURITY(1),RCVD_IN_SORBS_DUL(0.001),SPF_HELO_NONE(0.001),SPF_NONE(0.001),T_SCC_BODY_TEXT_LINE(-0.01)
Apr 5 15:39:18 spamfilter1 postfix/smtpd[701620]: connect from localhost.localdomain[127.0.0.1]
Apr 5 15:39:18 spamfilter1 postfix/smtpd[701620]: DB42EE1A0E: client=localhost.localdomain[127.0.0.1], orig_client=da005.site.eu[80.249.132.44]
Apr 5 15:39:18 spamfilter1 postfix/cleanup[701615]: DB42EE1A0E: message-id=<E1nbjOu-007QeV-OD@da005.site.eu>
Apr 5 15:39:18 spamfilter1 postfix/qmgr[669474]: DB42EE1A0E: from=<diradmin@da005.site.eu>, size=1393, nrcpt=1 (queue active)
Apr 5 15:39:18 spamfilter1 pmg-smtp-filter[698874]: E1A09624C4684EB697: accept mail to <sysadmin-systemsg@site.eu> (DB42EE1A0E) (rule: default-accept)
Apr 5 15:39:18 spamfilter1 postfix/smtpd[701620]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 commands=5
Apr 5 15:39:18 spamfilter1 pmg-smtp-filter[698874]: E1A09624C4684EB697: processing time: 1.938 seconds (1.827, 0.045, 0)
Apr 5 15:39:18 spamfilter1 postfix/lmtp[701616]: E34C3E15DD: to=<sysadmin-systemsg@site.eu>, relay=127.0.0.1[127.0.0.1]:10023, delay=2, delays=0.01/0.02/0.01/1.9, dsn=2.5.0, status=sent (250 2.5.0 OK (E1A09624C4684EB697))
Apr 5 15:39:18 spamfilter1 postfix/qmgr[669474]: E34C3E15DD: removed
Apr 5 15:39:19 spamfilter1 postfix/smtp[701621]: DB42EE1A0E: to=<sysadmin-systemsg@site.eu>, relay=self-mail.site.eu[136.144.217.4]:25, delay=0.2, delays=0.01/0.02/0.06/0.1, dsn=2.0.0, status=sent (250 OK id=1nbjOx-00048n-1e)
Apr 5 15:39:19 spamfilter1 postfix/qmgr[669474]: DB42EE1A0E: removed
 
Yes - however the log shows that the mail was accepted by PMG and succesfully relayed to self-mail.site.eu?
 
Yes, but it also shows the SPF check was done. As this is an outgoing mail I don't want any SPF checking to happen. Only content checking. For incoming mail I want the SPF check to happen.