On Sun, May 26, 2019 at 09:53:46AM +0200, Pierre-Edouard wrote:
> Hi All,
>
Hi,
> I am currently running OpenSMTPD on OpenBSD 6.5 GENERIC.MP#0 amd64
>
> I am trying to "filter" connexions coming from hosts that don't have any
> rdns defined.
> Such hosts appear as <unknown> in the logs.
>
> I've tried the following without any results :
>
>
> table bots {"NXDOMAIN", "\<unknown\>" , ".*unknown.*", "^$" }
> match from rdns regex <bots> for any reject
>
> but this rule never matches and hosts without rDNS are still able to send me
> mail :(
>
> Any ideas ?
>
the 'from rdns' criteria will fail to match if the client doesn't have a
reverse dns, so a way to catch them would be:
match !from rdns regex '^.*$' [...]
i'll have a look at how to extend the criteria so we can do:
match !from rdns [...]
but this is not the highest thing in my prio list right now :-)
--
Gilles Chehade @poolpOrg
https://www.poolp.org tip me: https://paypal.me/poolpOrg
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]