nethubonline
Regular Pleskian
Username:
TITLE
plesk repair mail <domain|mailbox> writes required_score 0.0 to user_prefs of mailboxes with spam filter off; enabling the filter afterwards marks all mail as spam
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.82.4
AlmaLinux 10.2 x86_64
PROBLEM DESCRIPTION
For a mailbox whose spam filter is switched off, plesk repair mail <domain> and plesk repair mail <mailbox> rewrite ~/.spamassassin/user_prefs to required_score 0.0.
A server-wide plesk repair mail does not; it writes the stored value, required_score 7.0.
When the spam filter is later enabled for that mailbox with plesk bin spamassassin --update <mailbox> -status true, user_prefs is not regenerated. SpamAssassin then uses a threshold of 0.0, and practically every incoming message is tagged as spam, or moved to the Spam folder if the action is "move". Meanwhile plesk bin spamassassin --info still reports a score of 7, so the problem is not visible in Plesk GUI.
STEPS TO REPRODUCE
ACTUAL RESULT
EXPECTED RESULT
ANY ADDITIONAL INFORMATION
A server-wide plesk repair mail -y writes the correct values (required_score 7.0 and rewrite_header) for the same mailbox while the filter is off. Only the domain-level and mailbox-level repair produce 0.0.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
plesk repair mail <domain|mailbox> writes required_score 0.0 to user_prefs of mailboxes with spam filter off; enabling the filter afterwards marks all mail as spam
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.82.4
AlmaLinux 10.2 x86_64
PROBLEM DESCRIPTION
For a mailbox whose spam filter is switched off, plesk repair mail <domain> and plesk repair mail <mailbox> rewrite ~/.spamassassin/user_prefs to required_score 0.0.
A server-wide plesk repair mail does not; it writes the stored value, required_score 7.0.
When the spam filter is later enabled for that mailbox with plesk bin spamassassin --update <mailbox> -status true, user_prefs is not regenerated. SpamAssassin then uses a threshold of 0.0, and practically every incoming message is tagged as spam, or moved to the Spam folder if the action is "move". Meanwhile plesk bin spamassassin --info still reports a score of 7, so the problem is not visible in Plesk GUI.
STEPS TO REPRODUCE
- Mailbox [email protected] has its spam filter off, with an individual score of 7:
plesk bin spamassassin --update [email protected] -status false -hits 7
user_prefs contains required_score 7.0.
- Run plesk repair mail example.com -y or plesk repair mail [email protected] -y.
- Check /var/qmail/mailnames/example.com/test/.spamassassin/user_prefs.
- Run plesk bin spamassassin --update [email protected] -status true.
- Check user_prefs again, then send a normal message to [email protected].
- Run plesk bin spamassassin --info [email protected].
ACTUAL RESULT
- Step 3: user_prefs contains only required_score 0.0. The rewrite_header line is removed. A disabled spam recipient handler is added to /var/lib/plesk/mail/handlers/handlers.db.
- Step 5: user_prefs still contains required_score 0.0. The normal message is tagged as spam:
X-Spam-Status: Yes, score=1.0 required=0.0 tests=KAM_DMARC_STATUS,NO_RELAYS
Subject: *****SPAM***** ...
- Step 6: Plesk still reports "The score that a message must receive to qualify as spam: 7", so the problem is not visible in the Plesk UI or CLI.
EXPECTED RESULT
- In step 3, user_prefs keeps the stored individual settings (required_score 7.0, rewrite_header subject ***SPAM***), as a server-wide plesk repair mail does. If not, it is left unchanged.
- In step 4, enabling the filter regenerates user_prefs from the stored settings.
- In step 5, a normal message is not tagged as spam.
ANY ADDITIONAL INFORMATION
A server-wide plesk repair mail -y writes the correct values (required_score 7.0 and rewrite_header) for the same mailbox while the filter is off. Only the domain-level and mailbox-level repair produce 0.0.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug