ZMailer and MailScanner--a little problem.

Mariano Absatz mailscanner at LISTS.COM.AR
Fri Jun 6 14:56:25 IST 2003


Artur,

Congrats!!! AFAIK you're user #2 of MailScanner+ZMailer (user #1 being me)

:-)

This is caused by a bug in the first version and after I sent a couple of 
patches, the last complete version of ZMailer.pm I sent to Julian didn't have 
this (more important) patch applied.

Please patch ZMailer.pm with this:

*** ZMailer.pm.ORI  Mon Jun  2 09:44:42 2003
--- ZMailer.pm  Mon Jun  2 09:45:07 2003
***************
*** 274,279 ****
--- 274,284 ----
          $message->{from} = lc($from);
          $FROMFound = 1; # We have found the sender
        }
+       if ($Line =~ /^channel error/) {
+         $from = "";
+         $message->{from} = lc($from);
+         $FROMFound = 1; # We have found the (NULL) sender
+       }
        if ($Line =~ /^rcvdfrom /i) {
          $ip = $Line;
          #chomp $ip;


The messages stuck in the queue are error bounces (sent from zmailer, e.g. 
because the recipient doesn't exist). These messages have a different format 
in the queue (instead of a "from xxx" they have a "channel error" line). This 
little patch handles this case.

After the patch is applied restart (not reload) MailScanner (you don't have 
to turn off any part of ZMailer) and the messages will be delivered.  

Please, let me know it everything goes OK.

El 5 Jun 2003 a las 17:30, Artur Meski escribió:

> Hello MailScanner hackers.
> 
> I've found out, that in some conditions MailScanner behaves stangely.
> 
> Take a look at this:
> 
> [...]
> Jun  5 17:39:56 naos MailScanner[49495]: Batch: Found invalid queue file
> for message 224686
> Jun  5 17:39:56 naos MailScanner[49447]: Batch: Found invalid queue file
> for message 224686
> Jun  5 17:39:58 naos MailScanner[49460]: Batch: Found invalid queue file
> for message 224686
> Jun  5 17:40:01 naos MailScanner[49479]: Batch: Found invalid queue file
> for message 224686
> Jun  5 17:40:01 naos MailScanner[49434]: Batch: Found invalid queue file
> for message 224686
> Jun  5 17:40:01 naos MailScanner[49495]: Batch: Found invalid queue file
> for message 224686
> Jun  5 17:40:01 naos MailScanner[49447]: Batch: Found invalid queue file
> for message 224686
> Jun  5 17:40:03 naos MailScanner[49460]: Batch: Found invalid queue file
> for message 224686
> Jun  5 17:40:06 naos MailScanner[49479]: Batch: Found invalid queue file
> for message 224686
> [...]
> 
> It does not affect every message--it happens from time to time.
> 
> See attachement for queue file.  It has no 'from' field in "env" part
> (I think, it's ok for ZMailer).
> 
> 
> 


--
Mariano Absatz
El Baby
----------------------------------------------------------
I must confess, I was born at a very early age.
      -- Groucho Marx




More information about the MailScanner mailing list