How can I fix mail being flagged as spam but not moved to the users spam folder?

Mail is not being moved to the users spam folder even though the policy is set to move to spam folder.

Policy Spam Action

First double check that the policy spam action is set to move. Remember that spam policies are hierarchical meaning that any child policy at the mailbox or domain level can override the default server level. See here for more information.

Restart the Dovecot service

The dovecot service is what moves the spam messages to the Spam folder. Sometimes restarting the dovecot service can fix things.

systemctl restart dovecot

Plesk Email Security

Plesk Email Security can sometimes leave old sieve filters which can interfere with Warden's own sieve filters. The sieve filters that Warden uses are always named .warden.sieve. You can check for old sieve filters using the command:

find /var/qmail/mailnames -name ".dovecot.sieve"

Then you can view the contents of each sieve filter to see if they are from Plesk Email Security and delete them.

  • spam action, move
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I fix any statistics generation problems?

Missing the Warden Crontab Entry There is a crontab entry that will update Warden statistics...

How can I fix the error: "milter-reject: END-OF-MESSAGE from..." in the log and found the AV in error (cannot read /etc/clam.d/scan.conf).

Cloudlinux / Imunify360 added their own version of ClamAV to their repo which accidentally...

How can I fix the error: Can't connect to TCP port 10024 on ::1 [Cannot assign requested address] when trying to start Amavis?

When trying to start Amavis you see this in the mail log: Oct 02 03:20:15 condor3648 systemd[1]:...

How can I fix the error: Error [Contentfilter_Settings_Contentfilter]. Message [[QUARANTINEDIR] must be a valid directory?

This error means that Amavis was not installed correctly. Try running the Warden from the command...

How can I fix the error: host 127.0.0.1[127.0.0.1] said: 552 5.3.4 Declared message size (1208029 B) exceeds size limit for recipient?

You can set the message size limit for Amavis under Settings -> Policy Settings -> Misc...