We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
cannot create user preferences file /nonexistent/.sp
-
- Posts: 13
- Joined: Thu Jul 24, 2014 7:43 pm
cannot create user preferences file /nonexistent/.sp
Hello,
У меня в конфиге
config: cannot create user preferences file /nonexistent/.spamassassin/user_prefs: No such file or directory
плиз, подскажите направление что исправлять :)
У меня в конфиге
config: cannot create user preferences file /nonexistent/.spamassassin/user_prefs: No such file or directory
плиз, подскажите направление что исправлять :)
-
- Posts: 28
- Joined: Wed Aug 20, 2014 9:53 pm
Re: cannot create user preferences file /nonexistent/.sp
Having the same issue...
Re: cannot create user preferences file /nonexistent/.sp
Hello
Just if someone other does have the same issue:
Modify /etc/default/spamassassin
to
also create folder and set permission:
last but not least restart spamassassin
Regards
Raphael
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"
Code: Select all
OPTIONS="--create-prefs --max-children 5 --helper-home-dir -u debian-spamd"
Code: Select all
mkdir -p /nonexistent/.spamassassin
chown debian-spamd: /nonexistent/.spamassassin
Code: Select all
service spamassassin restart
Raphael
Re: cannot create user preferences file /nonexistent/.sp
having the same issue. Hope that your suggest now works.
Re: cannot create user preferences file /nonexistent/.sp
Whats the setup for Centos to fix this error please
Do we just put
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
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):
– Edit the file /etc/exim/exim.conf.
Change the line:
spam = nobody:true/defer_ok
to
– Restart exim and spamassassin
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)
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
Hi,
Is this still an issue with the latest VestaCP?
I get this, and no emails are getting through:
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:
...but in mainlog, I get:
Anu ideas?
Thanks
Andy
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
/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
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