For the spam folder in /home/username/.spamassassin/spam, the file permission is changed to: -rw-rw---- mail username spam Also, the filter_spamfolder template now looks like (added 660): if $h_X-Spam-Status: contains "Yes" then save |HOME|/.spamassassin/spam 660 finish endif