Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81596 - dspam --enable-homedir configure option
Summary: dspam --enable-homedir configure option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Lim Swee Tat (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-11 03:01 UTC by Sergei
Modified: 2005-11-05 20:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds a USE flag to make explicit the enable-homedirs configuration. (dspam_user_homedirs.patch,1.97 KB, patch)
2005-08-22 09:48 UTC, Tim Finer
Details | Diff
Checks to make sure enable-homedirs is not set. (dspam-web_user_homedirs.patch,936 bytes, patch)
2005-08-22 09:51 UTC, Tim Finer
Details | Diff
Oops, forgot to redirect grep output to /dev/null. (dspam-web_user_homedirs.patch,949 bytes, patch)
2005-08-22 10:03 UTC, Tim Finer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei 2005-02-11 03:01:51 UTC
I've found that my dspam trying to create and use ~/.dspam(but cant while ran from dspam uid from mailer) when virtual user name have corresponding passwd entry.
I propose to not enable homedir with --enable-virtual-users (with USE=mysql or pgsql).

Reproducible: Always
Steps to Reproduce:
1. less /var/log/dspam.debug
2.
3.
Comment 1 Lionel Bouton 2005-02-14 13:23:43 UTC
Regardless of the backend, dspam-web is useless (as it can't find the quarantine) if --enable-homedir is used.
Comment 2 toon 2005-03-13 03:41:19 UTC
Just wanted to confirm on this one.
I couldn't get dspam to work, until I read this bug report.
Dspam didn't create /var/spool/dspam/local/<user>/<user>.* files.
I commented out the line 'myconf="${myconf} --enable-homedir"' in dspam-3.4_rc2.ebuild and remerged dspam.
Now it DOES create the files. Wow!

I am using MySQL as backend database.
Comment 3 Lim Swee Tat (RETIRED) gentoo-dev 2005-03-14 07:01:21 UTC
Hi,
  I'll look into this.  Thanx for the info, :)

Regards
Lim Swee Tat
Comment 4 Mike Nerone 2005-03-21 01:05:45 UTC
Part of a patch at bug #86099.
Comment 5 Tim Finer 2005-06-30 11:05:22 UTC
The ebuild makes an incorrect assumption that if virtual-users is not set, then
homedirs must be.  It is possible to have both configure items as false.  You
have real users in /etc/passwd, and there is a central location for all your per
user dspam statistics.

I think what the original author if the ebuild was trying to capture was that
you can't have homedirs if you have virtual users.

This is why the original configure script has these two items as separate flags.

The biggest reason not to use homedirs is that it makes the CGI useless.  In
fact, the dspam-web ebuild ought to fail to emerge if homedirs is set.  I
propose a new use flag to reflect that, although I'm ignorant of the whole
ebuild process (everybody's a user sometimes, heh).
Comment 6 Tim Finer 2005-08-22 09:48:02 UTC
Created attachment 66563 [details, diff]
Adds a USE flag to make explicit the enable-homedirs configuration.
Comment 7 Tim Finer 2005-08-22 09:51:05 UTC
Created attachment 66564 [details, diff]
Checks to make sure enable-homedirs is not set.
Comment 8 Tim Finer 2005-08-22 09:54:15 UTC
Comment on attachment 66563 [details, diff]
Adds a USE flag to make explicit the enable-homedirs configuration.

This fixes the problem by adding a USE flag user-homedirs.  Virtual users and
user homedirs are not exclusively OR - it is the norm on a lot of installations
that they are both false.  Indeed, that is the default configure script
behavior.  Check the DSPAM README for details about both flags.
Comment 9 Tim Finer 2005-08-22 09:55:34 UTC
Comment on attachment 66564 [details, diff]
Checks to make sure enable-homedirs is not set.

This is for dspam-web.	If user_homedirs is set, then dspam-web will not
install and the user is told why.  It also checks the dspam binary to ensure
that it is NOT configured with --enable-homedirs.
Comment 10 Tim Finer 2005-08-22 10:03:24 UTC
Created attachment 66568 [details, diff]
Oops, forgot to redirect grep output to /dev/null.
Comment 11 Chris Carlin 2005-09-14 04:39:47 UTC
Confirming the --enable-homedir thing in dspam-3.4.9 

Removed the config parameter and everything began magically working after hours
and hours of poking at permissions, scripts, and all sorts of voodoo.
Comment 12 Chris Carlin 2005-09-14 04:43:45 UTC
Confirming the --enable-homedir thing in dspam-3.4.9 

Removed the config parameter and everything began magically working after hours
and hours of poking at permissions, scripts, and all sorts of voodoo.
Comment 13 Tim Finer 2005-10-20 18:02:29 UTC
Bump.  This is still a problem in 3.6.  Was there something wrong with the
patches I uploaded?  This bug is still open.  The 3.6.0 ebuild makes an
incorrect assumption at line 90:

use virtual-users || myconf="${myconf} --enable-homedir"

Those two dspam config options do not have an exclusive OR relationship.  Like I
mentioned before, the default configure for dspam has both off (which is
probably the most likely case).

Further dspam-web DOES NOT WORK with --enable-homedir, from the README:

"     --enable-homedir
     When enabled, instead of checking for $HOME/$USER/opt-in/
     $USER[.dspam|.nodspam], DSPAM will check for a .dspam|.nodspam file in the
     user's home directory. DSPAM will also store each user's data in ~/.dspam
     when this option is enabled. Because of this, DSPAM will automatically 
     install and run setuid root so that it can read each user's home directory.

     Note:

       This function is incompatible with most implementations of the Web UI, 
       since it requires access to read each user's home directory. Therefore, 
       only use this option if you will not be using the Web UI or plan on 
       doing something asinine like running it as root."

Could I please get the patches put in to the official ebuild or an explanation
why the patch doesn't work, etc?

BTW, thanks for making an ebuild of dspam, I really appreciate it.
Comment 14 Lim Swee Tat (RETIRED) gentoo-dev 2005-11-05 20:43:17 UTC
Fixing in CVS. :) Sorry for the tardiness.