Control Web Panel

WebPanel => E-Mail => Topic started by: setecabanas on May 15, 2025, 05:28:23 PM

Title: Spamassassin Error: cannot create user preferences file //.spamassassin/user_pre
Post by: setecabanas on May 15, 2025, 05:28:23 PM
May 15 18:52:11 s2.server.com spamd[14714]: prefork: child states: II
May 15 18:52:12 s2.server.com spamd[14716]: spamd: connection from localhost [::1]:36216 to port 783, fd 6
May 15 18:52:12 s2.server.com spamd[14716]: spamd: setuid to nobody succeeded
May 15 18:52:12 s2.server.com spamd[14716]: spamd: creating default_prefs: //.spamassassin/user_prefs
May 15 18:52:12 s2.server.com spamd[14716]: config: cannot create user preferences file //.spamassassin/user_prefs: No such file or directory
May 15 18:52:12 s2.server.com spamd[14716]: spamd: failed to create readable default_prefs: //.spamassassin/user_prefs
May 15 18:52:12 s2.server.com spamd[14716]: spamd: processing message <20250515165211.76CEA48265@documentos09i.spinazulficabemmelhor.sbs> for nobody:99
May 15 18:52:14 s2.server.com spamd[14716]: spamd: identified spam (6.2/5.0) for nobody:99 in 1.9 seconds, 2795 bytes.
May 15 18:52:14 s2.server.com spamd[14716]: spamd: result: Y 6 - DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,MPART_ALT_DIFF,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_MSPIKE_H2,RCVD_IN_PSBL,RCVD_IN_VALIDITY_RPB...
May 15 18:52:14 s2.server.com spamd[14714]: prefork: child states: II
Hint: Some lines were ellipsized, use -l to show in full.

any idea to fix this error?
Title: Re: Spamassassin Error: cannot create user preferences file //.spamassassin/user_pre
Post by: Starburst on May 15, 2025, 05:39:53 PM
Could you please advise of the following:

What distro are you are you running CWP on?

CWP Free or CWPpro?

Public or NAT?
Title: Re: Spamassassin Error: cannot create user preferences file //.spamassassin/user_pre
Post by: setecabanas on May 15, 2025, 05:42:16 PM
umm sorry

centos 7
CWPPro
public
Title: Re: Spamassassin Error: cannot create user preferences file //.spamassassin/user_pre
Post by: Starburst on May 15, 2025, 05:52:09 PM
CentOS 7, which has been said several times here, is way past EOL and there is no longer support for it.

Program repos have stopped working with that version long ago, some of which have been removed.
RH has archived CentOS 7.

To do updates or have some options working, you will need to update to at least EL8 or EL9, now that EL10 has been release.

AlmaLinux 8.x is the current suggestion OS.
Title: Re: Spamassassin Error: cannot create user preferences file //.spamassassin/user_pre
Post by: overseer on May 15, 2025, 05:56:33 PM
That said, your server will continue to function, but yes -- best to migrate to AlmaLinux 8 and then work toward upgrading to EL9.
Meanwhile, each user on your server should have a SpamAssassin user_prefs directory. Do you see that when you run:
Code: [Select]
ls -l /home/*/.spamassassin/user_prefsPer-user prefs are based on these templates:
Code: [Select]
/usr/share/spamassassin/user_prefs.template
/var/lib/spamassassin/3.004000/updates_spamassassin_org/user_prefs.template
Title: Re: Spamassassin Error: cannot create user preferences file //.spamassassin/user_pre
Post by: setecabanas on May 15, 2025, 06:14:21 PM
thanks

only 2 user have created this directory
iŽll try to create in all users
Title: Re: Spamassassin Error: cannot create user preferences file //.spamassassin/user_pre
Post by: Netino on May 15, 2025, 11:29:52 PM
Run these commands:

Code: [Select]
# ls -alF /var/lib/spamassassin
Code: [Select]
# grep spamassassin /etc/postfix/master.cf | grep pipe | sed -r 's/^spamassassin.*pipe user=(\S+).*/\1/'
and post here.

Regards,
Netino