Re: How to block mail coming from a domain

2019-09-26 Thread li...@lazygranch.com
On Thu, 26 Sep 2019 10:46:27 +0200 Enrico Morelli wrote: > On Thu, 26 Sep 2019 10:42:46 +0200 > Enrico Morelli wrote: > > > On Thu, 26 Sep 2019 16:37:14 +0800 > > Wesley Peng wrote: > > > > > on 2019/9/26 16:34, Enrico Morelli wrote: > > > > I tried to put .monster or *.monster in sender

Re: How to block mail coming from a domain

2019-09-26 Thread @lbutlr
On Sep 26, 2019, at 4:01 AM, Dominic Raferd wrote: > Of course this assumes pcre (or maybe regex) file. To ensure it picks > up only email addresses in From header (and not text), then, using > pcre file for header_checks: No, you do the checks for the helo, not the From: header. The idea is to

Re: How to block mail coming from a domain

2019-09-26 Thread Vu Ngoc VU
Date: Thu, 26 Sep 2019 12:22:33 From: Enrico Morelli To: postfix-users@postfix.org Subject: Re: How to block mail coming from a domain I've search in my Debian 10 packages but there isn't postscreen. Is it in bundle with new postfix version? In Debian 10 I've postfix 3.4.5 Hello

Re: How to block mail coming from a domain

2019-09-26 Thread Matus UHLAR - fantomas
On Thu, 26 Sep 2019 at 11:24, Enrico Morelli wrote: > I've search in my Debian 10 packages but there isn't postscreen. > Is it in bundle with new postfix version? In Debian 10 I've postfix > 3.4.5 On Thu, 26 Sep 2019 11:29:38 +0100 Dominic Raferd wrote: Yes it is a standard part of postfix -

Re: How to block mail coming from a domain

2019-09-26 Thread Enrico Morelli
On Thu, 26 Sep 2019 11:29:38 +0100 Dominic Raferd wrote: > On Thu, 26 Sep 2019 at 11:24, Enrico Morelli > wrote: > > I've search in my Debian 10 packages but there isn't postscreen. > > Is it in bundle with new postfix version? In Debian 10 I've postfix > > 3.4.5 > > Yes it is a standard part

Re: How to block mail coming from a domain

2019-09-26 Thread Dominic Raferd
On Thu, 26 Sep 2019 at 11:24, Enrico Morelli wrote: > I've search in my Debian 10 packages but there isn't postscreen. > Is it in bundle with new postfix version? In Debian 10 I've postfix > 3.4.5 Yes it is a standard part of postfix - try 'man postscreen'

Re: How to block mail coming from a domain

2019-09-26 Thread LuKreme
On Sep 26, 2019, at 03:51, Henrik K wrote: > Obviously these will only work for envelope sender. Most likely needing > header_checks /^From:.*\.monster/ here.. Yep. I use header checks to block most top level domains, letting only a dozen or so through and rejecting all the rest since it is imp

Re: How to block mail coming from a domain

2019-09-26 Thread Dominic Raferd
On Thu, 26 Sep 2019 at 10:52, Henrik K wrote: > > On Thu, Sep 26, 2019 at 11:44:11AM +0200, Matus UHLAR - fantomas wrote: > > On 26.09.19 10:34, Enrico Morelli wrote: > > >in this days my mail server receiving a lot of mail coming from a > > >domain ending with .monster... > > Obviously these will

Re: How to block mail coming from a domain

2019-09-26 Thread Enrico Morelli
On Thu, 26 Sep 2019 10:42:46 +0200 Enrico Morelli wrote: > On Thu, 26 Sep 2019 16:37:14 +0800 > Wesley Peng wrote: > > > on 2019/9/26 16:34, Enrico Morelli wrote: > > > I tried to put .monster or *.monster in sender_access but doesn't > > > work. Is there a way to block *.monster mails? >

Re: How to block mail coming from a domain

2019-09-26 Thread Wesley Peng
on 2019/9/26 16:42, Enrico Morelli wrote: Can you setup spamassassin for domain blacklist? regards. How can do that? The SpamAssassin whitelist and blacklist options can include globs, not regular expressions. The valid metacharacters are ? and * to match 0-1 or 0-many characters respect

Re: How to block mail coming from a domain

2019-09-26 Thread Enrico Morelli
On Thu, 26 Sep 2019 16:37:14 +0800 Wesley Peng wrote: > on 2019/9/26 16:34, Enrico Morelli wrote: > > I tried to put .monster or *.monster in sender_access but doesn't > > work. Is there a way to block *.monster mails? > > Can you setup spamassassin for domain blacklist? > > regards. How can

Re: How to block mail coming from a domain

2019-09-26 Thread Wesley Peng
on 2019/9/26 16:34, Enrico Morelli wrote: I tried to put .monster or *.monster in sender_access but doesn't work. Is there a way to block *.monster mails? Can you setup spamassassin for domain blacklist? regards.