Koozali.org: home of the SME Server

How to change designated junk folder value?

Offline Mace

  • ***
  • 67
  • +0/-0
How to change designated junk folder value?
« 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

Offline bunkobugsy

  • *
  • 305
  • +4/-0
Re: How to change designated junk folder value?
« Reply #1 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.

Offline Jean-Philippe Pialasse

  • *
  • 2,903
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: How to change designated junk folder value?
« Reply #2 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. 


Offline Mace

  • ***
  • 67
  • +0/-0
Re: How to change designated junk folder value?
« Reply #3 on: April 24, 2025, 08:27:11 AM »
Thank you for the replies. I'll create symlinks for them.