Skip to content
Discussion options

You must be logged in to vote

I had to do the following:

table.chain domain_blacklist {
    step regexp ".*@(.+)" "$1"
    step file <path>/BlockedDomains.txt
}

That was near the top somewhere.

Then added this to the SMTP source:

smtp tcp://0.0.0.0:25 {
    source_in &domain_blacklist {
        reject 550 5.7.1 "Blocked sender domain"
    }
...
}

Then it will block domains entered in the text file.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TULOA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant