summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter_rspamd.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/filter_rspamd.go b/filter_rspamd.go
index d326b09..8e862b0 100644
--- a/filter_rspamd.go
+++ b/filter_rspamd.go
@@ -138,12 +138,14 @@ func dataOutput(headers map[string]string,
go func() {
resp, err := rspamdPost(headers, data)
if err != nil {
- log.Fatal(err)
+ ch <- "421 Temporary failure"
+ return
}
log.Printf("%v\n", resp)
m, err := mail.ReadMessage(strings.NewReader(data))
if err != nil {
- log.Fatal(err)
+ ch <- "421 Temporary failure"
+ return
}
rejectReason := ""
switch resp.Action {