Under "System Settings > Module Config > Spam filtering options", if the default delivery for spam is changed, it appears that will only affect new email users. Is there an easy method to update existing users? If not, is this something that handled by procmail (which I should then be able to individually updated)?
FWIW, the reason why I need to change this is because I had originally setup the spam delivery destination incorrectly. The option to "Write to standard spam Maildir ~/Maildir/.spam/" was close to what I wanted, but in order to provide a cleaner look-and-feel to my users in the webmail interface, I wanted the spam folder to show up as "Spam" (matches case of Drafts, Sent, Trash, etc.). I'm assuming I should therefore be using the "Write to mail file under home directory" with the value set to "Maildir/.Spam/". Unfortunately, I had forgotten the trailing slash character and a file was being created instead. Obviously, if I'm understanding this incorrectly, please let me know.
BTW, do you know of any quick methods to convert the spam files I was (incorrectly) having the system create into individual files I could move into the spam folders for the users?
Thanks.
Comments
Submitted by JamieCameron on Tue, 07/07/2009 - 11:22 Comment #1
The best way to change the delivery type for all existing domains is with the command :
virtualmin modify-spam --all-domains --spam-maildir
There is no automated way to convert existing mail files though, but since they presumably just contain spam you could delete them and they will be re-created as directories.
Submitted by novoops on Tue, 07/07/2009 - 14:03 Comment #2
The old spam was easy enough to quickly scan with a few grep expressions and you were right (as I expected)... it's all spam. I deleted them and it should be setup properly now.
Quick questions: the "--spam-maildir" option appears to set them all the "Spam Maildir option". What would be the option to set them to use a specific directory. IOW, instead of using $HOME/Maildir/.spam, I wanted them setup to go to $HOME/Maildir/.Spam, so in Module Config I set that as the default. I edited each server's spam delivery via Virtualmin as there weren't too many to do, but if I had to do it via the modify-spam script, could that be done?
Submitted by JamieCameron on Tue, 07/07/2009 - 14:46 Comment #3
Sure, if you want to deliver to .Spam you can use the command :
virtualmin modify-spam --all-domains --spam-file Maildir/.Spam/
Submitted by novoops on Tue, 07/07/2009 - 14:50 Comment #4
Thanks. That's perfect.
Submitted by Issues on Tue, 07/21/2009 - 15:18 Comment #5
Automatically closed -- issue fixed for 2 weeks with no activity.