Fetchmail vs spamassassin

dandadude

Well-Known Member
Apr 14, 2011
62
1
58
Hi!

I have a fetchmail job with this script:

poll mail.whatever.hu tracepolls proto pop3 uidl auth password port 110 timeout 60
user "[email protected]" nokeep pass "password" smtpname [email protected]

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 <= [email protected] H=(FQDN_of_our_server) [::1]:43920 P=esmtp S=5644 id=[email protected]

Can you help me to solve this so the SA would work?

Thank you,
Daniel
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,139
2,405
363
cPanel Access Level
Root Administrator
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?
 

dandadude

Well-Known Member
Apr 14, 2011
62
1
58
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