Fetchmail vs spamassassin
Hi!
I have a fetchmail job with this script:
poll mail.whatever.hu tracepolls proto pop3 uidl auth password port 110 timeout 60
user "user@externaldomain.tld" nokeep pass "password" smtpname localalias@domain.tld
My problem is that because of the mails seeming to come from the FQDN of the server, there is no SA check and nothing.
Here's a log snippet:
2022-06-02 12:40:04 1nwdsagdaasfsfas <= spammail@whateverdomain.tld H=(FQDN_of_our_server) [::1]:43920 P=esmtp S=5644 id=896811437-84020@mail.isnevents.org
Can you help me to solve this so the SA would work?
Thank you,
Daniel
-
Hey there! I'm not sure how much help I'll be, as the main issue doesn't seem to be related to cPanel. If the emails are already on the server, all SpamAssassin checks have already been run, and those wouldn't be triggered again from Fetchmail, if I'm understanding that tool properly from the bit I read. Can you let me know more about what you're expecting to happen? Are you wanting SpamAssassin to scan these messages like they are outbound email? 0 -
Thanks for the reply! The e-mails are on a remote server and my local server downloads them with fetchmail through pop3 and my aim is to put it in a local account (actually I give it to a normal forwarder in a cpanel accont which then forwards the mails to several accounts). The problem is that because of fetchmail, my local server doesn't care about scanning the mail with SA, because of fetchmail imitating the "send process" to come from the local server's FQDN. So I would like a solution for scanning mails that get to my local server by fetchmail+pop3. Thank you, Daniel 0 -
Thanks for the additional details. I don't have much I can add on my end, but maybe another member of the community has more experience with this tool. 0
Please sign in to leave a comment.
Comments
3 comments