Skip to content
filter that checks if sender domain resolves
Go
Branch: master
Clone or download
Latest commit 4ab6a6a Aug 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github initial import Aug 20, 2019
LICENSE initial import Aug 20, 2019
README.md initial import Aug 20, 2019
filter-checksenderdomain.go initial import Aug 20, 2019

README.md

filter-checksenderdomain

Description

This filter performs a DNS lookup on the domain of the sending e-mail address to determine if it exists before accepting it.

Features

The filter currently supports:

  • performs a Host lookup on the sender address

Dependencies

The filter is written in Golang and doesn't have any dependencies beyond standard library.

It requires OpenSMTPD 6.6.0 or higher.

How to install

Clone the repository, build and install the filter:

$ cd filter-checksenderdomain/
$ go build
$ doas install -m 0555 filter-checksenderdomain /usr/local/bin/filter-checksenderdomain

How to configure

The filter itself requires no configuration.

It must be declared in smtpd.conf and attached to a listener:

filter "checksenderdomain" proc-exec "/usr/local/bin/filter-checksenderdomain"

listen on all filter "checksenderdomain"
You can’t perform that action at this time.