Tag Archives: internets

Postfix PCRE TLD body check

This is used to reject spam e-mail containing a URL to the top level domains .date or .loan, and can of course be modified to include others. If you feel your users may ever have a legitimate need to be contacted about these domains it would be best to not use this.

Some familiarity with perl compatible regular expressions in postfix will be helpful.

/https?://([a-z,0-9,-]+.){1,3}(date|loan)// REJECT

This pattern matches both http and https protocols, and links containing from 1 to 3 subdomains of the TLD (http://3.2.example.com/ or https://example.com/ would match were .com the target).

Insert that line into your custom body checks file and no more spam du jour. Enjoy.

Tech forums sans trolls?

Can this be done? Please? Mankind has flown to the Moon and back but can we get a tech news site or forum or blog that doesn’t draw trolls? Apparently not. 😐

Also, damn I’ve been doing a lot of bitching here lately. :-“