That's your issue. Horde add's the sender's IP. You may be able to find some sort of patch for it...
This is an interesting point. And unfortunately there's a lot of confusing little details to this.
My issue may not be exactly the same, though the title of this thread indicates it is, I suspect the title may have been incorrectly worded. The title says "despite successful SMTP auth". This implies that authentication actually occurred between the webmail system and the mail server. That said, last I heard Plesk's default method of sending messages via its built-in webmail solutions is to simply send unauthenticated to localhost, where the webmail and mail system reside on the same server. If that's what the OP is doing, then Mark is correct because it's technically not authenticated SMTP (there is no header indicating successful authentication), and therefore the RCVD_IN_PBL report from Spamassassin *is* correct.
However, we don't use any of the webmail systems built in to Plesk, instead opting to use a centrally hosted instance of Rainloop. We've got the Rainloop plugin to add the X-Originating-IP header installed (though now it's disabled to avoid this problem). Our Rainloop instance *must* and does use SMTP authentication to send messages because it doesn't reside on the same server as our customers' mail services.
According to
this discussion on the Spamassassin bugzilla, even though the X-Originating-IP header exists, it should be ignored in favour of the SMTP servers' "Received:" header which indicates that the mail user has authenticated successfully, thus ensuring that the IP of the actual SMTP/Mail server is checked against the PBL and *not* the IP found in the X-Originating-IP header.
However we're finding that this is not the case. Here are the only headers added by Postfix on the Plesk server that describe authentication. They're from a message where the RCVD_IN_PBL rule was triggered against the X-Originating-IP header IP:
Received: from webmailserver.com (webmailserver-hostname.com [webmailserver-ip])
by actual-plesk-mail-server.com (Postfix) with ESMTPSA id 9DXXX92564
for ju****ks@ita****et.ca; Thu, 24 Jan 2019 14:16:37 -0400 (AST)
Authentication-Results: actual-plesk-mail-server.com;
My questions:
- Is Postfix not correctly indicating authentication occurred in its headers? Or
- Is Spamassassin not correctly reading the headers to understand that authentication occurred?
From what I can see, where it says "with ESMTPSA" -- that's the indication that it's using authentication. According to
this Wikipedia entry on SMTP Authentication, the A on the end indicates it's using authentication. Therefore, it looks to me like Spamassassin is not parsing the headers correctly and understanding that authentication occurred.