SPAM folder

Hello, I just installed a mail server with postfix, dovecot, mysql and spamassasin.

Everything works fine, but the SPAM folder does not exist and spam emails arrive the same.

I would like to create a folder of SPAM and that automatically go there the mails considered spam

regards

4 Replies

dovecot does not filter emails by default, it requires an external application to do that, like sieve. Once you install sieve, you can filter incoming emails based on the X-Spam-Flag header and move them to a spam folder accordingly.

there are lots of guides on how to install and setup sieve with dovecot.

@IfThenElse:

dovecot does not filter emails by default, it requires an external application to do that, like sieve. Once you install sieve, you can filter incoming emails based on the X-Spam-Flag header and move them to a spam folder accordingly.

there are lots of guides on how to install and setup sieve with dovecot.

Hello, thanks for answering.

I followed the steps of this tutorial but I do not know if it will be the right one. I can not make it work.

~~[http://www.smartdomotik.com/2015/09/04/how-to-set-filters-in-roundcube-with-sieve/" target="_blank">](http://www.smartdomotik.com/2015/09/04/ … ith-sieve/">http://www.smartdomotik.com/2015/09/04/how-to-set-filters-in-roundcube-with-sieve/](

Could you tell me a tutorial that works?

I have Postfix, Dovecot, Roundcube and SpamAssassinpamAssassin

Thanks

That tutorial won't help, its not related to CentOS and the commands are wrong.

I think the equivalent CentOS package for sieve is pigeonhole, so try

yum install dovecot-pigeonhole

Try this tutorial:

https://www.rosehosting.com/blog/how-to … tos-6-vps/">https://www.rosehosting.com/blog/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps/

@IfThenElse:

That tutorial won't help, its not related to CentOS and the commands are wrong.

I think the equivalent CentOS package for sieve is pigeonhole, so try

yum install dovecot-pigeonhole

Try this tutorial:

https://www.rosehosting.com/blog/how-to … tos-6-vps/">https://www.rosehosting.com/blog/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps/

Sorry for not mentioning it before, but I do not have Centos. I have Ubuntu 14.04

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct