User manual
www.grisoft.com
Copyright (c) 1992-2006 GRISOFT, s.r.o. All rights reserved.
AVG Linux Email Server / User Manual
15 
+static char *binqqargs[2] = { 0, 0 } ; 
+ 
+static void setup_qqargs() 
+{ 
+ if(!binqqargs[0]) 
+ binqqargs[0] = env_get("QMAILQUEUE"); 
+ if(!binqqargs[0]) 
+ binqqargs[0] = "bin/qmail-queue"; 
+} 
 int qmail_open(qq) 
 struct qmail *qq; 
 { 
 int pim[2]; 
 int pie[2]; 
+ 
+ setup_qqargs(); 
 if (pipe(pim) == -1) return -1; 
 if (pipe(pie) == -1) { close(pim[0]); close(pim[1]); return -1; } 
Before installing the software a special account must be created, which the 
Qmail-Scanner processes will run under. By default, the user/group name for 
this account is 
qscand. For extra security, create it with a normal home 
directory (e.g. 
/home/qscand), but with a "fake" shell (e.g. /bin/false), as 
Qmail-Scanner never logs in directly. 
Make sure 
AVG for Linux E-mail Server is installed and operational before 
attempting to install 
Qmail-Scanner. 
b) 
Installation 
Unpack the 
Qmail-Scanner package using the 
$ tar -xvzf qmail-scanner-{version}.tgz 










