Home > Cannot Write > Cannot Write To Nonexistent Spamassassin User_prefs

Cannot Write To Nonexistent Spamassassin User_prefs

Evidently the Mail community needs a variation of Greenspun’s Tenth Rule Of Programming: “Any sufficiently advanced MTA program contains an ad-hoc, informally-specified reimplementation of sendmail’s configuration system” Posted by Tomáš Pospíšek I keep a .spamassassin in my >home directory with a whitelist, userprefs, and bayes files. Exim4 has got to the exact same point by now: Debian’s variant of Exim4 has dozens of interdependent config files, partially created from templates and being rebuild by generators with half-standardized One recommendation I found was to change the user for > > spamd from nobody to spamd, and create that user for just this > > purpose. this contact form

does just that, point spamd to the specified > directory for its AWL files and bayes_* files. > > seems to work for me, though that -D sure puts up lots Maybe I should have upgraded to postfix from exim3 instead. This seems fine, but I don't like to migrate too far from default configs. A hozzászóláshoz belépés szükséges permalink ( ace | 2006. https://lists.debian.org/debian-user/2007/01/msg03725.html

You Get 10% Monthly Commission!INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php System Administrator 2003-06-26 15:17:57 UTC PermalinkRaw Message My question is more regarding the "/nonexistent" part of the path. At least this [bug] took about 5 minutes to find.. rész Népszerű témák Apple Bejelentés Bug Debian Egyéb FreeBSD Hardver Hirdetés Internet Játék Kernel Linux Microsoft, Windows Mozilla NetBSD OpenBSD Open Source PDA, Mobil, Tablet Red Hat, Fedora Sun Microsystems Szerszám I've also looked in theconfiguration file for compile time options, but I'm not seeing anyreference to "user_prefs"What am I missing?It wants to create the file.

Logo and hup.hu content copyright © 2000-2016 by Gabor Micsko All trademarks and copyrights on this page are owned by their respective owners. and I'm a total SA newb, so take it with a grain of salt. [Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index] Re: spamassassin running as 'nobody' causes problems To: [email protected] Subject: Re: spamassassin running as 'nobody' causes problems From: Andrew Sackville-West OPTIONS="--create-prefs --max-children 5 --helper-home-dir /var/spool/spamassassin/" ....

A Attachment: signature.asc Description: Digital signature Reply to: debian-user@lists.debian.org Andrew Sackville-West (on-list) Andrew Sackville-West (off-list) References: Re: spamassassin running as 'nobody' causes problems From: Brian Hostetler Prev by Date: Mouse So you have a couple of options. 1) move your SA calls to some local-user-initiated setup such a procmail or whatever. Top ScIT Posts: 56 Joined: Mon Feb 23, 2015 4:13 pm Re: cannot create user preferences file /nonexistent/.sp Quote Postby ScIT » Fri Mar 06, 2015 2:19 pm HelloJust if someone his comment is here Ss 19:27 0:00 > /usr/sbin/spamd --create-prefs --max-children 5 --helper-home-dir -u > spamd -d --pidfile=/var/run/spamd/spamd.pid > 102 32647 2.5 5.1 30720 26752 ?

SA also uses the "--create-prefs" option (see above OPTION line) which tells spamd to create the user's preference files in $HOME/.spamassassin/ but there is no $HOME for 'nobody'. Hope that your suggest now works. Offline Pages: 1 Index »Networking, Server, and Protection »[spamassassin] failure on writing his own files Board footer Jump to Newbie Corner Installation Kernel & Hardware Applications & Desktop Environments Laptop Issues Topics: Active | Unanswered Index »Networking, Server, and Protection »[spamassassin] failure on writing his own files Pages: 1 #1 2012-11-22 13:00:56 effraie Member Registered: 2012-08-30 Posts: 20 [spamassassin] failure on writing

oh, I also setup the bayes_path in /etc/spamassassin/local.cf as # location for bayes filter database files # setup 1/2907 ASW, per spamassassin wiki bayes_path /srv/Mail/spamassassin/bayes There are surely multiple ways to useful source sendmail calles SA as root, SA says "no can't be root" and forks a child with uid 'nobody'. Perhaps you want to run spamd with -x? -- Randomly Generated Tagline: "> I'm an idiot.. In this case spamd will always run as that user and the preferences will get stored in /home/spamd/.spamassassin...

Apr 5 00:31:00 vestaserver01 spamd[1353]: spamd: result: . 0 - ALL_TRUSTED,HTML_MESSAGE scantime=0.2,size=3138,user=nobody,uid=999,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=37022,mid=<[email protected]>,autolearn=unavailable 1234567891011 more /var/log/maillogApr5 00:31:00 vestaserver01 spamd[1353]: spamd: connection from localhost [127.0.0.1] at port 37022Apr5 00:31:00 vestaserver01 spamd[1353]: spamd: setuid weblink Having spamd's homedirpoint to /var/spool/spamassassin with ~/.spamassassin under it and user_prefsthere is one way. Renato Ricci Reply Vsha 2016-05-05 at 13:08 Its Works for me Reply Gandalf_MTB 2016-09-08 at 21:56 Thanks!… It work for me, even when I doubt about it, because it never show AWL and Bayes DBs could go there as well.--(Mr.) Hannu Liljemark | Appelsiini Finland Oy |http://appelsiini.com-------------------------------------------------------This SF.Net email is sponsored by: INetUAttention Web Developers & Consultants: Become An INetU Hosting Partner.Refer

For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # Do not forget to execute "postfix reload" after editing this file. I do want individual users to be able fine tune Spamassassin for their needs but I also want the main bulk of spam rejected at the SMTP connection. You Get 10% Monthly Commission!INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php_______________________________________________Spamassassin-talk mailing listSpamassassin-***@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/spamassassin-talk-------------------------------------------------------This SF.Net email is sponsored by: INetUAttention Web Developers & Consultants: Become An INetU Hosting Partner.Refer Dedicated Servers. navigate here S 19:27 0:11 > spamd child > 102 32648 0.0 4.5 28576 23348 ?

I've also looked in theconfiguration file for compile time options, but I'm not seeing anyreference to "user_prefs"What am I missing?THanks,David-------------------------------------------------------This SF.Net email is sponsored by: INetUAttention Web Developers & Consultants: Become This causes a problem as it tries to update the AWL and bayes database files in its $HOME with is nonexistent. Thanks!

HOMEに書き込めないユーザで間違ってspamassassinを起動してしまった場合 May 27 02:21:20 localhost spamd[3214]: spamd: creating default_prefs: /nonexistent/.spamassassin/user_prefs May 27 02:21:20 localhost spamd[3214]: mkdir /nonexistent: Permission denied at /usr/share/perl5/Mail/SpamAssassin.pm line 1530 May 27 02:21:20 localhost spamd[3214]: config: cannot write

It’s a pain. This is the solution I settled on. Get help Password recovery Recover your password your email A password will be e-mailed to you. Shell vi /etc/exim/exim.conf 1 vi /etc/exim/exim.conf Change the line: Shell spam = nobody:true/defer_ok 1 spam = nobody:true/defer_ok to Shell spam = spamd:true/defer_ok 1 spam = spamd:true/defer_ok - Restart exim an spamassassin

rész BSD IV. Any other suggestions? and apparently, the auto-whitelist is handled by the parent spamd which is running as root. his comment is here rész BSD III.

How about creating it? Top oobydoo Posts: 9 Joined: Thu Jan 14, 2016 2:10 pm Re: cannot create user preferences file /nonexistent/.sp Quote Postby oobydoo » Thu May 05, 2016 8:01 pm Whats the setup A couple tweaks in exim4.conf and its rolling along. I've alsolooked in thePost by DMconfiguration file for compile time options, but I'm not seeing anyreference to "user_prefs"What am I missing?It wants to create the file.

One recommendation I found was to change the user for spamd from nobody to spamd, and create that user for just this purpose. On Tue, Jan 30, 2007 at 08:40:59AM -0800, Brian Hostetler wrote: > > > > On Mon, Jan 29, 2007 at 05:06:18PM -0800, Andrew > Sackville-West wrote: > > /var/log/mail.log > But I'm getting these messages in /var/log/mail.log Jan 29 10:32:36 bigmomma spamd[32442]: spamd: connection from bigmomma [127.0.0.1] at port 41420 Jan 29 10:32:36 bigmomma spamd[32442]: spamd: setuid to nobody succeeded Jan is this new user, spamd, the way to go or should I be tweaking some other conf to make this work.

See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # #maildrop unix - n n - - pipe # flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} # # ==================================================================== Thus, as suggested in the posting above I did create a special spamd user: adduser --disabled-password spamd which is not used for running spamd.

Back to Top