Automatically delete spam not working correctly

On one of my servers the Automatically delete spam is not deleting spam. All accounts are set to delete spam after five days.

I have been manually emptying the some of the spam folders, but have some accounts I can show you as examples with a couple weeks of spam stored.

Please advise, Brian

Status: 
Closed (fixed)

Comments

You can try running a manual spam cleanup, by SSHing in as root and running /etc/webmin/virtual-server/spamclear.pl --debug . And then search the output for the domain that isn't being cleared - it should explain why that is happening.

Thanks Jamie,

What I'm seeing is a whole lot of this (names have been changed to protect the innocent):

user.domain: processing folder /home/domain/homes/juser/Maildir/.spam

user.domain: clearing disabled for folder

If "clearing disabled for folder" is identifying the problem, than where is it that the individual accounts settings are being over-ridden? Or is this a bug?

That means that spam clearing is disabled for that domain - this is set in Virtualmin at Server Configuration -> Spam and Virus Delivery.

The whole reason I'm reporting this is because this domain and ALL others are set to delete spam after 5 days.

"Yes, if older than 5 days"

Do you have a global email retention policy setup at Email Messages -> Mailbox Cleanup ?

I saw the Mailbox Cleanup added as a new feature, however it is still at the default setting. I also have another Virtualmin Pro box that is deleting the spam as intended and the Mailbox Cleanup settings are both identical (default).

It's also possible that Virtualmin is confused about which folder is the spam folder.

Can you post a screenshot of Server Configuration -> Spam and Virus Delivery for this domain?

Here it is.

oops! there was a problem...

I'm getting this error when I try to attach a 70kb jpg:

Validation error, please try again. The file you attempted to upload may be too large. If this error persists, please contact the site administrator.

Ok, I see the bug that causes this now - it will be fixed in the next Virtualmin release.

Thank you very much Jamie!

The update did the trick. running "/etc/webmin/virtual-server/spamclear.pl --debug" produced the desired results this time.

Thank you!

Automatically closed -- issue fixed for 2 weeks with no activity.

Automatically closed -- issue fixed for 2 weeks with no activity.