<?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>32267</bug_id>
          
          <creation_ts>2003-10-29 06:38 0000</creation_ts>
          <short_desc>Courier init script errors!!!</short_desc>
          <delta_ts>2004-02-22 05:44:13 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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>superbeps@linux.nu</reporter>
          <assigned_to>iggy@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>superbeps@linux.nu</who>
            <bug_when>2003-10-29 06:38:16 0000</bug_when>
            <thetext>The /etc/init.d/courier script lacks a part meant to star esmtpd-ssl if properly 
configured. 
In particular I suggest ti add: 
        # start esmtpd-ssl if so written 
        [ -f ${sysconfdir}/esmtpd-ssl ] &amp;&amp; source ${sysconfdir}/esmtpd-ssl 
        case x$ESMTPDSSLSTART in 
        x[yY]*) 
                ebegin &quot; Starting esmtpd-ssl&quot; 
                ${sbindir}/esmtpd-ssl start 
                ;; 
        esac 
 
in the start() function and 
        ebegin &quot; Stopping courier-esmtpd-ssl&quot; 
        ${sbindir}/esmtpd-ssl stop 
in the stop() function 
 
There is another error in this script, it lacks the generation of 
esmtpacceptmailfor.dat, so it would be useful having this line: 
[ -f ${sysconfdir}/esmtpacceptmailfor.dat ] || ${sbindir}/makeacceptmailfor 
 
I think that this script could be improved such as the ebuild of courier, so i would like 
to talk with courier ebuild mantainer 

Reproducible: Always
Steps to Reproduce:
1. Enable esmtpd-ssl (ESMTPDSSLSTART=&quot;YES&quot;) 
2. Try to restart (or start) courier service 
3. As you see ssmtp has not been started!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>iggy@gentoo.org</who>
            <bug_when>2003-10-29 11:04:46 0000</bug_when>
            <thetext>Oddly enough the courier sysV init script doesn&apos;t start esmtpd-ssl (which
is what I based the Gentoo startup script on). I&apos;m looking into why it doesn&apos;t
start it (to make sure it&apos;s not borken or something).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>iggy@gentoo.org</who>
            <bug_when>2003-10-29 11:28:28 0000</bug_when>
            <thetext>Okay, so the initscript in the install docs still is missing a part about
esmtpd-ssl, but the one that is distributed in the most recent tarball correctly
has a part about it. I&apos;ve fixed this in cvs, and I&apos;ll bump the ebuild after
I do some more init script cleaning and testing that&apos;s been on my todo list
for awhile.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>a_harald@yahoo.com</who>
            <bug_when>2004-02-22 05:44:13 0000</bug_when>
            <thetext>There is still a small problem:

You added
&quot;case x$ESMTPDSTART in&quot; (missing &apos;SSL&apos;)
instead of
&quot;case x$ESMTPDSSLSTART in&quot;
to /etc/init.d/courier.

So esmtpd-ssl doesn&apos;t start, even if it is configured in
/etc/courier/esmtpd-ssl (ESMTPDSSLSTART=YES).


(Sorry, I don&apos;t have the permission to mark this bug as REOPENED.)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>