[pfx] Re: Blocked Sender

2023-03-27 Thread natan via Postfix-users
Hi Yes, my pasting error smtpd_sender_restrictions =     permit_mynetworks     check_sender_access pcre:/etc/postfix/sender_checks.pcre     reject_unknown_sender_domain     ... cat /etc/postfix/sender_checks.pcre /@domain\.ltd/ OK Of course, if required, use $ at the end For me better is

[pfx] Re: Blocked Sender

2023-03-27 Thread Viktor Dukhovni via Postfix-users
On Mon, Mar 27, 2023 at 02:16:06PM +0200, Matus UHLAR - fantomas via Postfix-users wrote: > On 27.03.23 12:39, natan via Postfix-users wrote: > >/etc/postfix/sender_checks.pcre > >/@scripkabox\.com/ > > >/@domain\.ltd/ OK > > > In any case I recommend using

[pfx] Re: Blocked Sender

2023-03-27 Thread Matus UHLAR - fantomas via Postfix-users
On 27.03.23 12:39, natan via Postfix-users wrote: /etc/postfix/sender_checks.pcre /@scripkabox\.com/ /etc/postfix/recipient_checks.pcre smtpd_sender_restrictions =     permit_mynetworks     check_sender_access pcre:/etc/postfix/sender_checks.pcre    

[pfx] Re: Blocked Sender

2023-03-27 Thread natan via Postfix-users
Hi Mayby this help you: /etc/postfix/sender_checks.pcre /@scripkabox\.com/ /etc/postfix/recipient_checks.pcre smtpd_sender_restrictions =     permit_mynetworks     check_sender_access pcre:/etc/postfix/sender_checks.pcre     reject_unknown_sender_domain     ... cat

[pfx] Re: Blocked Sender

2023-03-27 Thread Jaroslaw Rafa via Postfix-users
Dnia 27.03.2023 o godz. 00:10:08 Doug Hardie via Postfix-users pisze: > > The first thing I noticed is that smtpd accesses some of the tables. That > I didn't expect based on the README. I don't think it is using those > tables to rewrite addresses, but it is not obvious why it accesses them.

[pfx] Re: Blocked Sender

2023-03-27 Thread Doug Hardie via Postfix-users
> On Mar 26, 2023, at 16:23, Viktor Dukhovni via Postfix-users > wrote: > >> ... > > Well, this does not have the "inline:{{...}}" guard. > >>> incoming_smtpd_restrictions = >>> check_policy_service inet:127.0.0.1:10040, >>> reject_invalid_hostname, >>>

[pfx] Re: Blocked Sender

2023-03-26 Thread Viktor Dukhovni via Postfix-users
On Sun, Mar 26, 2023 at 04:10:57PM -0700, Doug Hardie via Postfix-users wrote: > > The suggested inline:{{key = value}} replacement will work if > > implemented correctly. > > Mar 26 15:42:30 mail postfix/smtpd[15243]: NOQUEUE: reject: > RCPT from mx4.messageprovider.com[156.55.193.213]: 450

[pfx] Re: Blocked Sender

2023-03-26 Thread Doug Hardie via Postfix-users
-- Doug > On Mar 26, 2023, at 15:04, Viktor Dukhovni via Postfix-users > wrote: > > On Sun, Mar 26, 2023 at 02:53:42PM -0700, Doug Hardie wrote: > >>> inline:{{digitalinsight.firefightersfirstcreditunion.org = >>> permit_auth_destination}} >>> or >>> >>>

[pfx] Re: Blocked Sender

2023-03-26 Thread Jaroslaw Rafa via Postfix-users
Dnia 26.03.2023 o godz. 14:53:42 Doug Hardie via Postfix-users pisze: > check_sender_access hash:/usr/local/etc/postfix/access [...] > the contents of access: > > # Firefighters CU has missing DNS > 156.55.193.213 OK This will not match for "check_sender_access". For this

[pfx] Re: Blocked Sender

2023-03-26 Thread Viktor Dukhovni via Postfix-users
On Sun, Mar 26, 2023 at 02:53:42PM -0700, Doug Hardie wrote: > >inline:{{digitalinsight.firefightersfirstcreditunion.org = > > permit_auth_destination}} > > or > > > > inline:{digitalinsight.firefightersfirstcreditunion.org=permit_auth_destination} > > > > Per the documentation: > > >

[pfx] Re: Blocked Sender

2023-03-26 Thread Doug Hardie via Postfix-users
> On Mar 26, 2023, at 14:27, Viktor Dukhovni via Postfix-users > wrote: > > On Sun, Mar 26, 2023 at 02:15:27PM -0700, Doug Hardie via Postfix-users wrote: > >> Thanks Viktor. I went with the first approach and am getting errors: >> >> warning:

[pfx] Re: Blocked Sender

2023-03-26 Thread Viktor Dukhovni via Postfix-users
On Sun, Mar 26, 2023 at 02:15:27PM -0700, Doug Hardie via Postfix-users wrote: > Thanks Viktor. I went with the first approach and am getting errors: > > warning: inline:{DigitalInsight.firefightersfirstcreditunion.org = > permit_auth_destination} is unavailable. missing '=' after attribute

[pfx] Re: Blocked Sender

2023-03-26 Thread Doug Hardie via Postfix-users
> On Mar 26, 2023, at 13:28, Viktor Dukhovni via Postfix-users > wrote: > > On Sun, Mar 26, 2023 at 12:52:01PM -0700, Doug Hardie via Postfix-users wrote: > >> I don't want to remove the "reject_unknown_sender_domain" function as >> it gets used properly a lot. Is there some way I can get

[pfx] Re: Blocked Sender

2023-03-26 Thread Viktor Dukhovni via Postfix-users
On Sun, Mar 26, 2023 at 12:52:01PM -0700, Doug Hardie via Postfix-users wrote: > I don't want to remove the "reject_unknown_sender_domain" function as > it gets used properly a lot. Is there some way I can get postfix to > accept these for local delivery? smtpd_sender_restrictions =