author | Alberto Bertogli
<albertito@blitiri.com.ar> 2020-06-01 19:08:16 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2020-06-01 20:05:02 UTC |
parent | b6248f3089d7df93035bbbc0c11edf50709d5eb0 |
etc/chasquid/hooks/post-data | +6 | -4 |
diff --git a/etc/chasquid/hooks/post-data b/etc/chasquid/hooks/post-data index 87fa507..ef23de6 100755 --- a/etc/chasquid/hooks/post-data +++ b/etc/chasquid/hooks/post-data @@ -48,12 +48,14 @@ fi if command -v rspamc >/dev/null; then + # Note the actions emitted by rspamc come from the thresholds + # configured in /etc/rspamd/actions.conf. + # The ones handled here are common defaults, but they might require + # adjusting to match your rspamd configuration. + # Note that greylisting is disabled in rspamc by design, so the + # "greylist" action is ignored here to prevent false rejections. ACTION=$( rspamc < "$TF" 2>/dev/null | grep Action: | cut -d " " -f 2- ) case "$ACTION" in - greylist) - echo "greylisted, please try again" - exit 75 # temporary error - ;; reject) echo "spam detected" exit 20 # permanent error