Skip to content

Commit

Permalink
Block relay
Browse files Browse the repository at this point in the history
  • Loading branch information
erebe committed Jan 23, 2024
1 parent 22426f5 commit 9a13c6b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions services/email/vsmtp/filter.vsl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@

rcpt: [
// After each RCPT TO command
rule "verify for host" || {
if "erebe.eu" in ctx::rcpt_list().domains {
state::next()
} else {
log("warn", `Refusing email for ${ctx::rcpt_list()}`);
state::deny()
}
}
],

preq: [],
Expand Down

0 comments on commit 9a13c6b

Please sign in to comment.