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?
Add a regular expression client restriction to your restriction list in main.cf: smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination ... 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. Regards Ansgar Wiechers -- "Abstractions save us time working, but they don't save us time learning." --Joel Spolsky