Hi All,

Qmail scanner is doing great on my mail servers, but for one of my customers I need a special hack:
All mail with attachments should be delivered to a special box. I have already found out how to determine if a message has attachments or not,
and when I trie to reroute the email with:


This is around rule 420, version 1.22

&debug("quarantine_event=$quarantine_event");
if ($quarantine_event eq "attachment")
  {
  &debug("att. found!");
  $quarantine_event=0;

&qmail_parent_check;
&debug("env_recips $env_recips hoi");
&debug("recips $recips");
$att='[EMAIL PROTECTED]';
&qmail_requeue($env_returnpath,$att,"$scandir/$wmaildir/new/$file_id");
}
if ($quarantine_event) {
&debug("unsetting TCPREMOTEIP env var");
delete $ENV{'TCPREMOTEIP'};
#Reset locale back to original
$ENV{'LC_ALL'}=$orig_locale;
&email_quarantine_report;
} else {
&qmail_parent_check;
&qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id");
}
alarm 0;
};


when I change the $env_recips to something else, in this case [EMAIL PROTECTED]
the scanner crashes with:
Wed, 08 Dec 2004 21:12:29 CET:7377: att. found!
Wed, 08 Dec 2004 21:12:29 CET:7377: env_recips [EMAIL PROTECTED] hoi
Wed, 08 Dec 2004 21:12:29 CET:7377: recips [EMAIL PROTECTED]
Wed, 08 Dec 2004 21:12:29 CET:7377: $VAR1 = '[EMAIL PROTECTED]';


Wed, 08 Dec 2004 21:12:29 CET:7377: q_r: fork off child into /var/qmail/bin/qmail-queue...
Wed, 08 Dec 2004 21:12:29 CET:7382: q_r: xstatus=0
Wed, 08 Dec 2004 21:12:29 CET:7382: error_condition: X-Qmail-Scanner-1.22: Unable to open pipe to /var/qmail/bin/qmail-queue [91] (#4.3.0) -
Wed, 08 Dec 2004 21:12:29 CET:7377: error_condition: X-Qmail-Scanner-1.22: Unable to close pipe to /var/qmail/bin/qmail-queue [91] (#4.3.0) - Illegal seek


If I don;t change the value of env_recips (e.g. $att=$env_recips) it
works fine,  I must be misssing something very simpel here.

Kind regards,

Joop Marijne
Netformatie



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to