<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>81596</bug_id>
          
          <creation_ts>2005-02-11 03:01 0000</creation_ts>
          <short_desc>dspam --enable-homedir configure option</short_desc>
          <delta_ts>2005-11-05 20:43:17 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jartashi@gmail.com</reporter>
          <assigned_to>st_lim@gentoo.org</assigned_to>
          <cc>net-mail@gentoo.org</cc>
    
    <cc>volkris@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>jartashi@gmail.com</who>
            <bug_when>2005-02-11 03:01:51 0000</bug_when>
            <thetext>I&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lionel-dev@bouton.name</who>
            <bug_when>2005-02-14 13:23:43 0000</bug_when>
            <thetext>Regardless of the backend, dspam-web is useless (as it can&apos;t find the quarantine) if --enable-homedir is used.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>toon@hout.vanvergehaald.nl</who>
            <bug_when>2005-03-13 03:41:19 0000</bug_when>
            <thetext>Just wanted to confirm on this one.
I couldn&apos;t get dspam to work, until I read this bug report.
Dspam didn&apos;t create /var/spool/dspam/local/&lt;user&gt;/&lt;user&gt;.* files.
I commented out the line &apos;myconf=&quot;${myconf} --enable-homedir&quot;&apos; in dspam-3.4_rc2.ebuild and remerged dspam.
Now it DOES create the files. Wow!

I am using MySQL as backend database.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>st_lim@gentoo.org</who>
            <bug_when>2005-03-14 07:01:21 0000</bug_when>
            <thetext>Hi,
  I&apos;ll look into this.  Thanx for the info, :)

Regards
Lim Swee Tat</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mike@nerone.org</who>
            <bug_when>2005-03-21 01:05:45 0000</bug_when>
            <thetext>Part of a patch at bug #86099.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tfiner@cox.net</who>
            <bug_when>2005-06-30 11:05:22 0000</bug_when>
            <thetext>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&apos;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&apos;m ignorant of the whole
ebuild process (everybody&apos;s a user sometimes, heh).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tfiner@cox.net</who>
            <bug_when>2005-08-22 09:48:02 0000</bug_when>
            <thetext>Created an attachment (id=66563)
Adds a USE flag to make explicit the enable-homedirs configuration.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tfiner@cox.net</who>
            <bug_when>2005-08-22 09:51:05 0000</bug_when>
            <thetext>Created an attachment (id=66564)
Checks to make sure enable-homedirs is not set.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tfiner@cox.net</who>
            <bug_when>2005-08-22 09:54:15 0000</bug_when>
            <thetext>(From update of attachment 66563)
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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tfiner@cox.net</who>
            <bug_when>2005-08-22 09:55:34 0000</bug_when>
            <thetext>(From update of attachment 66564)
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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tfiner@cox.net</who>
            <bug_when>2005-08-22 10:03:24 0000</bug_when>
            <thetext>Created an attachment (id=66568)
Oops, forgot to redirect grep output to /dev/null.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>volkris@gmail.com</who>
            <bug_when>2005-09-14 04:39:47 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>volkris@gmail.com</who>
            <bug_when>2005-09-14 04:43:45 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tfiner@cox.net</who>
            <bug_when>2005-10-20 18:02:29 0000</bug_when>
            <thetext>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=&quot;${myconf} --enable-homedir&quot;

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:

&quot;     --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&apos;s home directory. DSPAM will also store each user&apos;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&apos;s home directory.

     Note:

       This function is incompatible with most implementations of the Web UI, 
       since it requires access to read each user&apos;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.&quot;

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

BTW, thanks for making an ebuild of dspam, I really appreciate it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>st_lim@gentoo.org</who>
            <bug_when>2005-11-05 20:43:17 0000</bug_when>
            <thetext>Fixing in CVS. :) Sorry for the tardiness.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>66563</attachid>
            <date>2005-08-22 09:48 0000</date>
            <desc>Adds a USE flag to make explicit the enable-homedirs configuration.</desc>
            <filename>dspam_user_homedirs.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9tYWlsLWZpbHRlci9kc3BhbS9kc3BhbS0zLjQuOS5lYnVpbGQJMjAw
NS0wOC0wOCAwMDoyMzoyMi4wMDAwMDAwMDAgLTA3MDAKKysrIGRzcGFtLTMuNC45LmVidWlsZAky
MDA1LTA4LTIyIDA5OjM1OjI0LjAwMDAwMDAwMCAtMDcwMApAQCAtMTAsNyArMTAsNyBAQAogSE9N
RVBBR0U9Imh0dHA6Ly9kc3BhbS5udWNsZWFyZWxlcGhhbnQuY29tLyIKIExJQ0VOU0U9IkdQTC0y
IgogCi1JVVNFPSJjeXJ1cyBkZWJ1ZyBleGltIG15c3FsIG1haWxkcm9wIG5ldXJhbCBvY2k4IHBv
c3RncmVzIHByb2NtYWlsIHNxbGl0ZSBzcWxpdGUzIGxhcmdlLWRvbWFpbiB2aXJ0dWFsLXVzZXJz
IgorSVVTRT0iY3lydXMgZGVid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gb3B0aW9uYWw6IGV2ZW4gTU9SRSBkZWJ1Z2dpbmcgb3V0cHV0LCB1c2Ug
d2l0aCBleHRyZW1lIGNhdXRpb24hCg==
</data>        

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>66564</attachid>
            <date>2005-08-22 09:51 0000</date>
            <desc>Checks to make sure enable-homedirs is not set.</desc>
            <filename>dspam-web_user_homedirs.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS93d3ctYXBwcy9kc3BhbS13ZWIvZHNwYW0td2ViLTMuNC4yLmVidWls
ZAkyMDA1LTA3LTA5IDA4OjM1OjU4LjAwMDAwMDAwMCAtMDcwMAorKysgZHNwYW0td2ViLTMuNC4y
LmVidWlsZAkyMDA1LTA4LTIyIDA5OjE3OjUzLjAwMDAwMDAwMCAtMDcwMApAQCAtMjIsNyArMjIs
MjIgQEAKIEtFWVdPUkRTPSJ+eDg2IH5wcGMiCiBTPSR7V09SS0RJUn0vJHtNWV9QfQogSE9NRURJ
Uj0vZXRjL21haWwvZHNwYW0KLUlVU0U9ImRlYnVnIGxhcmdlLWRvbWFpbiBteXNxbCBuZXVyYWwg
b2NpOCBwb3N0Z3JlcyBzcWxpdGUgc3FsaXRlMyB2aXJ0dWFsLXVzZXJzIgorSVVTRT0iZGVidWcg
bGFyZ2UtZG9tYWluIG15c3FsIG5ldXJhbCBvY2k4IHBvc3RncmVzIHNxbGl0ZSBzcWxpdGUzIHZp
cnR1YWwtdXNlcnMgdXNlci1ob21lZGlycyIKKworcGtnX3NldHVwKCkgeworCWlmIHVzZSB1c2Vy
LWhvbWVkaXJzOyB0aGVuCisJCWV3YXJuICJkc3BhbS13ZWIgZG9lcyBOT1Qgd29yayB3aXRoIFVT
RSBmbGFnIHVzZXItaG9tZWRpcnMhIgorCQlld2FybiAiSWYgeW91IGNvbXBpbGVkIGRzcGFtIHdp
dGggdXNlci1ob21lZGlycywgeW91IG5lZWQgdG8gIgorCQlld2FybiAicmVpbnN0YWxsIGRzcGFt
IHdpdGhvdXQgdXNlci1ob21lZGlycyBzZXQhIgorCQlkaWUKKwlmaQorCQorCWlmIGBkc3BhbSAt
LXZlcnNpb24gfCBncmVwICJcLVwtZW5hYmxlLWhvbWVkaXIiYDsgdGhlbgorCQlld2FybiAiWW91
IGNvbXBpbGVkIGRzcGFtIHdpdGggLS1lbmFibGUtaG9tZWRpciBzZXQsIGRzcGFtLXdlYiBkb2Vz
IE5PVCAiCisJCWV3YXJuICJpbiB0aGlzIGNvbmZpZ3VyYXRpb24uICBVbnNldCBVU0UgZmxhZyB1
c2VyLWhvbWVkaXJzIGFuZCBlbWVyZ2UgZHNwYW0uIgorCQlkaWUKKwlmaQorfQogCiBzcmNfY29t
cGlsZSgpIHsKIAlsb2NhbCBteWNvbmYK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>66568</attachid>
            <date>2005-08-22 10:03 0000</date>
            <desc>Oops, forgot to redirect grep output to /dev/null.</desc>
            <filename>dspam-web_user_homedirs.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS93d3ctYXBwcy9kc3BhbS13ZWIvZHNwYW0td2ViLTMuNC4yLmVidWls
ZAkyMDA1LTA3LTA5IDA4OjM1OjU4LjAwMDAwMDAwMCAtMDcwMAorKysgZHNwYW0td2ViLTMuNC4y
LmVidWlsZAkyMDA1LTA4LTIyIDA5OjU3OjQ0LjAwMDAwMDAwMCAtMDcwMApAQCAtMjIsNyArMjIs
MjIgQEAKIEtFWVdPUkRTPSJ+eDg2IH5wcGMiCiBTPSR7V09SS0RJUn0vJHtNWV9QfQogSE9NRURJ
Uj0vZXRjL21haWwvZHNwYW0KLUlVU0U9ImRlYnVnIGxhcmdlLWRvbWFpbiBteXNxbCBuZXVyYWwg
b2NpOCBwb3N0Z3JlcyBzcWxpdGUgc3FsaXRlMyB2aXJ0dWFsLXVzZXJzI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