Legitimate mail lands in the Junk folder
Messages from senders you trust go to the Junk folder. Rspamd scores each incoming message, messages at or above the domain's Junk score go to Junk, and moving them out trains Rspamd.
Symptoms
Messages from known senders appear in Junk. The message headers show the score.
X-Spam-Status: No, score=5.30
X-Spamd-Result: default: False [5.30 / 15.00];
HFILTER_FROMHOST_NORES_A_OR_MX(1.50)[greytest-notes.example];
MISSING_DATE(1.00)[];
AUTH_NA(1.00)[];The rest of X-Spamd-Result lists the rules that added to the score and how many points each contributed.
Cause
Rspamd scores every incoming message. A message at or above the Junk score goes to Junk. A message at or above the reject score is refused. The default Junk score is 6, and the default reject score is 15.
Resolution
Read the rules in the
X-Spamd-Resultheader of the message that went to Junk.Move the message out of Junk in your mail client or in webmail. Each move out of Junk leaves a copy. Every 5 minutes, UrbeStack uses those copies to teach Rspamd to recognize the messages as legitimate. Moving a message into Junk teaches Rspamd to recognize it as spam.
To file less mail in Junk for one domain, raise its Junk score.
urbestack-mail-domain-set --name example.com --junk-score 8To raise the Junk score for every domain without a score of its own, change the default.
urbestack-setting-set --key mail.spam_junk_score --value 8