Hello,
i cant get mails rejected that come from a list of specific senders
smtpd.conf
table bad_guys file:/etc/mail/bad_guys
match from mail-from <bad_guys> reject
Whats wrong?
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.