• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Strange message by spamd: handle_user (userdir) unable to find user: '[email protected]'

tkalfaoglu

Silver Pleskian
Server operating system version
Rocky Linux
Plesk version and microupdate number
Plesk Obsidian 18.0.64 Update #1
Hi. I start spamd with:

Code:
# ps aux|grep spamd
root     18819  0.0  0.1 212976 115348 ?       Ss   01:23   0:11 /usr/bin/perl -T -w /usr/bin/spamd --pidfile=/var/run/spamd.pid --create-prefs --daemonize --helper-home-dir=/var/qmail --max-children=5 --razor-home-dir=/var/lib/razor/ --razor-log-file=sys-syslog --username=popuser --user-config --virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin
popuser 30706 1.7 0.2 250508 132068 ? R 12:20 0:27 spamd child
popuser 51236 2.3 0.1 241156 124488 ? S 12:44 0:04 spamd child
popuser 54636 0.0 0.1 231764 110868 ? S 12:47 0:00 spamd child

but while it's running it keeps complaining:
spamd: handle_user (userdir) unable to find user: '[email protected]'

I check the /var/qmail/mailnames/domain.com/user/.spamassassin exists, and the owner/group are correct.

What am I doing wrong?
Many thanks, -turgut
 
Hi @tkalfaoglu,

Why are you starting the spamd service this way? I would recommend stop/kill this spamd process and start the SpamAssassin service via the Plesk > Tools & Settings > Server Management > Services Management & start/restart the SpamAssassin service from there.

Via the CLI you can use:
systemctl stop spamassassin.service <--- For Stopping the Service
systemctl start spamassassin.service <--- For Starting the Service
systemctl stop spamassassin.service <--- For Restarting the Service
systemctl status spamassassin.service <--- For Status Check

If you get any errors in the service, then please share the results of the journalctl -xeu spamassassin & systemctl status spamassassin.service -l commands.
 
Thanks for the feedback, yes when I let PLESK configure it, I got this:

Code:
SPAMDOPTIONS="--create-prefs --daemonize --helper-home-dir=/var/qmail --max-children=5 --nouser-config --razor-home-dir='/var/lib/razor/' --razor-log-file='sys-syslog' --username=popuser --virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin"

Which is working fine right now.

The only difference is the --nouser-config that PLESK used.

I wanted per-user configurations -- as some users WANT all their mail, including their spam. I suspect if we use the --nouser-config, the per-user settings would stop working.
 
Hi @tkalfaoglu,

Why are you starting the spamd service this way? I would recommend stop/kill this spamd process and start the SpamAssassin service via the Plesk > Tools & Settings > Server Management > Services Management & start/restart the SpamAssassin service from there.
Via the CLI you can use: (....)
If you get any errors in the service, then please share the results of the journalctl -xeu spamassassin & systemctl status spamassassin.service -l commands.
Yes of course I know all about that, and that's how I start and stop that service and that's how I would look for troubles if it failed to start. But I also know ps aux command and wanted to share with all of you, so you know which parameters are passed to spamd..
 
Back
Top