Skip to content

Whitelist Domains in a file #658

Answered by foxcpp
bjoernh asked this question in Q&A
Discussion options

You must be logged in to vote

source_in checks the entire address, you need to define a pre-processing step to strip away the local part (before @) before file lookup.

# at top-level
table.chain smtp_whitelist {
  step regexp "(.+)@(.+)" "$2"
  step file /data/whitelist
}
source_in &smtp_whitelist {
   ...
}

Replies: 1 comment

Comment options

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