On 7/12/25 01:00, Bill Cole via Postfix-users wrote:
Does rspamd do local delivery? That's the predominant usage mode for procmail, which was reanimated about 3 years ago. (https://github.com/ BuGlessRB/procmail)
This is what I got when I did a google search. Seems it will work with procmail local delivery.
Rspamd can be integrated with by configuring Rspamd to operate in "header-only" mode, where it scans emails and adds X-Spam headers, which then uses to filter and sort messages into different mail folders or take specific actions. This setup offers per-user flexibility in email handling. [1, 2, 3]
How the Integration WorksNormally, Rspamd integrates with a Mail Transfer Agent (MTA) like Postfix or Exim via a milter or proxy, which allows it to reject or greylist messages at the SMTP level. For integration, Rspamd is used differently, usually by invoking the client during the local delivery process.
1. Rspamd Scans and Adds Headers: The core idea is to have Rspamd analyze the email and append specific headers (e.g., , , ) without taking immediate action like rejection. 2. Procmail Reads Headers: After Rspamd has processed the email and added the headers, (acting as the Local Delivery Agent or LDA) reads these headers as part of its filtering rules. 3. Procmail Takes Action: Based on the values in the Rspamd headers, can then sort the mail into an "Inbox" or "Junk" folder, delete it, or redirect it to a specific mailing list folder. [1, 8, 9, 10, 11]
Example Procmail RecipesA configuration () can use Rspamd's headers to manage incoming mail. Here are common actions:
• File spam into a "Spam" folder: This recipe checks if Rspamd has flagged the message as spam.
• This sends the message to the folder within your .• Delete messages with a high spam score: This recipe can delete emails that reach a certain score threshold (e.g., above 5.0). • Note: The exact header names might vary slightly depending on your Rspamd configuration and the integration method ( vs client call). Always verify the headers Rspamd actually produces in your setup. [3, 8, 12, 14, 15]
Key Considerations• Flexibility: Using allows for highly flexible, per-user spam filtering rules, which is useful in multi-user environments like Virtualmin. • Performance: Rspamd is written in C and is very fast, processing up to 100 emails per second per CPU core, which helps mitigate the overhead of running filters at the delivery stage. • Sieve Alternative: is a traditional method, but modern mail systems often use Sieve filtering (often via Dovecot) to achieve similar mail-sorting goals based on Rspamd headers. The Rspamd documentation provides integration guidance for both. [2, 5, 10, 16]
AI responses may include mistakes. [1] https://rspamd.com/doc/tutorials/integration.html [2] https://forum.virtualmin.com/t/virtualmin-and-rspamd/110100 [3] https://forums.freebsd.org/threads/mail-server-recommendations.64965/ [4] https://docs.rspamd.com/tutorials/quickstart/ [5] https://lwn.net/Articles/732570/ [6] https://docs.rspamd.com/getting-started/first-setup/ [7] https://bobcares.com/blog/directadmin-blockcracking/ [8] https://forums.freebsd.org/threads/spamfilters.97360/ [9] https://docs.rspamd.com/tutorials/integration/ [10] https://tschumacher.net/self-host-email/ [11] https://people.cs.rutgers.edu/~watrous/procmail-spam.html [12] https://github.com/vstakhov/rspamd/issues/799 [13] https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/deployment_guide/s1-email-mda [14] https://opensource.com/article/17/11/spamassassin-mimedefang-and-procmail [15] https://support.cs.jhu.edu/wiki/Filtering_Spam_with_Procmail [16] https://docs.rspamd.com/configuration/
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
