Sorry, Change vmysql.h to vmysql.c in the below instructions.
Paul J. Fries CWIE, LLC - Internet Services -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Fries Sent: Tuesday, September 03, 2002 1:50 PM To: [EMAIL PROTECTED] Subject: [Qmail-scanner-general]QMAILQUEUE in tcprules with VPOPMAIL For those of you using VPOPMAIL (like me) with qmail-scanner, and you wish to define the QMAILQUEUE variable in the tcprules file (tcp.smtp.cdb) you can do the following: Please note that you can use QMAILQUEUE in tcprules without making this change, but you will notice that all outgoing mail will get by without being scanned. I incorporated the following change on a system using Matt Simerson's tcpserver/Mysql patch, and the --enable-mysql=y config option in vpopmail. Systems not storing relay information in the vpopmail.relay table (in MySQL) will need to have a different solution. (Perhaps by making this same change to vpopmail.c?) Edit your vmysql.h file Look for the following line (number 754 with v5.3.8) snprintf(SqlBufRead, SQL_BUF_SIZE, "%s:allow,RELAYCLIENT=\"\"\n", row[0]); Change it to: snprintf(SqlBufRead, SQL_BUF_SIZE, "%s:allow,RELAYCLIENT=\"\",QMAILQUEUE=\"/var/qmail/bin/qmail-scanner-que ue.pl\"\n", row[0]); Of course enter the correct path for qmail-scanner-queue.pl for your system. Now do a "make ; make install-strip" to apply the change. This will set the proper QMAILQUEUE variable for every pop-authenticated IP address. I am not much of a c programmer, so if someone else comes up with a better solution, please let me know! =) Regards, Paul Fries [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
