(Jan 22) Release 0.9.8-19 with bug fixes available now. Run this command for update v-update-sys-vesta-all

cannot create user preferences file /nonexistent/.sp

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Forum rules
Before creating a new topic or reply on the forum you should fill out additional fields "Os" and "Web" in your profile section.
In case of violation, the topic can be closed or response from the support will not be received.
photographer
Posts: 13
Joined: Thu Jul 24, 2014 7:43 pm

cannot create user preferences file /nonexistent/.sp

Postby photographer » Sat Jul 26, 2014 8:57 pm

Hello,
У меня в конфиге
config: cannot create user preferences file /nonexistent/.spamassassin/user_prefs: No such file or directory

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

rocky123xo
Posts: 28
Joined: Wed Aug 20, 2014 9:53 pm

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

Postby rocky123xo » Sat Jan 03, 2015 3:36 am

Having the same issue...

ScIT
Posts: 334
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 16x
Web: apache + nginx

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

Postby ScIT » Fri Mar 06, 2015 2:19 pm

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

donat
Posts: 23
Joined: Thu Jul 30, 2015 1:42 pm

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

Postby donat » Fri Apr 15, 2016 8:59 am

having the same issue. Hope that your suggest now works.

oobydoo
Posts: 9
Joined: Thu Jan 14, 2016 2:10 pm

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

Postby oobydoo » Thu May 05, 2016 8:01 pm

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"

zdi
Posts: 6
Joined: Fri May 06, 2016 5:34 pm

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

Postby zdi » Fri Oct 07, 2016 9:44 am

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)

youradds
Posts: 75
Joined: Tue Sep 01, 2015 10:16 am

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

Postby youradds » Wed Apr 26, 2017 12:14 pm

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=<Holcomb121@greenbar.org> rejected RCPT <andy@chambresdhotesfrance.com>: 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 (set_id=support@admin.chambresdhotesfrance.com)
2017-04-26 12:14:42 H=([195.34.120.242]) [195.34.120.242] F=<c005@tivanbiotech.com> rejected RCPT <andy@chambresdhotesfrance.com>: 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=<b220@titus2.com> rejected RCPT <andy@chambresdhotesfrance.com>: 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=<a535@tixian.com> rejected RCPT <andy@chambresdhotesfrance.com>: 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 <andy@chambresdhotesfrance.com>: 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=<a535@tixian.com> rejected RCPT <andy@chambresdhotesfrance.com>: 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 <andy@chambresdhotesfrance.com>: Rejected because 23.95.232.47 is in a black list at zen.spamhaus.org



Anu ideas?

Thanks

Andy


Return to “Mail Server”



Who is online

Users browsing this forum: Google [Bot] and 3 guests