On 10/24/2019 12:32 AM, @lbutlr wrote:
On 23 Oct 2019, at 15:20, lists <li...@lazygranch.com> wrote:
/\.asia$/ 510 Denied: Unacceptable TLD .asia
[Long list… removed]

smtpd_helo_restrictions = reject_invalid_helo_hostname
     check_helo_access pcre:/etc/postfix/helo_checks.pcre permit

/etc/postfix/helo_checks.pcre:
/.*\.(com|net|org|edu|gov|ca|mx|de|dk|fi|fr|uk|us|tv|info|biz|eu|es|il|it|nl|name|jp|host|au|nz|ch|tv)$/
 DUNNO
/.*\.*$/ 550 Mail to or from this TLD is not allowed


Of course your list will differ than mine, but I find this much better than 
reacting to which of these new garbage TLDs are spamming me this week.

You can achieve a similar result with this addition to SA's custom.cf:

header GC_TLD_COM_R Received !~/\.(?:com|net|org|edu|uk|us|gov)\b/i
score GC_TLD_COM_R 3.2

header GC_TLD_COM_F From !~/\.(?:com|net|org|edu|uk|us|ca|gov)\b/i
score GC_TLD_COM_F 3.2

If I were a bit more worldly, I would add a few more country codes.


Reply via email to