Skip to content

Commit

Permalink
check/dns: Mark require_matching_echo as deprecated
Browse files Browse the repository at this point in the history
See #280.
  • Loading branch information
foxcpp committed Jul 9, 2021
1 parent d0487d7 commit c55bf8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/man/maddy-filters.5.scd
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ Action to take when check fails. See Check actions for details.
Log both sucessfull and unsucessfull check executions instead of just
unsucessfull.

## require_matching_ehlo

Check that source server hostname (from EHLO/HELO command) resolves to source
server IP.

By default, quarantines messages coming from servers with mismatched
EHLO hostname, use 'fail_action' directive to change that.

## require_mx_record

Check that domain in MAIL FROM command does have a MX record and none of them
Expand Down
2 changes: 2 additions & 0 deletions internal/check/dns/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ func requireMXRecord(ctx check.StatelessCheckContext, mailFrom string) module.Ch
}

func requireMatchingEHLO(ctx check.StatelessCheckContext) module.CheckResult {
ctx.Logger.Printf("require_matching_echo is deprecated and will be removed in the next release")

if ctx.MsgMeta.Conn == nil {
ctx.Logger.Printf("locally-generated message, skipping")
return module.CheckResult{}
Expand Down

0 comments on commit c55bf8e

Please sign in to comment.