Hi all,

Need some help here.

I would like to find a way to drop connections (with an arbitrary message) 
without having to wait for the connecting clients to issue anything at all.

Here’s my configuration line in /etc/mail/smtpd.conf in OpenBSD 7.3 running 
OpenSMTPD 7.0.0:

filter hostrejects phase ehlo match helo regex <rejecthost> disconnect 
"Connection dropped.”


The filter ‘works’ in the sense that I get “421 Internal Server Error” when 
something matches my regex table.


Here’s the format of one line in my <rejecthost> table:

^.*.prod-infinitum.com.mx$


Have I screwed up the regex, the config line or both?

Please let me know if you require further information.

Thanks for your time.



Pete.


Reply via email to