OT: GD library ,quarantine, and mailq.php

Billy A. Pumphrey bpumphrey at WOODMACLAW.COM
Thu May 5 16:30:37 IST 2005


I have sent this on the mailwatch list, however I can't seem to get any
responses.  Any help on this is appreciated.  I am pretty confused and
frustrated, so please bear with this post if it doesn't make sense.  I
just tried to include a good amount of information.  

For the life of me, I cannot get these 3 things to work.

-----------
Quarantine
-----------

I am still getting the error of:
Cannot open directory: /var/spool/MailScanner/quarantine
When trying to click on the quarantine link in mailwatch.  

I have the correct setup I believe.  I should have put that in my
previous email, I am sorry.  Here is what I had done so far, but the
problem is still there:

[root at WoodenMS MailScanner]# pwd
/var/spool/MailScanner
[root at WoodenMS MailScanner]# ls -all
total 32
drwxr-xr-x   4 root root   4096 Apr 13 14:31 .
drwxr-xr-x  19 root root   4096 Apr 13 14:31 ..
drwx------   7 root root   4096 May  4 10:23 incoming
drwxrwx---   5 root apache 4096 May  4 04:02 quarantine

cd quarantine
[root at WoodenMS quarantine]# ls -all
total 40
drwxrwx---  5 root apache 4096 May  4 04:02 .
drwxr-xr-x  4 root root   4096 Apr 13 14:31 ..
drwxrwx---  3 root apache 4096 May  2 17:56 20050502
drwxrwx---  4 root apache 4096 May  3 13:42 20050503
drwxrwx---  4 root apache 4096 May  4 11:19 20050504

I have tried setting the chmod to 777 also and that didn't work.  

---
MailScanner.conf
---
I have
Quarantine User = root # was blank
Quarantine Group = apache # was blank

Quarantine Permissions = 0660 # was 600

---
fix_quarantine_permissions
---
I have done this:
./fix_quarantine_permissions
And
Perl fix_quarantine_permissions

----------
Mailq.php
----------
I am also having a problem running this:
[root at WoodenMS mailscanner]# mailq.php
PHP Notice:  Use of undefined constant VIRUS_REGEX - assumed
'VIRUS_REGEX' in /v ar/www/html/mailscanner/functions.php on line 54 PHP
Notice:  Use of undefined constant VIRUS_REGEX - assumed 'VIRUS_REGEX'
in /v ar/www/html/mailscanner/functions.php on line 63 PHP Notice:
Undefined variable:  output in /usr/local/bin/mailq.php on line 98 PHP
Notice:  Undefined variable:  output in /usr/local/bin/mailq.php on line
98

I have read that you may have to edit functions.php or some other file
to tell it what virus scanner you have and stuff, but I could not see
it.

-----------------------
GD library
-----------------------
I am still getting this when I try to view a report in mailwatch:
JpGraph Error: Your PHP installation does not seem to have the required
GD library. Please see the PHP documentation on how to install and
enable the GD library.

Fixed:
If I run ./gddemo I get the error:
No PNG support
By:
I downloaded libpng-1.2.8-config and ./configure, make, make install 'd
it.

To see that there seems to be gd support already.
Here is the ./configure from phpinfo:
'./configure' '--build=i686-redhat-linux-gnu'
'--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2'
'--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared'
'--enable-gd-native-ttf' '--without-gdbm' '--with-gettext'
'--with-ncurses=shared' '--with-gmp' '--with-iconv'
'--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell'
'--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr'
'--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared'
'--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid'
'--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear'
'--with-imap=shared' '--with-imap-ssl' '--with-kerberos'
'--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared'
'--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack'
'--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop'
'--enable-calendar' '--enable-dbx' '--enable-dio'
'--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex'
'--with-mime-magic=/usr/share/file/magic.mime'
'--with-apxs2=/usr/sbin/apxs'

I have tried installing gd-2.0.33 and it seemingly installs.


I have tried so many things that I do not know what to write.  

The last thing that I tried to do was recompile PHP using:
./configure --with-gd=/usr/local/include But I got the error checking
for GD support... yes checking for the location of libjpeg... no
checking for the location of libpng... no checking for the location of
libXpm... no checking for FreeType 1.x support... no checking for
FreeType 2... no checking for T1lib support... no checking whether to
enable truetype string function in GD... no checking whether to enable
JIS-mapped Japanese font support in GD... no If configure fails try
--with-jpeg-dir=<DIR> If configure fails try --with-png-dir=<DIR> and
--with-zlib-dir=<DIR> If configure fails try --with-xpm-dir=<DIR> If
configure fails try --with-freetype-dir=<DIR>
configure: error: Unable to find libgd.(a|so) anywhere under
/usr/local/include


Anything will be helpful.

Thank you


Billy Pumphrey
IT Manager
Wooden & McLaughlin




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events,
4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r
_______________________________________________
Mailwatch-users mailing list
Mailwatch-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mailwatch-users

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list