this post was submitted on 30 Nov 2023
3 points (80.0% liked)

Self-Hosted Main

511 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

My setup is Dovecot + Postfix + Spamassassin + Roundcube, on CentOS. Works great. Using this setup since a long time. Incoming spam gets flagged by Spamassassin too, but I don't know how to stop these emails from hitting my inbox.

Can anyone tell me how to or point me to a link with instructions?

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 11 months ago

I use FDM for this. Appropriate parts of my ".fdm.conf":

# Where the bad stuff goes.
action "spam" mbox "%h/Mail/spam"

# Some attachments indicate spam just by existing.
$bad_ext = "*.xlsm"
match attachment any-name "*.xlsm" action "spam"

# Run through spamassassin if not too large.
match size < 500K action rewrite "/usr/local/bin/spamc" continue

# If spamassassin thinks it's spam then good enough for me.
match "^X-Spam-Status: Yes" in headers action "spam"