Skip to content

Commit

Permalink
bump email
Browse files Browse the repository at this point in the history
  • Loading branch information
erebe committed Feb 24, 2023
1 parent 0063782 commit 16fdce7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions email/vsmtp/filter.vsl
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@

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()
// }
//}
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: [
rule "check spf" || spf::check("both", "soft"),
//rule "check spf" || spf::check("both", "soft"),
rule "write mail to disk" || {
fs::write("/data/mail-tmp");
// we deny to avoid queuing but tell client everything is ok
Expand Down

0 comments on commit 16fdce7

Please sign in to comment.