<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.koozali.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.koozali.org/"
          
          maintainer="staff@lists.contribs.org"
>

    <bug>
          <bug_id>7846</bug_id>
          
          <creation_ts>2013-09-14 07:29:27 +0200</creation_ts>
          <short_desc>Changes to smtpd instances are not activated by email-update event</short_desc>
          <delta_ts>2013-12-21 09:35:08 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>SME Server Extras</classification>
          <product>SME Server Documentation</product>
          <component>Unknown</component>
          <version>9.0</version>
          <rep_platform>---</rep_platform>
          <op_sys>---</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Michael McCarn">mmccarn+sme</reporter>
          <assigned_to name="SME Server Docteam">docteam</assigned_to>
          <cc>esmith</cc>
          
          
          <cf_package>---</cf_package>
          <votes>0</votes>

      

      

      <flag name="review"
          id="625"
          type_id="2"
          status="?"
          setter="esmith"
    />

          <comment_sort_order>newest_to_oldest_desc_first</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73029</commentid>
    <comment_count>0</comment_count>
    <who name="Michael McCarn">mmccarn+sme</who>
    <bug_when>2013-09-14 07:29:27 +0200</bug_when>
    <thetext>Changing smtpd Instances using
&gt; config setprop smtpd Instances 30
&gt; signal-event email-update

does not change the setting for the running instance of qpsmtpd.  

In order to get the new setting to take effect, you need to:
&gt; sv t qpsmtpd

Looking in /etc/e-smith/events/email-update/services2adjust, I see:
&gt; qpsmtpd -&gt; sighup
&gt; sqpsmtpd -&gt; sighup

Should these be changed from &quot;sighup&quot; to &quot;restart&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75989</commentid>
    <comment_count>6</comment_count>
    <who name="Ian Wells">esmith</who>
    <bug_when>2013-12-21 09:35:08 +0100</bug_when>
    <thetext>(In reply to Michael McCarn from comment #5)
&gt; If this looks OK, lets close this bug:
&gt; &gt; http://wiki.contribs.org/DB_Variables_Configuration#smtpd

Thanks for the fast update</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75988</commentid>
    <comment_count>5</comment_count>
    <who name="Michael McCarn">mmccarn+sme</who>
    <bug_when>2013-12-21 09:07:47 +0100</bug_when>
    <thetext>
If this looks OK, lets close this bug:
&gt; http://wiki.contribs.org/DB_Variables_Configuration#smtpd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75982</commentid>
    <comment_count>4</comment_count>
    <who name="Ian Wells">esmith</who>
    <bug_when>2013-12-20 19:15:11 +0100</bug_when>
    <thetext>(In reply to Charlie Brady from comment #3)
&gt; (In reply to Michael McCarn from comment #0
&gt; &gt; Should these be changed from &quot;sighup&quot; to &quot;restart&quot;?
&gt; 
&gt; No. We don&apos;t want to shut down email any time anything is changed in the
&gt; email settings.
&gt; 
&gt; Just do:
&gt; 
&gt; config setprop smtpd Instances 30
&gt; expand-template /var/service/qpsmtpd/config
&gt; sv t /service/qpsmtpd /service/sqpsmtpd
&gt; 
&gt; if you wish to change the number of instances.

So document only, no code change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75981</commentid>
    <comment_count>3</comment_count>
    <who name="Charlie Brady">charlieb-contribs-bugzilla</who>
    <bug_when>2013-12-20 18:09:29 +0100</bug_when>
    <thetext>(In reply to Michael McCarn from comment #0)
&gt; Changing smtpd Instances using
&gt; &gt; config setprop smtpd Instances 30
&gt; &gt; signal-event email-update
&gt; 
&gt; does not change the setting for the running instance of qpsmtpd.  
&gt; 
&gt; In order to get the new setting to take effect, you need to:
&gt; &gt; sv t qpsmtpd
&gt; 
&gt; Looking in /etc/e-smith/events/email-update/services2adjust, I see:
&gt; &gt; qpsmtpd -&gt; sighup
&gt; &gt; sqpsmtpd -&gt; sighup
&gt; 
&gt; Should these be changed from &quot;sighup&quot; to &quot;restart&quot;?

No. We don&apos;t want to shut down email any time anything is changed in the email settings.

Just do:

config setprop smtpd Instances 30
expand-template /var/service/qpsmtpd/config
sv t /service/qpsmtpd /service/sqpsmtpd

if you wish to change the number of instances.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75975</commentid>
    <comment_count>2</comment_count>
    <who name="Ian Wells">esmith</who>
    <bug_when>2013-12-20 14:30:59 +0100</bug_when>
    <thetext>(In reply to Michael McCarn from comment #0)
&gt; Changing smtpd Instances using
&gt; &gt; config setprop smtpd Instances 30
&gt; &gt; signal-event email-update
&gt; 
&gt; does not change the setting for the running instance of qpsmtpd.  
&gt; 
&gt; In order to get the new setting to take effect, you need to:
&gt; &gt; sv t qpsmtpd
&gt; 
&gt; Looking in /etc/e-smith/events/email-update/services2adjust, I see:
&gt; &gt; qpsmtpd -&gt; sighup
&gt; &gt; sqpsmtpd -&gt; sighup
&gt; 
&gt; Should these be changed from &quot;sighup&quot; to &quot;restart&quot;?

I don&apos;t know - so asking for further comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75255</commentid>
    <comment_count>1</comment_count>
    <who name="Ian Wells">esmith</who>
    <bug_when>2013-11-30 09:36:37 +0100</bug_when>
    <thetext>Toggling the review flag as I cannot answer Michael&apos;s question.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>