phpList / phplist3

Fully functional Open Source email marketing manager for creating, sending, integrating, and analysing email campaigns and newsletters.
https://www.phplist.org
GNU Affero General Public License v3.0
752 stars 269 forks source link

SpamAssassin scoring phpList emails with TO_NO_BRKTS_HTML_IMG #919

Open markmixx opened 1 year ago

markmixx commented 1 year ago

The default SpamAssassin rules are adding a relatively high score to phpList emails because of the combination of the To: header not being surrounded by angle brackets, the default HTML message format, and the default single tracking image that is setup on campaigns. This is a fresh phpList install with nothing changed except adding a test campaign.

SpamAssassin reports from two different servers:

  1. * 2.0 TO_NO_BRKTS_HTML_IMG To: lacks brackets and HTML and one image
  2. TO_NO_BRKTS_HTML_IMG 1.999 To: lacks brackets and HTML and one image

This was mentioned on the forums but in that post the score was negative. On two different SpamAssassin receiving servers I have access to it is actually a positive score which can end up classifying phpList mails as spam.

Currently the To header is being set like this:

To: address@example.org

I believe the fix for this would be to change the To header to be enclosed in brackets, either one of these:

To: <address@example.org> To: address@example.org <address@example.org>

This is with phpList configured to use an SMTP server and not PHP's mail(). Thanks.

michield commented 1 year ago

Those errors seem more about an image having incorrect HTML tags than the To field. It may be that some images are not closing with />