On Thu, Dec 18, 2014 at 10:14:29AM -0800, Will Yardley wrote:
> On Thu, Dec 18, 2014 at 08:53:03AM +0000, John Long wrote:
> > In the ongoing battle against spammers the latest trick is them not
> > including a message-id header at all.
> > 
> > Is there a recipe for Mutt to detect this and score accordingly? Going over
> > the doc and searching the web I haven't had any luck finding any discussion
> > on this.
> 
> Many MTAs will add one if it's not present (in Postfix, this is
> determined by $always_add_missing_headers).

I understand that but these are spammers who seem to be stupid and are
trying to obfuscate themselves at the same time. This little trick only
makes it easier since I wouldn't expect legitimate email to arrive with no 
message-id.

> 
> From a quick test, it looks like the simple pattern:
> !~h message-id
> 
> will do what you want. I tested with 'limit', but you should be able to
> use this in scores also.

Thanks. The doc suggests you can't use ~h in scoring and I think I had a
problem with ~h earlier but it should work for the spam command. I'll try it
asap. 

> 
> Alternatively, if you use a mail filtering tool like procmail or sieve,
> you can do some stuff to handle it in there (e.g., adding an
> X-Missing-Message-ID: 1 header if the message-id is missing).
>
> SpamAssassin probably already has a rule for this, so if you're using
> this and can control your preferences, you could also increase the
> score for that rule.

I haven't gotten into any of this because my mailing list memberships are
all "self-contained Mutt" using the built-in IMAP and SMTP code and I don't
want the complexity of a fullblown mail solution.

Thanks.

/jl

-- 
ASCII ribbon campaign ( ) Powered by Lemote Fuloong
 against HTML e-mail   X  Loongson MIPS and OpenBSD
   and proprietary    / \    http://www.mutt.org
     attachments     /   \  Code Blue or Go Home!
 Encrypted email preferred  PGP Key 2048R/DA65BC04 

Reply via email to