MOON
Server: Apache
System: Linux vps.thepromohut.com 2.6.18-398.el5 #1 SMP Tue Sep 16 20:51:48 EDT 2014 i686
User: caretrak (507)
PHP: 5.2.10
Disabled: NONE
Upload Files
File: //scripts.20110601.041516.15411/patcheximconf
#!/usr/bin/perl

open(EXIMC,"/etc/exim.conf");
@EXIMC=<EXIMC>;
close(EXIMC);

open(EXIMC,">/etc/exim.conf");
foreach (@EXIMC) {
	if (/deliver_load_max/) { next; }
	if (/deliver_queue_load_max/) { next; }
	if (/queue_only_load/) { next; }
	if (/message_filter_user/) { next; }
	if (/message_filter_group/) { next; }
	if (/message_filter\s*=/) { 
print EXIMC <<EOM;
message_filter = /etc/antivirus.clam.exim

message_filter_user = mail
message_filter_group = mail

deliver_load_max = 3
deliver_queue_load_max = 5
queue_only_load = 4
EOM
		next;
	}
	print EXIMC;
}
close(EXIMC);

$ama=0;
open(EPL,"/etc/exim.pl");
while(<EPL>) {
	if (/amavis/) { $ama =1; }
}
close(EPL);

if ($ama == 0) {
	open(EPL,">>/etc/exim.pl");
	print EPL "do '/usr/share/amavis/amavis-filter';\n";
	close(EPL);
}

system("/scripts/restartsrv","exim");