Skip to content

Addition of Blocklist to Mail + More strict rules on incoming mail#167

Open
Arisamiga wants to merge 2 commits into
masterfrom
mail-blocklist
Open

Addition of Blocklist to Mail + More strict rules on incoming mail#167
Arisamiga wants to merge 2 commits into
masterfrom
mail-blocklist

Conversation

@Arisamiga
Copy link
Copy Markdown
Member

This Pull Request adds a blocklist to mail (So the admins can specifically block incoming mail from a particular service) and also increases/enables some features to reduce spam to mail.

The blocklist is in mail/postfix/sender_blocklist and uses the following format.

For example:

spammer@example.com REJECT Blocked sender address
.bad-tld REJECT Blocked sender TLD

Changes to Mail rules:

  • Enabled ClamAV antivirus
  • Increased the spam filter score for unknown hostnames (RSPAMD_HFILTER_HOSTNAME_UNKNOWN_SCORE) from 6 to 8, making spam detection stricter.
  • Changed POSTSCREEN_ACTION from ignore to enforce, so failed postscreen tests now actively block connections instead of just logging them.
  • Enabled Postfix rejection of clients with unknown hostnames by setting POSTFIX_REJECT_UNKNOWN_CLIENT_HOSTNAME=1.
  • Enabled Postgrey (greylisting) by setting ENABLE_POSTGREY=1, and disabled auto-whitelisting of clients after successful deliveries (POSTGREY_AUTO_WHITELIST_CLIENTS=0).

@Arisamiga Arisamiga self-assigned this May 4, 2026
@Arisamiga Arisamiga added the enhancement New feature or request label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant