Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

cannot create user preferences file /nonexistent/.sp

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
photographer
Posts: 13
Joined: Thu Jul 24, 2014 7:43 pm

cannot create user preferences file /nonexistent/.sp
  • Quote

Post by photographer » Sat Jul 26, 2014 8:57 pm

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

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

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

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

Post by rocky123xo » Sat Jan 03, 2015 3:36 am

Having the same issue...
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: cannot create user preferences file /nonexistent/.sp
  • Quote

Post by 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
Top

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

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

Post by donat » Fri Apr 15, 2016 8:59 am

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

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

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

Post by 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"
Top

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

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

Post by 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)
Top

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

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

Post by 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=<[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
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password