Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Viktor Dukhovni
On Wed, Oct 28, 2020 at 12:09:38PM -0400, Joey J wrote: > Thank you, sometime I forget to RTFM. > > A 2 part question. > abc.com 550 Spam from ABC.com > > Will this match anything with abc.com, as an example if the message comes > from m...@test.abc.com will it get rejected? The same

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Joey J
Thank you, sometime I forget to RTFM. A 2 part question. abc.com 550 Spam from ABC.com Will this match anything with abc.com, as an example if the message comes from m...@test.abc.com will it get rejected? Additionally in the doc I see REJECT and below that 5xx, do I need to have REJECT 550 We

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Dominic Raferd
On 28/10/2020 15:53, Allen Coates wrote: On 28/10/2020 15:24, Viktor Dukhovni wrote: On Wed, Oct 28, 2020 at 09:05:40AM +, Allen Coates wrote: Some time ago (5 years maybe) I discovered that "OK" was not being universally recognised in every access list; I cultivated the habit of

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Allen Coates
On 28/10/2020 15:24, Viktor Dukhovni wrote: > On Wed, Oct 28, 2020 at 09:05:40AM +, Allen Coates wrote: > >> Some time ago (5 years maybe) I discovered that "OK" was not being >> universally >> recognised in every access list; I cultivated the habit of using the words >> "ACCEPT" and

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Viktor Dukhovni
On Wed, Oct 28, 2020 at 11:34:35AM -0400, Joey J wrote: > Since you are looking within the code, on a reject we used to put > @abc.com 550 and custom reject message There's no need to consult the code. The lookup keys for access(5) tables are documented. They DO NOT include "@domain". To

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Joey J
Viktor, Since you are looking within the code, on a reject we used to put @abc.com 550 and custom reject message is that still valid? Will @abc.com REJECT 550 and custom reject message work? Thank you! On Wed, Oct 28, 2020 at 11:25 AM Viktor Dukhovni wrote: > On Wed, Oct 28, 2020 at

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Viktor Dukhovni
On Wed, Oct 28, 2020 at 09:05:40AM +, Allen Coates wrote: > Some time ago (5 years maybe) I discovered that "OK" was not being universally > recognised in every access list; I cultivated the habit of using the words > "ACCEPT" and REJECT" - and have had no problems since. That's odd,

Re: Fwd: Verify Proper method for sender restrictions

2020-10-28 Thread Allen Coates
On 26/10/2020 20:44, Joey J wrote: > And within that file have both white & blacklist like so: > youareok.com    OK > youarebad.com   REJCT > 1.2.3.4  550 Block-I dont like you > 1.5.6.0/24 550 Block I dont like any of you. > Some

Fwd: Verify Proper method for sender restrictions

2020-10-26 Thread Joey J
Hello All, Trying to make sure I'm doing this correctly, both at the right point within the mail communications and in the format of my has file. smtpd_recipient_restrictions= check_sender_access hash:name of file And within that file have both white & blacklist like so: youareok.com OK