Skip to content

Commit

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

mail: [
// After MAIL FROM command
rule "deny unencrypted" || {
log("warn", `Email from ${ctx::client_ip()}`);
if ctx::is_secured() || ctx::client_ip() == "::1" || ctx::client_ip() == "127.0.0.1" {
state::next()
} else {
state::deny(code(451, "5.7.3", "Must issue a STARTTLS command first\r\n"))
}
}
//rule "deny unencrypted" || {
// log("warn", `Email from ${ctx::client_ip()}`);
// if ctx::is_secured() || ctx::client_ip() == "::1" || ctx::client_ip() == "127.0.0.1" {
// state::next()
// } else {
// state::deny(code(451, "5.7.3", "Must issue a STARTTLS command first\r\n"))
// }
//}
],

rcpt: [
Expand Down

0 comments on commit 22426f5

Please sign in to comment.