Page 1 of 1

cannot create user preferences file /nonexistent/.sp

Posted: Sat Jul 26, 2014 8:57 pm
by photographer
Hello,
У меня в конфиге
config: cannot create user preferences file /nonexistent/.spamassassin/user_prefs: No such file or directory

плиз, подскажите направление что исправлять :)

Re: cannot create user preferences file /nonexistent/.sp

Posted: Sat Jan 03, 2015 3:36 am
by rocky123xo
Having the same issue...

Re: cannot create user preferences file /nonexistent/.sp

Posted: Fri Mar 06, 2015 2:19 pm
by ScIT
Hello

Just if someone other does have the same issue:

Modify /etc/default/spamassassin

Code: Select all

OPTIONS="--create-prefs --max-children 5 --helper-home-dir"
to

Code: Select all

OPTIONS="--create-prefs --max-children 5 --helper-home-dir -u debian-spamd"
also create folder and set permission:

Code: Select all

mkdir -p /nonexistent/.spamassassin
chown debian-spamd: /nonexistent/.spamassassin
last but not least restart spamassassin

Code: Select all

service spamassassin restart
Regards
Raphael

Re: cannot create user preferences file /nonexistent/.sp

Posted: Fri Apr 15, 2016 8:59 am
by donat
having the same issue. Hope that your suggest now works.

Re: cannot create user preferences file /nonexistent/.sp

Posted: Thu May 05, 2016 8:01 pm
by oobydoo
Whats the setup for Centos to fix this error please

Do we just put

Code: Select all

OPTIONS="--create-prefs --max-children 5 --helper-home-dir -u centos-spamd"

Re: cannot create user preferences file /nonexistent/.sp

Posted: Fri Oct 07, 2016 9:44 am
by zdi
Basically the error are the permissions on: //.spamassassin/user_prefs

To fix it follow the next steps:

– Create the user spamd, in order to avoid to run spamassassin with the user nobody (ignore errors that folders exist):

Code: Select all

groupadd -g 1001 spamd
useradd -u 1001 -g spamd -s /sbin/nologin -d /var/lib/spamassassin spamd
mkdir /var/lib/spamassassin
chown spamd:spamd /var/lib/spamassassin

– Edit the file /etc/exim/exim.conf.

Code: Select all

nano /etc/exim/exim.conf

Change the line:
spam = nobody:true/defer_ok
to

Code: Select all

      spam           = spamd:true/defer_ok

– Restart exim and spamassassin

Code: Select all

service exim restart
service spamassassin restart

After awhile that verify that the files bayes_seen, bayes_toks and user_prefs exists on the spamd home (In this case /var/lib/spamassassin/.spamassassin)

Re: cannot create user preferences file /nonexistent/.sp

Posted: Wed Apr 26, 2017 12:14 pm
by youradds
Hi,

Is this still an issue with the latest VestaCP?

I get this, and no emails are getting through:

Code: Select all

Apr 26 12:09:56 admin spamd[19296]: spamd: connection from localhost [127.0.0.1]:43096 to port 783, fd 6
Apr 26 12:09:56 admin spamd[19296]: spamd: creating default_prefs: /nonexistent/.spamassassin/user_prefs
Apr 26 12:09:56 admin spamd[19296]: config: cannot create user preferences file /nonexistent/.spamassassin/user_prefs: No such file or directory
Apr 26 12:09:56 admin spamd[19296]: spamd: failed to create readable default_prefs: /nonexistent/.spamassassin/user_prefs
Apr 26 12:09:57 admin spamd[19296]: spamd: checking message <CALvgFssXtKrMiKDbzMKnhaYyCinJR5SqWYbmKc2gqDjc_8MYkA@mail.gmail.com> for nobody:111
Apr 26 12:09:57 admin spamd[19296]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create tmp lockfile /nonexistent/.spamassassin/bayes.lock.admin.chambresdhotesfrance.com.19296 for /nonexistent/.spamassassin/bayes.lock: No such file or directory
Apr 26 12:09:57 admin spamd[19296]: spamd: clean message (-0.2/5.0) for nobody:111 in 0.5 seconds, 11746 bytes.
Apr 26 12:09:57 admin spamd[19296]: spamd: result: . 0 - FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID,URIBL_BLOCKED scantime=0.5,size=11746,user=nobody,uid=111,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=43096,mid=<CALvgFssXtKrMiKDbzMKnhaYyCinJR5SqWYbmKc2gqDjc_8MYkA@mail.gmail.com>,autolearn=unavailable autolearn_force=no
I edited:

/usr/local/vesta/install/rhel/6/exim/exim.conf

(but there are 5 different exim files, so I'm not sure if that is the right one??)

I see this in the /var/log/exim4/rejectlog file:

Code: Select all

2017-04-26 12:08:50 H=(localhost) [113.166.168.88] F=<[email protected]> rejected RCPT <[email protected]>: Rejected because 113.166.168.88 is in a black list at zen.spamhaus.org
2017-04-26 12:10:06 dovecot_login authenticator failed for (User) [80.82.65.204]: 535 Incorrect authentication data ([email protected])
2017-04-26 12:14:42 H=([195.34.120.242]) [195.34.120.242] F=<[email protected]> rejected RCPT <[email protected]>: Rejected because 195.34.120.242 is in a black list at zen.spamhaus.org
2017-04-26 12:15:40 H=([195.34.120.242]) [195.34.120.242] F=<[email protected]> rejected RCPT <[email protected]>: Rejected because 195.34.120.242 is in a black list at zen.spamhaus.org
2017-04-26 12:16:51 H=([195.34.120.242]) [195.34.120.242] F=<[email protected]> rejected RCPT <[email protected]>: Rejected because 195.34.120.242 is in a black list at zen.spamhaus.org
2017-04-26 12:17:15 H=(styx.losttwys.bid) [23.95.232.47] F=<14993-13711-17955-1892-andy=chambresdhotesfrance.com@mail.losttwys.bid> rejected RCPT <[email protected]>: Rejected because 23.95.232.47 is in a black list at zen.spamhaus.org
...but in mainlog, I get:

Code: Select all

2017-04-26 12:15:41 unexpected disconnection while reading SMTP command from ([195.34.120.242]) [195.34.120.242]
2017-04-26 12:16:49 no host name found for IP address 195.34.120.242
2017-04-26 12:16:51 H=([195.34.120.242]) [195.34.120.242] F=<[email protected]> rejected RCPT <[email protected]>: Rejected because 195.34.120.242 is in a black list at zen.spamhaus.org
2017-04-26 12:16:51 unexpected disconnection while reading SMTP command from ([195.34.120.242]) [195.34.120.242]
2017-04-26 12:17:15 H=(styx.losttwys.bid) [23.95.232.47] F=<14993-13711-17955-1892-andy=chambresdhotesfrance.com@mail.losttwys.bid> rejected RCPT <[email protected]>: Rejected because 23.95.232.47 is in a black list at zen.spamhaus.org

Anu ideas?

Thanks

Andy