Search This Blog

Monday, March 28, 2011

Fix error when installing Qmail


No. Error message Solution
1 If that looks correct, I will now generate qmail-scanner-queue.pl
for your system...
Continue? ([Y]/N)
Y
Testing suid nature of /usr/bin/suidperl...
Whoa - broken perl install found.
Cannot even run a simple script setuid

Installation of Qmail-Scanner FAILED

Error was:
Can't do setuid

See FAQ for further details
chmod 4711 /usr/bin/suidperl
2 freshclam: error while loading shared libraries: libclamav.so.6: cannot open shared object file: No such file or directory export LD_LIBRARY_PATH=/usr/local/lib
3 QMAILQUEUE was not set, defaulting to /var/qmail/bin/qmail-scanner-queue.pl for this test...

Sending standard test message - no viruses...
done!

Sending eicar test virus - should be caught by perlscanner module...
qmail-inject: fatal: qq temporary problem (#4.3.0)
Bad error. qmail-inject died
chmod 4755 /var/qmail/bin/qmail-scanner-queue.pl
4 /usr/local/sbin/clamd: error while loading shared libraries: libclamav.so.6: cannot open shared object file: No such file or directory export LD_LIBRARY_PATH=/usr/local/lib
5 451 qq temporary problem (#4.3.0) when try to send mail from qmail Restart service clamd
6 Starting Clam AV daemon: ERROR: Problem with internal logger. Please check the permissions on the /var/log/clamav/clamd.log file.
ERROR: Can\'t open /var/log/clamav/clamd.log in append mode (check permissions!).
chmod 777 /var/log/clamav/clamd.log
7 The SMTP server returned an error. Subject 'tet ', Account: '172.16.5.26', Server: '172.16.5.26',
Protocol: SMTP, Server Response: 'Can't do seteuid!', Port: 25, Secure(SSL): No, Error Number: 0x800CCC60
vi /var/qmail/bin/qmail-scanner-queue.pl ---> add “T” under the first line #!/usr/bin/perl -T