On Sat, 21 May 2022 at 01:19, Thomas Bohl <opensmtpd-misc-64...@aloof.de> wrote: > > SUMMARY > > smtpd has the rDNS name associated with the calling SMTP session; > > how to use that name in a filter? > > Someone has to program a custom filter with smtpd-filters API. > man 7 smtpd-filters
Should be already in there [1]: > The filter lines apply a set of filters to incoming connections, > check_dyndns will filter if rDNS matches some patterns, > check_rdns will filter if rDNS is missing, > check_fcrdns will filter if FCrDNS is missing, > these are builtin filters in OpenSMTPD that you can tweak to > filter at different phases or using other criterias. [1] https://poolp.org/posts/2019-09-14/setting-up-a-mail-server-with-opensmtpd-dovecot-and-rspamd/