<?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>24923</bug_id>
          
          <creation_ts>2003-07-20 15:38 0000</creation_ts>
          <short_desc>/etc/init.d/xmail does not run</short_desc>
          <delta_ts>2003-07-23 20:18:33 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>seriv@parkheights.dyndns.org</reporter>
          <assigned_to>nick@capital-internet.net</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>seriv@parkheights.dyndns.org</who>
            <bug_when>2003-07-20 15:38:14 0000</bug_when>
            <thetext>The same thing as in bug 24620: since lines end with &lt;CR&gt;/&lt;LF&gt; I got &quot;bad interpreter&quot; 
trying to start XMail.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seriv@parkheights.dyndns.org</who>
            <bug_when>2003-07-20 16:40:38 0000</bug_when>
            <thetext>The same about file files/xmail.confd. Should I enter this as a separate bug?
     Sergey</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seriv@parkheights.dyndns.org</who>
            <bug_when>2003-07-20 16:43:54 0000</bug_when>
            <thetext>I am sorry, but file files/15xmail also has line ending &lt;CR&gt;&lt;LF&gt; and this prevents XMail server from starting.
    Sergey Ivanov</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nick@capital-internet.net</who>
            <bug_when>2003-07-21 00:17:59 0000</bug_when>
            <thetext>xmail-1.16 is now in portage.  files/* have the cr-lf stuff removed.  Also xmailwizard is now executable.  Please test.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seriv@parkheights.dyndns.org</who>
            <bug_when>2003-07-22 09:34:53 0000</bug_when>
            <thetext>Created an attachment (id=14872)
patch for xmail start script to eliminate xargs calls
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seriv@parkheights.dyndns.org</who>
            <bug_when>2003-07-22 09:36:05 0000</bug_when>
            <thetext>Thank you, I have synced to xmail-1.16 and tested. 
/etc/init.d/xmail does not start. It says:
===
# /etc/init.d/xmail start
 * Starting XMail...
xargs: environment is too large for exec
===
I have not managed with xargs, so I propose patch for files/xmail.initd eliminating xargs call</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seriv@parkheights.dyndns.org</who>
            <bug_when>2003-07-22 09:43:59 0000</bug_when>
            <thetext>(From update of attachment 14872)
&gt;--- /usr/portage/net-mail/xmail/files/xmail.initd	2003-07-21 03:40:20.000000000 -0400
&gt;+++ /usr/local/portage/net-mail/xmail/files/xmail.initd	2003-07-22 07:52:56.000000000 -0400
&gt;@@ -60,19 +60,17 @@
&gt; 	
&gt; 	if [ ! -c ${CHROOT}/dev/null ]
&gt; 	then
&gt;+		mknod ${CHROOT}/dev/null c `\
&gt; 		ls -Ll /dev/null |\
&gt;-		awk &apos;{print sub(&quot;,&quot;,&quot;&quot;,$5) &quot; &quot; $6}&apos; |\
&gt;-		xargs mknod ${CHROOT}/dev/null c
&gt;+		awk &apos;{print sub(&quot;,&quot;,&quot;&quot;,$5) &quot; &quot; $6}&apos;`
&gt; 	fi
&gt; 		
&gt; 	chown -R xmail.xmail ${CHROOT}
&gt; 
&gt; 	cp -R -u /etc/xmail/* ${CHROOT}${MAIL_ROOT}
&gt; 
&gt;-	cd ${CHROOT}
&gt;-	ldd var/MailRoot/bin/XMail |\
&gt;-		sed -n &apos;s/[[:blank:]][^&gt;]\+&gt;[[:blank:]]\([[:graph:]]\+\).*/\1 lib\/ /p&apos;\
&gt;-		|xargs -n 2 cp -u
&gt;+	cp `ldd ${CHROOT}${MAIL_ROOT}/bin/XMail |\
&gt;+	sed -n &apos;s/[[:blank:]]*[^=]*=&gt;\([^(]*\).*/\1/p&apos;` ${CHROOT}/lib/
&gt; 	start-stop-daemon --start -c xmail -r ${CHROOT} \
&gt; 		--startas ${MAIL_EXEC} --pidfile=${MAIL_PID} -- \
&gt; 		${MAIL_CMD_LINE} 
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seriv@parkheights.dyndns.org</who>
            <bug_when>2003-07-22 12:14:23 0000</bug_when>
            <thetext>Also, please, change order of lines 
	chown -R xmail.xmail ${CHROOT}
and
 	cp -R -u /etc/xmail/* ${CHROOT}${MAIL_ROOT}
in files/xmail.initd, otherwise it takes two or three attempts to chown all necessary for XMail files.

   Sergey
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seriv@parkheights.dyndns.org</who>
            <bug_when>2003-07-22 12:20:57 0000</bug_when>
            <thetext>And the last correction from bug 15931, XMail SMTP needs /tmp in it&apos;s chrooted jail, so line 
===
   for subdir in dev lib var/run var/MailRoot
=== 
should be changed to
===
   for subdir in dev lib var/run var/MailRoot tmp
===

      Sergey</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seriv@parkheights.dyndns.org</who>
            <bug_when>2003-07-23 15:36:27 0000</bug_when>
            <thetext>Hi, 
this bug has status &quot;resolved&quot; and resolution &quot;fixed&quot; but this is not the real status! /etc/init.d/xmail as it is in portage can not be used! It &quot;runs&quot; but does not &quot;works&quot;. It does not start XMail server! 
What should I do? Should I open new bug? 

   Sergey

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nick@capital-internet.net</who>
            <bug_when>2003-07-23 15:49:42 0000</bug_when>
            <thetext>reopening bug</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nick@capital-internet.net</who>
            <bug_when>2003-07-23 20:09:09 0000</bug_when>
            <thetext>I have updated the initd file with your changes.  I haven&apos;t changed the CTRL port though as there shouldn&apos;t be a problem with that port.  Please test.

I also added a warning in postinst so that users are sure to have iptables enabled in their kernels before they expect things to work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nick@capital-internet.net</who>
            <bug_when>2003-07-23 20:18:33 0000</bug_when>
            <thetext>xmail-1.16 appears to work good :)</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>14872</attachid>
            <date>2003-07-22 09:34 0000</date>
            <desc>patch for xmail start script to eliminate xargs calls</desc>
            <filename>xmail.initd.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9uZXQtbWFpbC94bWFpbC9maWxlcy94bWFpbC5pbml0ZAkyMDAzLTA3
LTIxIDAzOjQwOjIwLjAwMDAwMDAwMCAtMDQwMAorKysgL3Vzci9sb2NhbC9wb3J0YWdlL25ldC1t
YWlsL3htYWlsL2ZpbGVzL3htYWlsLmluaXRkCTIwMDMtMDctMjIgMDc6NTI6NTYuMDAwMDAwMDAw
IC0wNDAwCkBAIC02MCwxOSArNjAsMTcgQEAKIAkKIAlpZiBbICEgLWMgJHtDSFJPT1R9L2Rldi9u
dWxsIF0KIAl0aGVuCisJCW1rbm9kICR7Q0hST09UfS9kZXYvbnVsbCBjIGBcCiAJCWxzIC1MbCAv
ZGV2L251bGwgfFwKLQkJYXdrICd7cHJpbnQgc3ViKCIsIiwiIiwkNSkgIiAiICQ2fScgfFwKLQkJ
eGFyZ3MgbWtub2QgJHtDSFJPT1R9L2Rldi9udWxsIGMKKwkJYXdrICd7cHJpbnQgc3ViKCIsIiwi
IiwkNSkgIiAiICQ2fSdgCiAJZmkKIAkJCiAJY2hvd24gLVIgeG1haWwueG1haWwgJHtDSFJPT1R9
CiAKIAljcCAtUiAtdSAvZXRjL3htYWlsLyogJHtDSFJPT1R9JHtNQUlMX1JPT1R9CiAKLQljZCAk
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