Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x => Topic started by: Mace on April 23, 2025, 01:55:03 AM

Title: How to change designated junk folder value?
Post by: Mace on April 23, 2025, 01:55:03 AM
Hello, is there a way to change the designated junkmail folder for specific users? I keep getting the following error on several user accounts when the related cron job runs:
Code: [Select]
perl /etc/e-smith/events/actions/purge-junkmail-folders
Couldn't chdir to junkmail folder of user redacted: No such file or directory
Title: Re: How to change designated junk folder value?
Post by: bunkobugsy on April 23, 2025, 10:16:46 AM
Not that I know of, without editing the code.
junkmail folder shouldn't be removed, it will be created on first filtered mail or it can be created manually.
Title: Re: How to change designated junk folder value?
Post by: Jean-Philippe Pialasse on April 23, 2025, 02:23:04 PM
.junkmail folder is hardcoded in multiple places around the code. 
it should not be removed or deleted or you will encounter this kind of error.

of sort to junkmail is enabled it will be recreated upon spam delivery. 

if you want a specific name to support your  mail client not allowing to set your own, the. you can create a symlink pointing to junkmail.  all imap client will treat it as an independant regular mail folder. 

Title: Re: How to change designated junk folder value?
Post by: Mace on April 24, 2025, 08:27:11 AM
Thank you for the replies. I'll create symlinks for them.