John R. Levine via Postfix-users:
> On Sat, 15 Jun 2024, Jeff Peng wrote:
> > I think postscreen can block them easily.
>
> I'm looking at the postscreen man page and I don't see anything about mail
> addresses. Am I missing something?
That is a bad suggestion, please ignore.
> I do see smtpd_command_filter. How about if I map MAIL FROM:<badname> to
> QUIT?
That would do the job. With regexp: or pcre: tables you may save
some CPU cycles with:
# Don't indent text between IF and ENDIF.
IF /^MAIL FROM:/
/^MAIL FROM:<badstuff>/ QUIT
/^MAIL FROM:<badstuff>/ QUIT
...
ENDIF
If the list is short, this 'optimization' won't be worthwhile.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]