foxcpp / maddy

✉️ Composable all-in-one mail server.
https://maddy.email
GNU General Public License v3.0
5.05k stars 243 forks source link

require_matching_ehlo, dnsbl: Exclude 127.0.0.1/24 clients from the check #162

Open foxcpp opened 4 years ago

foxcpp commented 4 years ago

Same goes for dnsbl module. Also ::1 for IPv6.

foxcpp commented 4 years ago

Status quo:

Since there is a way to solve the original use-case, I have little to no desire to implement special cases for mentioned checks. If somebody wants to implement it - I will probably merge a PR with it, though. Removing from 0.1 milestone.

P.S. example configuration snippet (10.0.0.1 is external interface address):

hostname example.org
tls cert.pem key.pem

smtp tcp://127.0.0.1:25 {
    deliver_to dummy
}

smtp tcp://10.0.0.1:25 {
    check {
        require_matching_ehlo
    }
    deliver_to dummy
}