Re: Filter Logging
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
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
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
Filter Logging
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? Secondly, this filter seems to be working well but I don't see any other information in the logs except the 550 and whatever rejection message I've used. I chose the data phase as I previously had a similar filter which acted earlier on in the SMTP transaction but which didn't seem reject all required addresses. I've since stupidly deleted this filter so I cannot be more precise. So to summarise, how can I see more information from my current filter and am I using the correct syntax in the first place for the referenced table? Thanks for your time. Pete. smime.p7s Description: S/MIME cryptographic signature