Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fixes and added more tests #4

Merged
merged 21 commits into from
Feb 16, 2025
Merged
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,22 @@ Some features can have rejections disabled in the [reject] section.

```ini
[check]
reject_all=false
single_recipient=true
empty_return_path=true
bad_rcpt=true
empty_return_path=false
bounce_spf=true
non_local_msgid=true

[reject]
single_recipient=true
empty_return_path=true
empty_return_path=false
bad_rcpt=true
bounce_spf=false
non_local_msgid=false
all_bounces=false
```

## Features

### reject_all

When enabled, blocks all bounce messages using the simple rule of checking for `MAIL FROM:<>`.

It is generally a bad idea to block all bounces. This option can be useful for mail servers at domains with frequent spoofing and few or no human users.

### single_recipient

Valid bounces have a single recipient. Assure that the message really is a bounce by enforcing bounces to be addressed to a single recipient.
Expand All @@ -60,6 +54,12 @@ Parses the message body and any MIME parts for Received: headers and strips out

If no 'Pass' result is found, then this test will fail. If SPF returns 'None', 'TempError' or 'PermError' then the test will be skipped.

### all_bounces

When enabled, blocks all bounce messages using the simple rule of checking for `MAIL FROM:<>`.

It is generally a bad idea to block all bounces. This option can be useful for mail servers at domains with frequent spoofing and few or no human users.

## USAGE

Add `bounce` to Haraka's config/plugins file. If desired, install and customize a local bounce.ini.
Expand Down
10 changes: 4 additions & 6 deletions config/bounce.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
; config/bounce_bad_rcpt: addresses that should never get bounces


[check]
single_recipient=true
empty_return_path=true
bad_rcpt=true

; reject all bounce messages (generally a bad idea)
reject_all=false


[reject]
single_recipient=true
empty_return_path=true
bad_rcpt=true

; reject all bounce messages (generally a bad idea)
all_bounces=false
Loading