Bug report: transfer tool re-enables Spam Box

Arvy

Well-Known Member
Oct 3, 2006
139
10
168
Brazil
cPanel Access Level
Root Administrator
Twitter
I don't know where is the best place to report a small bug... so, let me know if there's a better place for this.

It's a small bug. When I use "Transfer Tool" to transfer an account from a server to another, it re-enables "Move New Spam to a Separate Folder (Spam Box)" that was disabled.

I have a low cost POP3-only server (Webmail and IMAP ports firewalled), so, Spam Box is not useful in this case. So, spams need to go to the Inbox folder, and users will download the messages marked as [SPAM] in the subject. When I move an account between servers, this option is re-enabled and messages go to the Spam folder, and if I forget to re-disable the option, I need to move the messages manually...
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
HI @Arvy

I'm not sure I'd consider this a bug at this point. When you create a new cPanel server, the following is enabled by default in WHM>>Server Configuration >> Tweak Settings ->
Enable Apache SpamAssassin™ Spam Box delivery for messages marked as spam (user configurable)

When the new account is moved over if this is enabled the setting would be automatically applied. If you disable this does the behavior persist?
 

Arvy

Well-Known Member
Oct 3, 2006
139
10
168
Brazil
cPanel Access Level
Root Administrator
Twitter
Hello @cPanelLauren,

I think this is a bug because it is, as mentioned, "user configurable", so, the flag is not related to the server configuration (globally), it's a user preference (the user wanted this, not the sysadmin). And the global config is more logic to be related to new accounts only. Other configs like Spam filter (pre-enabled or not) are not impacted.

Arvy
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
HI @Arvy

I understand what you're saying, but this being a global default to ON enables it on account creation. The user-configurable implies that they can disable it. When you put an account on a new server the default behavior globally is going to be enabled with that setting.

The presence of the touch file /home/$user/.spamassassinboxenable is what controls this.
 

Arvy

Well-Known Member
Oct 3, 2006
139
10
168
Brazil
cPanel Access Level
Root Administrator
Twitter
Hello @cPanelLauren,

ok, I understand your point of view, but this occurs only on "Spam Box". Other configs, outside the Spam-related area, are not affected and are configured per server too.

Anyway, I suggest check if this is by design, since other per-server configs are not affected.

Thanks
Arvy
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
I believe this one is specifically by-design as a result of CPANEL-33814 - Simplify Fetch of Remote Homedir where we changed the way this information is obtained to simplify moves to linked mail nodes (which use the transfer tool as well). The /home/$user/ directory is auto-populated based on server configuration and files which didn't exist (the user files) are then added with no overwriting performed.
 
  • Like
Reactions: Arvy