Re: Filter Logging

2022-03-21 Thread edgar
Sent via the Samsung Galaxy A10e, an AT 4G LTE smartphone
 Original message From: Pete Long  Date: 
3/21/22  9:08 AM  (GMT-06:00) To: misc@opensmtpd.org Subject: Re: Filter 
Logging On Mon, Mar 21, 2022 at 03:58:23PM +0200, Reio Remma wrote:> On 
21.03.2022 15:54, Pete Long wrote:> > Hi all,> > > > I have a filter defined in 
smtpd.conf which looks like the following:> > > > filter rejects phase data 
match mail-from  \> > disconnect "550 Policy enforcement."> > > 
> The referenced table contains a list of addresses in the following> > 
formats:> > > > @dailynuisance.tld> > bigmarketing.tld> > 
@weneverunsubsribeanyone.tld> > > > First of all, are these valid formats for 
the filter?> > I see I've set up blacklists with a table like this:> > match \> 
  from any \>   for any \>   mail-from  \>   rejectI'm currently 
doing the same as Reio with no complaints. Edgar Thanks Reio, that's nice and 
simple. I'll give that a try.For some reason, I've always placed reject lists 
in a filter which areare referenced in a 'listen on' line.Perhaps its time for 
a change :)Pete.

Re: Filter Logging

2022-03-21 Thread Pete Long
On Mon, Mar 21, 2022 at 03:58:23PM +0200, Reio Remma wrote:
> On 21.03.2022 15:54, Pete Long wrote:
> > Hi all,
> > 
> > I have a filter defined in smtpd.conf which looks like the following:
> > 
> > filter rejects phase data match mail-from  \
> > disconnect "550 Policy enforcement."
> > 
> > The referenced table contains a list of addresses in the following
> > formats:
> > 
> > @dailynuisance.tld
> > bigmarketing.tld
> > @weneverunsubsribeanyone.tld
> > 
> > First of all, are these valid formats for the filter?
> 
> I see I've set up blacklists with a table like this:
> 
> match \
>   from any \
>   for any \
>   mail-from  \
>   reject

Thanks Reio, that's nice and simple. I'll give that a try.

For some reason, I've always placed reject lists in a filter which are
are referenced in a 'listen on' line.

Perhaps its time for a change :)

Pete.



smime.p7s
Description: S/MIME cryptographic signature


Re: Filter Logging

2022-03-21 Thread Reio Remma

On 21.03.2022 15:54, Pete Long wrote:

Hi all,

I have a filter defined in smtpd.conf which looks like the following:

filter rejects phase data match mail-from  \
disconnect "550 Policy enforcement."

The referenced table contains a list of addresses in the following
formats:

@dailynuisance.tld
bigmarketing.tld
@weneverunsubsribeanyone.tld

First of all, are these valid formats for the filter?


I see I've set up blacklists with a table like this:

match \
  from any \
  for any \
  mail-from  \
  reject

Good luck
Reio