New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Mail server spam folder
I'm currently experimenting with setting up a mail server using Postfix, Dovecot and SpamAssassin. My setup uses virtual domains and users which are stored in a MySQL database. Everything works fine, but there's one thing I can can't my head around. When SpamAssassin marks an email as spam it adds "*** SPAM ***" to the subject of the email but it doesn't move the email to a "Spam" folder. I've been searching on the internet but haven't found a lot of useful information. I want it to "just work", it should move the spam to a "Spam" folder without my users having to tweak something on their side.
Any suggestions? Thanks a lot!
Comments
I use maildrop to automatically move ** SPAM ** to the right IMAP folder.
@DennisD: I use Dovecot sieve to move the files and use something like:
If you are running Debian, here's a guide to get sieve/managesieve installed:
https://rtcamp.com/tutorials/mail/server/sieve-filtering/
Do you have any tutorial about how to set up maildrop?
I used this tutorial to set up my mail server: https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassasin
Thanks, I already read about sieve. But that requires users to change stuff on their end right? It won't "just" work for them.
@DennisD: Not necessarily. You can define a global sieve.
So that means it will show spam in a spam folder no matter what client is being used? How do I use this "global sieve"?
@DennisD:
Here's a guide: https://workaround.org/ispmail/lenny/server-side-sieve-filtering
Thanks for the guide, I don't need to install anything? Sieve comes by default with Dovecot? (I don't see any packages I need to install on that guide)
For Debian/Ubuntu, you need to install the
dovecot-sieve
package.