great, I got it working now
On Fri, Aug 20, 2021 at 02:41:54PM +0200, Thomas Bohl wrote:
i cant get mails rejected that come from a list of specific senders
table bad_guys file:/etc/mail/bad_guys
match from mail-from <bad_guys> reject
If you don't specify for whom the rule is it will default to local.
So the current rule is:
match from mail-from <bad_guys> for local reject
It will not match an incoming smtp connection.
So you want:
match from mail-from <bad_guys> for any reject
If that doesn't work use:
match from any for any mail-from <bad_guys> reject
That is a line I use in production for years.