First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 81596
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Lim Swee Tat (RETIRED) <st_lim@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sergei <jartashi@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
dspam_user_homedirs.patch Adds a USE flag to make explicit the enable-homedirs configuration. patch Tim Finer 2005-08-22 09:48 0000 1.97 KB Details | Diff
dspam-web_user_homedirs.patch Checks to make sure enable-homedirs is not set. patch Tim Finer 2005-08-22 09:51 0000 936 bytes Details | Diff
dspam-web_user_homedirs.patch Oops, forgot to redirect grep output to /dev/null. patch Tim Finer 2005-08-22 10:03 0000 949 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 81596 depends on: Show dependency tree
Show dependency graph
Bug 81596 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-02-11 03:01 0000
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 From Lionel Bouton 2005-02-14 13:23:43 0000 -------
Regardless of the backend, dspam-web is useless (as it can't find the
quarantine) if --enable-homedir is used.

------- Comment #2 From toon 2005-03-13 03:41:19 0000 -------
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 From Lim Swee Tat (RETIRED) 2005-03-14 07:01:21 0000 -------
Hi,
  I'll look into this.  Thanx for the info, :)

Regards
Lim Swee Tat

------- Comment #4 From Mike Nerone 2005-03-21 01:05:45 0000 -------
Part of a patch at bug #86099.

------- Comment #5 From Tim Finer 2005-06-30 11:05:22 0000 -------
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 From Tim Finer 2005-08-22 09:48:02 0000 -------
Created an attachment (id=66563) [edit]
Adds a USE flag to make explicit the enable-homedirs configuration.

------- Comment #7 From Tim Finer 2005-08-22 09:51:05 0000 -------
Created an attachment (id=66564) [edit]
Checks to make sure enable-homedirs is not set.

------- Comment #8 From Tim Finer 2005-08-22 09:54:15 0000 -------
(From update of attachment 66563 [edit])
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 From Tim Finer 2005-08-22 09:55:34 0000 -------
(From update of attachment 66564 [edit])
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 From Tim Finer 2005-08-22 10:03:24 0000 -------
Created an attachment (id=66568) [edit]
Oops, forgot to redirect grep output to /dev/null.

------- Comment #11 From Chris Carlin 2005-09-14 04:39:47 0000 -------
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 From Chris Carlin 2005-09-14 04:43:45 0000 -------
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 From Tim Finer 2005-10-20 18:02:29 0000 -------
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 From Lim Swee Tat (RETIRED) 2005-11-05 20:43:17 0000 -------
Fixing in CVS. :) Sorry for the tardiness.

First Last Prev Next    No search results available      Search page      Enter new bug