Ronald,

> I am attempting to install amavisd-new and it is failing with the
> following output.  I am running qmail on this box.  I was able to
> install amavisd-new on two other boxes without a problem.  The other
> boxes are running qmail as well.
> [ ok ] * Patching with qmail lf bug workaround.
> * Applying amavisd-new-2.4-qmail-lf-workaround.patch ...
> * Failed Patch: amavisd-new-2.4-qmail-lf-workaround.patch !

Please use the following patch to enable qmail CR/LF bug workaround,
the patch is against 2.4.3 code:


--- amavisd~    Sat Oct 14 21:56:22 2006
+++ amavisd     Sat Oct 14 21:58:45 2006
@@ -13033,12 +13033,12 @@
         # twice as fast for larger mail.
 
-###     # to reduce likelyhood of a qmail bare-LF bug (bare LF reported when
-###     # CR and LF are separated by a TCP packet boundary) one may use this
-###     # 'while' loop, reading line by line, instead of the normal one below
-###     for ($! = 0; defined($buff=$msg->getline); $! = 0) {
-###       $smtp_handle->datasend($buff)
-###         or die "datasend timed out while sending body";
-###     }
-###     defined $buff || $!==0  or die "Error reading: $!";
+        # to reduce likelyhood of a qmail bare-LF bug (bare LF reported when
+        # CR and LF are separated by a TCP packet boundary) one may use this
+        # 'while' loop, reading line by line, instead of the normal one below
+        for ($! = 0; defined($buff=$msg->getline); $! = 0) {
+          $smtp_data_fh->print($buff)
+            or die "datasend timed out while sending body";
+        }
+        defined $buff || $!==0  or die "Error reading: $!";
 
         # must flush buffering through $smtp_data_fh, as from now on
@@ -13046,11 +13046,11 @@
         $smtp_data_fh->flush or die "Error flushing smtp_data_fh: $!";
 
-        while (($nbytes=$msg->read($buff,16384)) > 0) {
-          do_log(-1,"WARN: Unicode string passed to Net::Cmd::datasend")
-            if $unicode_aware && Encode::is_utf8($buff);
-          $smtp_handle->datasend($buff)
-            or die "datasend timed out while sending body";
-        }
-        defined $nbytes or die "Error reading: $!";
+#       while (($nbytes=$msg->read($buff,16384)) > 0) {
+#         do_log(-1,"WARN: Unicode string passed to Net::Cmd::datasend")
+#           if $unicode_aware && Encode::is_utf8($buff);
+#         $smtp_handle->datasend($buff)
+#           or die "datasend timed out while sending body";
+#       }
+#       defined $nbytes or die "Error reading: $!";
       }
       $smtp_data_fh->close or die "Error closing smtp_data_fh: $!";


> My apologies, posted to wrong group...  I meant to post this message to 
> the Gentoo mailing list.  It is more like a "Gentoo portage" question.

You may want to let Gentoo portage people be aware of this change.
Most notably, it's using $smtp_data_fh->print instead of the
$smtp_handle->datasend, which should be functionally equivalent
but more efficient in a line-by-line mode.

  Mark

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to