This is sort of a general question about training spamassassin. I have a newly set up mailserver which filters incoming mail through spamassassin. I recently got a flight reservation flagged as spam (score 5) and would like to tell spamassassin it's not spam. (Perhaps doing this would also re-send the mail without the modified spamassassin headers?)
I've tried searching around and am only finding stuff about either getting spamassassin to flag messages as spam (and not about fixing false positives), or for people writing emails - how not to be flagged as spam.
So in regards to giving spamassassin feedback on wrong calls:
Is there a way to do this from within an email client (for example: Thunderbird)
Is there a way to do this via the command-line on the mail server?
I'd like to make the process as fluid as possible, but whatever gets the job done.
Details from SpamAssassin regarding the email:
0.0 FSL_HELO_NON_FQDN_1 No description available. 0.6 HK_RANDOM_ENVFROM Envelope sender username looks random -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [126.96.36.199 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [188.8.131.52 listed in wl.mailspike.net] 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 1.6 SUBJ_ALL_CAPS Subject is all capitals 1.1 MIME_HTML_ONLY BODY: Message only has text/html MIME parts 0.7 HTML_IMAGE_ONLY_20 BODY: HTML: images with 1600-2000 bytes of words 0.0 HTML_MESSAGE BODY: HTML included in message -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.0 T_REMOTE_IMAGE Message contains an external image
Clearly the main culprits are the all-caps subject line SUBJ_ALL_CAPS and the MIME_HTML_ONLY (I guess, no text alternative).
The email was for a flight booking confirmation and the subject looked like this:
Subject: JENNINGS/NICHOLAS KOSSOW MR 24 JAN MOF DPS
X-Envelope-From: <email@example.com> X-Envelope-To: <firstname.lastname@example.org> Received: from mail1.amadeus.net (unknown) by 147-49-15-51.rev.cloud.scaleway.com(Postfix 3.1.0/8.13.0) with SMTP id unknown Fri, 20 Jan 2017 07:55:10 +0000 (envelope-from <email@example.com> Received: from obeap115 (nat-dns-mnp.amadeus.net [184.108.40.206]) by mail1.amadeus.net (Postfix) with ESMTP id 3F7A9200042 for <firstname.lastname@example.org>; Fri, 20 Jan 2017 07:55:10 +0000 (GMT) From: email@example.com TO: NICK@XXX.XXXX Message-ID: <CTS/GA/C50D54421A07firstname.lastname@example.org> FND-Request-ID: <CTS/GA/C50D54421A07email@example.com> Job-ID: 1 Subject: JENNINGS/NICHOLAS KOSSOW MR 24 JAN MOF DPS Date: Fri, 20 Jan 2017 07:55:09 +0000 Content-Type: multipart/mixed; boundary="----=_Part_191904_1900935199.1484898909762" MIME-Version: 1.0