Re: postfix header check question

2023-02-16 Thread Spam Petya
Hi! Thank you for the examples. But the solution is this not working. I wrote this to the header_checks: /^From: (.*)mailer-dae...@fmfwd00.freemail.hu(.*)$/ REJECT message /^Received: (.*)fmfwd00.freemail.hu(.*)$/ REJECT message Still NDR-s are passing through. Header examples from NDR: Received:

Re: postfix header check question

2023-02-16 Thread Xavier Beaudouin
Hello > Hi! > Thank you for the examples. But the solution is this not working. I wrote this > to the header_checks: > /^From: (.*)mailer-dae...@fmfwd00.freemail.hu(.*)$/ REJECT message > /^Received: (.*)fmfwd00.freemail.hu(.*)$/ REJECT message > Still NDR-s are passing through. Header examples f

Re: Blocking TLDs

2023-02-16 Thread James Pifer
On 2/8/2023 1:13 PM, James Pifer wrote: On 2/8/2023 1:02 PM, Jaroslaw Rafa wrote: Dnia  8.02.2023 o godz. 12:55:58 James Pifer pisze: I would prefer to quarantine rather than reject, if I can figure out how to do that. I would at least be able to look through them periodically and see if someth

Re: Blocking TLDs

2023-02-16 Thread Viktor Dukhovni
On Thu, Feb 16, 2023 at 08:23:00AM -0500, James Pifer wrote: > Anyone see anything wrong with it or have other suggestions? > > smtpd_recipient_restrictions = >     check_client_access inline:{ >     { 107.182.131   = REJECT This mail server rejects mail > from the 107.182.131.

Re: postfix header check question

2023-02-16 Thread Wietse Venema
Spam Petya: > Hi! > Thank you for the examples. But the solution is this not working. I wrote > this to the header_checks: > /^From: (.*)mailer-dae...@fmfwd00.freemail.hu(.*)$/ REJECT message > /^Received: (.*)fmfwd00.freemail.hu(.*)$/ REJECT message > > Still NDR-s are passing through. Header exa

Re: Blocking TLDs

2023-02-16 Thread James Pifer
On 2/16/2023 9:21 AM, Viktor Dukhovni wrote: On Thu, Feb 16, 2023 at 08:23:00AM -0500, James Pifer wrote: Anyone see anything wrong with it or have other suggestions? smtpd_recipient_restrictions =     check_client_access inline:{     { 107.182.131   = REJECT This mail serv

Re: Blocking TLDs

2023-02-16 Thread Wietse Venema
James Pifer: > On 2/16/2023 9:21 AM, Viktor Dukhovni wrote: > > Don't forget set an empty: > > > > parent_domain_matches_subdomains = > > > > Where should that go exactly? In main.cf. Wietse

Re: Blocking TLDs

2023-02-16 Thread James Pifer
On 2/16/2023 9:56 AM, Wietse Venema wrote: James Pifer: On 2/16/2023 9:21 AM, Viktor Dukhovni wrote: Don't forget set an empty: parent_domain_matches_subdomains = Where should that go exactly? In main.cf. Wietse I should have been more specific. Where in main.cf should it g

Re: Blocking TLDs

2023-02-16 Thread Wietse Venema
James Pifer: > On 2/16/2023 9:56 AM, Wietse Venema wrote: > > James Pifer: > >> On 2/16/2023 9:21 AM, Viktor Dukhovni wrote: > >>> Don't forget set an empty: > >>> > >>> parent_domain_matches_subdomains = > >>> > >> Where should that go exactly? > > In main.cf. > > > > Wietse > > I shoul

Re: different treatment for different From: domains

2023-02-16 Thread D. R. Evans
Wietse Venema wrote on 2/10/23 08:24: D. R. Evans: I have a postfix setup that, for a long time, has done exactly what I want. But now I have to change something and I have no idea how to make this particular change: E-mail from several domains are sourced on my network. Now I need to treat e-m

Re: different treatment for different From: domains

2023-02-16 Thread Viktor Dukhovni
On Thu, Feb 16, 2023 at 11:33:43AM -0700, D. R. Evans wrote: > In a (failed) attempt to get this working, I have added the following to > main.cf: > > sender_dependent_relayhost_maps=hash:/etc/postfix/relayhost_maps Note, this affects recipients that would be routed to the *default* transport a