Skip to content

Commit

Permalink
rspamd's greylist returns soft reject if session should be rejected,
Browse files Browse the repository at this point in the history
so action greylist shouldn't tempfail
  • Loading branch information
poolpOrg committed Apr 9, 2020
1 parent e62c395 commit d62fac3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions filter-rspamd.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,6 @@ func dataCommit(s *session, params []string) {
}
produceOutput("filter-result", s.id, token, "reject|550 %s", s.tx.response)

case "greylist":
if s.tx.response == "" {
s.tx.response = "try again later"
}
produceOutput("filter-result", s.id, token, "reject|421 %s", s.tx.response)

case "soft reject":
if s.tx.response == "" {
s.tx.response = "try again later"
Expand Down Expand Up @@ -369,8 +363,6 @@ func rspamdQuery(s *session, token string) {
switch rr.Action {
case "reject":
fallthrough
case "greylist":
fallthrough
case "soft reject":
s.tx.action = rr.Action
s.tx.response = rr.Messages.SMTP
Expand Down

0 comments on commit d62fac3

Please sign in to comment.