<?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>205923</bug_id>
          
          <creation_ts>2008-01-15 09:14 0000</creation_ts>
          <short_desc>mail-filter/dspam directory structure broken</short_desc>
          <delta_ts>2008-01-20 09:37:41 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>Ebuilds</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>hollow@gentoo.org</reporter>
          <assigned_to>mrness@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>hollow@gentoo.org</who>
            <bug_when>2008-01-15 09:14:08 0000</bug_when>
            <thetext>there are a number of path problems with the current dspam.cron script:

1) DSPAM_CONFIGDIR lookup via getent, though DSPAM_HOME != DSPAM_CONFIGDIR
2) data dir is not in DSPAM_CONFIGDIR, but in DSPAM_HOME

and with the current logging settings:

1) no logging is done in /var/log/dspam, e.g. in dspam.c:2890 the directory lookup is performed for HOME
2) logrotate fails if any of the logs mentioned in /etc/logrotate.d/dspam does not exist (missingok should be used here)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2008-01-15 09:47:30 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; there are a number of path problems with the current dspam.cron script:
&gt; 
&gt; 1) DSPAM_CONFIGDIR lookup via getent, though DSPAM_HOME != DSPAM_CONFIGDIR

Don&apos;t understand what problem you have with DSPAM_CONFIGDIR. Are you saying that it fails to detect the right location of dspam.conf? Keep in mind that this script must be usable on all hosts, including those where dspam have been installed ages ago.

&gt; 2) data dir is not in DSPAM_CONFIGDIR, but in DSPAM_HOME
oops, I will fix dspam_logrotate execution in r10.

&gt; and with the current logging settings:
&gt; 
&gt; 1) no logging is done in /var/log/dspam, e.g. in dspam.c:2890 the directory
&gt; lookup is performed for HOME

This directory gets installed only if ! use syslog || use debug.

&gt; 2) logrotate fails if any of the logs mentioned in /etc/logrotate.d/dspam does
&gt; not exist (missingok should be used here)

Ditto
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hollow@gentoo.org</who>
            <bug_when>2008-01-15 09:58:25 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; &gt; 1) no logging is done in /var/log/dspam, e.g. in dspam.c:2890 the directory
&gt; &gt; lookup is performed for HOME
&gt; 
&gt; This directory gets installed only if ! use syslog || use debug.
&gt; 
&gt; &gt; 2) logrotate fails if any of the logs mentioned in /etc/logrotate.d/dspam does
&gt; &gt; not exist (missingok should be used here)
&gt; 
&gt; Ditto

Yes, i have not enabled USE=syslog, but there are still no logfiles in this directory, the only logging is done in users&apos; ~/.dspam/&lt;uid&gt;.log

so either the logging is broken, or there has nothing been logged .. in any case missingok in the logrotate script wouldn&apos;t hurt i guess (would at least prevent messages from logrotate cron about file not found)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hollow@gentoo.org</who>
            <bug_when>2008-01-15 10:13:32 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; there are a number of path problems with the current dspam.cron script:
&gt; &gt; 
&gt; &gt; 1) DSPAM_CONFIGDIR lookup via getent, though DSPAM_HOME != DSPAM_CONFIGDIR
&gt; 
&gt; Don&apos;t understand what problem you have with DSPAM_CONFIGDIR. Are you saying
&gt; that it fails to detect the right location of dspam.conf? Keep in mind that
&gt; this script must be usable on all hosts, including those where dspam have been
&gt; installed ages ago.

It is working for me, just the comment in dspam.cron is a bit misleading:

# Something is wrong in passwd! Check if /etc/mail/dspam exists instead.

maybe add a note that the getent check is only for legacy reasons and nothing is wrong with my /etc/passwd ..</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2008-01-16 06:36:55 0000</bug_when>
            <thetext>All the issues have been fixed in r10. 
When syslog flag is disabled, /var/log/dspam/dspam.log file is used instead.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2008-01-20 09:37:41 0000</bug_when>
            <thetext>I&apos;ve just realized that dspam_logrotate must be executed in Home dir because this is the location of system.log file.

Fixed in r11.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>