Title: Re: [Qmail-scanner-general]Q-S administrator Email add
At 16:51 -0400 11-04-2004, NightStorm wrote:
See below:

Cannot find any reference to the Q-S administrator Email address in
/var/qmail/bin/qmail-scanner-queue.pl on your system
 
Exiting....

Edit /var/qmail/bin/qmail-scanner-queue.pl and search for this lines:

# From: line  information used when making reports
my $V_FROM='[EMAIL PROTECTED]';
my $V_FROMNAME="Antivirus PUSC";

# Address carbon-copied on any virus reports
my $QUARANTINE_CC='[EMAIL PROTECTED]';


They must look in the way above.
Here is my complete qmail-scanner-queue.pl file, minus the actual domain name.  I've tried just about everything that I can think of, but it still returns the error that the Q-S Administrator address is not found in the file.

#From: line  information used when making reports
my $V_FROM='[EMAIL PROTECTED]';
my $V_FROMNAME='System Anti-Virus Administrator';
# Address carbon-copied on any virus reports
my $QUARANTINE_CC='[EMAIL PROTECTED]';
#Array of local domains that are checked against for
#deciding whether or not to send recipient alerts to
my @local_domains_array=('ns.domain.com');

Your qmail-scanner looks right. Maybe your qmail installation has some errors.

This must be the part of the test script that is givng you the error:

...
RECIP="root"
...skip...
QS_DESC="Qmail-Scanner Test"
QS_SENDER="`cat /var/qmail/control/defaultdomain 2>/dev/null`"
if [ "$RECIP" = "" -o "$QS_DESC" = "" -o "$QS_SENDER" = "" ]; then
    cat<<EOF

An error has occured.

Cannot find any reference to the Q-S administrator Email address in
$QMAILQUEUE on your system!
...


So, you might check the file: /var/qmail/control/defaultdomain

Is it empty?

You can use the command /var/qmail/bin/qmail-showctl to display all the control files.

Cheers

Salvatore

Reply via email to