My aim is to create a variable for the local-domains field so I don't have to reconfigure everytime a new domain is added.
So far, I have added the following to qmail-scanner-queue.pl.
open(LIST,"/var/qmail/control/rcpthosts") || die "Unable to open rcpthosts\n";
my @array = <LIST>;
close(LIST);
chomp(@array);
my $localdom = join(",", @array);
my @local_domains_array=('$localdom');
Now I know the variable is created correctly (From putting this in a script the echoing it on CLI) but it seems to have broken qmail-scanner. Normal messages are delivered but it's stopped delivering alerts for virus infected ones.
I have no idea where to look for error messages because nothing seems to be logged in "maillog" or "messages" .
Any ideas?
Regards, Nick
----- Original Message ----- From: "Sean D." <[EMAIL PROTECTED]>
To: "Nick Chettle" <[EMAIL PROTECTED]>
Sent: Monday, May 03, 2004 8:43 AM
Subject: Re: [Qmail-scanner-general]ClamAV and qmail-scanner (local-domains)
what about cat /var/qmail/control/rcpthosts
thats already got a list of the local domains... or should anyway...
not even sure if that would work though.. haven't tried it myself.
local_dom needs to be an array... can you feed the domains into an array like that or do we need to 'domain1','domain2' format?
wouldnt be too hard to do for one of those grep/sed/awk bash geniuses... prolly even easier to do just in perl though... i have yet to master such tools to that level yet... really need to though.
Nick Chettle wrote:I was thinking of doing somehting like
$local_dom = `cat /etc/local-domain-list`;
Then replacing the actual list in the file with $local_dom, do you think that will work? /etc/local-domain-list being a comma seperated list of local domains.
Regards, Nick
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general