On 2018-08-26 Thomas Glanzmann wrote:
my bank ing-diba is using a marketing company to spam me. They have many
outgoing mail servers and I would like to block them all.
> Received: from mout-1605.artegic.net (mout-1605.artegic.net [144.76.159.198])
> (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
> (No client certificate requested)
> by infra.glanzmann.de (Postfix) with ESMTPS id 379A527D0A8A
> for <tho...@glanzmann.de>; Mon, 6 Aug 2018 20:23:32 +0200 (CEST)
So basically I would like to reject email from all mailservers having
a reverse name lookup matching the pattern *.artegic.net How can I
obtain that?
On 26.08.18 12:04, Ansgar Wiechers wrote:
Add a regular expression client restriction to your restriction list in
main.cf:
smtpd_recipient_restrictions =
...
check_client_access pcre:/etc/postfix/client_access.pcre
...
and define the offending domain in that file:
/\.artegic\.net$/ REJECT Not accepting mail from your domain.
for blocking .artegic.net you don't need to use pcre.
simple hash table containing ".artegic.net" would be faster.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Due to unexpected conditions Windows 2000 will be released
in first quarter of year 1901