<?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>65629</bug_id>
          
          <creation_ts>2004-09-27 21:35 0000</creation_ts>
          <short_desc>DSpam lacks Sendmail as delivery agent options</short_desc>
          <delta_ts>2004-10-16 10:07: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>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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>simontsang@unimax.com.hk</reporter>
          <assigned_to>st_lim@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>simontsang@unimax.com.hk</who>
            <bug_when>2004-09-27 21:35:16 0000</bug_when>
            <thetext>I emerged DSpam with all use flag disabled.  But it defaults to use procmail as the delivery agent which I have never specificed.  Under the src_compile section in dspam-3.1.2.ebuild, I found that the code:
 if use cyrus; then
        agent=&quot;/usr/lib/cyrus/deliver %u&quot;
    elif use exim; then
        agent=&quot;/usr/sbin/exim -oMr spam-scanned&quot;
    elif use maildrop; then
        agent=&quot;/usr/bin/maildrop -d %u&quot;
    elif use procmail; then
        agent=&quot;/usr/bin/procmail&quot;
    fi
does not have a default value.  It would be a good idea to add /usr/bin/sendmail as another (or default) agent.

Reproducible: Always
Steps to Reproduce:
1. USE=&quot;-cyrus -debug -exim -maildrop -mysql -neural -oci8 -postgres -procmail&quot; emerge -v dspam
2.
3.

Actual Results:  
DSpam tried to use procmail as delivery agent.

Expected Results:  
It should use sendmail as delivery agent.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mallchin@blueyonder.co.uk</who>
            <bug_when>2004-10-13 06:21:28 0000</bug_when>
            <thetext>This is configurable in /etc/mail/dspam/dspam.conf too. You may set the TrustedDeliveryAgent, UnTrustedDeliveryAgent and QuarantineAgent I believe.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>st_lim@gentoo.org</who>
            <bug_when>2004-10-13 22:35:05 0000</bug_when>
            <thetext>Not sure how to include sendmail as an option.  The idea of dspam is that you should just use an MDA to deliver, so I do not see how sendmail can relate to dspam other than let you bounce mails around the place...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>simontsang@unimax.com.hk</who>
            <bug_when>2004-10-13 23:28:48 0000</bug_when>
            <thetext>Martin Allchin: Thanks for the information.  However, I think it is a good idea to have sendmail as the default option because people who don&apos;t use maildrop or procmail are very likely to use a sendmail compatiable MDA, such as Postfix.

Lim Swee Tat:  It is very simple to have sendmail as the default option.

 if use cyrus; then
        agent=&quot;/usr/lib/cyrus/deliver %u&quot;
    elif use exim; then
        agent=&quot;/usr/sbin/exim -oMr spam-scanned&quot;
    elif use maildrop; then
        agent=&quot;/usr/bin/maildrop -d %u&quot;
    elif use procmail; then
        agent=&quot;/usr/bin/procmail&quot;
    else
        agent=&quot;/usr/sbin/sendmail&quot;
    fi

If you use Postfix or sendmail without any additional MDA, you would need to set agent=&quot;/usr/sbin/sendmail&quot;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>david@dawninglight.net</who>
            <bug_when>2004-10-15 06:07:06 0000</bug_when>
            <thetext>Also, the USE flag courier doesn&apos;t show up when doing emerge dspam -pv. The Courier-MTA package installs maildrop, so there should be a section like this:

elif use courier; then
        agent=&quot;/usr/bin/maildrop -d %u&quot;

I see further down in the ebuild that it checks for a courier use flag, but it&apos;s not in the list at the top.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>st_lim@gentoo.org</who>
            <bug_when>2004-10-16 10:07:17 0000</bug_when>
            <thetext>Hi David and Simon,
  Thanks for the feedback.  I&apos;ll be updating the existing ebuilds.  Hopefully, we should see the pr1 in tonight.

Regards
Lim Swee Tat</thetext>
          </long_desc>
      
    </bug>

</bugzilla>