Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > Developer Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-02-2004, 07:24 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
Exclamation For those running MailScanner - Important Information

cPanel have recently started shipping exim with a new configuration directive set. This directive (split_spool_directory) enables split directories spools in the exim incoming directory. This can help with performance issues on high load mail servers. What it also does is completely break MailScanner

I have made modifications to my scripts to modify existing MailScanner configurations to cater for this change. You should visit the script page at:
http://www.webumake.com/free/mailscanner.htm

You should follow the instructions after:

New Additional Instructions (2nd Nov 2004)

The new script is also required because cPanel haven't bothered updating the cPanel Pro installation to take into account MailScanner installations.

Let me know if anything doesn't work or isn't clear.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-02-2004, 07:57 AM
dgbaker's Avatar
Moderator
 
Join Date: Sep 2002
Location: Toronto, Ontario Canada
Posts: 2,768
dgbaker is on a distinguished road
Thanks for the info Jonathan. I'm not totalled surprised by this. cPanel seems to care less what happens to customizations or third party apps. (let the flame begin)
__________________
Regards,
David
Forum Moderator

Alternate Support? http://www.cpanelhosts.com
Looking for a server? http://www.myvirtualhosting.com
Get Dedicated in Toronto at MVH.
We are a licensed cPanel PartnerNoc
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-02-2004, 08:08 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
It really is frustrating, but there you go - 3 hours of work to get everything going again and to cater for those with and without this new directive. My heart initially sunk when I thought that MailScanner would be a no go until I sorted it out.

I'm sure cPanel will come back with the fact that they don't support 3rd party add-ons, etc. Which is fair enough. It's just a pain when they did support it and Nick did say that they would continue to keep the scripts and that hasn't really happened with cPanel Pro.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-02-2004, 04:57 PM
Registered User
 
Join Date: Dec 2003
Posts: 44
sHORTYWZ
Ran your script chirpy and it looks like my mail still isn't being processed.. tons of emails sitting on their respective directories in the queue directory. Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-02-2004, 05:08 PM
Registered User
 
Join Date: Dec 2003
Posts: 44
sHORTYWZ
Alright, made the changes and then ran the upgrade and now mailscanner is asking for a newer version of the Mail::ClamAV module.. trying to upgrade it via "/scripts/perlinstaller Mail::ClamAV" doesn't work - getting errors..

Code:
  Starting "make" Stage
make[1]: Entering directory `/home/.cpan/build/Mail-ClamAV-0.13/_Inline/build/Mail/ClamAV'
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap   ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
gcc -c  -I/home/.cpan/build/Mail-ClamAV-0.13 -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686   -DVERSION=\"0.13\" -DXS_VERSION=\"0.13\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"   ClamAV.c
ClamAV.xs: In function `clamav_perl_constant':
ClamAV.xs:324: `CL_EFORMAT' undeclared (first use in this function)
ClamAV.xs:324: (Each undeclared identifier is reported only once
ClamAV.xs:324: for each function it appears in.)
ClamAV.xs:326: `CL_SCAN_RAW' undeclared (first use in this function)
ClamAV.xs:327: `CL_SCAN_ARCHIVE' undeclared (first use in this function)
ClamAV.xs:328: `CL_SCAN_MAIL' undeclared (first use in this function)
ClamAV.xs:329: `CL_SCAN_DISABLERAR' undeclared (first use in this function)
ClamAV.xs:330: `CL_SCAN_OLE2' undeclared (first use in this function)
ClamAV.xs:331: `CL_SCAN_BLOCKENCRYPTED' undeclared (first use in this function)
ClamAV.xs:332: `CL_SCAN_HTML' undeclared (first use in this function)
ClamAV.xs:333: `CL_SCAN_PE' undeclared (first use in this function)
ClamAV.xs:334: `CL_SCAN_BLOCKBROKEN' undeclared (first use in this function)
ClamAV.xs:335: `CL_SCAN_MAILURL' undeclared (first use in this function)
ClamAV.xs:336: `CL_SCAN_BLOCKMAX' undeclared (first use in this function)
ClamAV.xs:338: `CL_SCAN_STDOPT' undeclared (first use in this function)
make[1]: *** [ClamAV.o] Error 1
make[1]: Leaving directory `/home/.cpan/build/Mail-ClamAV-0.13/_Inline/build/Mail/ClamAV'

A problem was encountered while attempting to compile and install your Inline
C code. The command that failed was:
  make

The build directory was:
/home/.cpan/build/Mail-ClamAV-0.13/_Inline/build/Mail/ClamAV

To debug the problem, cd to the build directory, and inspect the output files.

 at /home/.cpan/build/Mail-ClamAV-0.13/blib/lib/Mail/ClamAV.pm line 190
BEGIN failed--compilation aborted at /home/.cpan/build/Mail-ClamAV-0.13/blib/lib/Mail/ClamAV.pm line 529.
Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [ClamAV.inl] Error 2
  /usr/bin/make  -- NOT OK
Running make install
  make had returned bad status, install seems impossible
perlmod--Install done
Help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-02-2004, 05:28 PM
Registered User
 
Join Date: Dec 2003
Posts: 44
sHORTYWZ
Alrighty then.. I think I got it.. had to upgrade clamav to .80 which allowed the new connector to install which finally fixed everything, I think. =)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-02-2004, 05:54 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
Just coming in to help and see you've sorted it Yes, the problem is that the latest MailScanner when using clamavmodule must use Mail::ClamAV v0.13 and ClamAV .80, as you discovered.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-02-2004, 06:30 PM
Registered User
 
Join Date: Jan 2004
Location: Thurrock, UK
Posts: 39
puzz1ed1
thanks Jonathan

I also found that clam needed updating, which took a fair bit of time to sort out, but the mailscanner updates worked seemlessly as ever
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-02-2004, 06:43 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
I'll put a note on the website to warn people that they do need to upgrade ClamAV and Mail::ClamAV if they are using it.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 11-03-2004, 01:29 AM
FWC FWC is offline
Registered User
 
Join Date: May 2002
Location: Ontario, Canada
Posts: 354
FWC
Chirpy,

I spent a few hours last night figureing out what broke and coming up with a manual bandaid on the one server I upgraded. I logged on to your site today and saw your script. I suspected you would have one.

I did have to modify mscheck.txt, though. I suspect you copied code from the installer. I had to change two lines to get it to modify an existing MailScanner.conf file properly.
Code:
open (IN, "</usr/mailscanner.new/etc/MailScanner.conf");

open (OUT, ">/usr/mailscanner.new/etc/MailScanner.conf");
I needed to take the .new out of the directory path to get it to modify the live one.

Once I did that and made the postupcp file, it all worked like a dream.

Thank you once again for your great service to the Cpanel/MailScanner community.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 11-03-2004, 02:33 AM
Banned
 
Join Date: Feb 2004
Posts: 351
mr.wonderful has a little shameless behaviour in the past
Quote:
Originally Posted by chirpy
I'll put a note on the website to warn people that they do need to upgrade ClamAV and Mail::ClamAV if they are using it.
Your script does not work for those of us using the REAL MAILSCANNER from the MailScanner website. The simple solution is just to turn off split directories in exim.conf. Problem solved! Then all you have to do is write a bash script that will update the Split Directories from YES to NO evertime upcp runs. Thats all!

Sorry to see you are running that hopeless, non support mailscanner modification from Cpanels website.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 11-03-2004, 04:44 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
Will you ever grow up? There's nothing wrong with either approach, both are documented on the MailScanner site as viable, so neither is "REAL".

Anyway, I posted the solution for those running other forms of MailScanner installation on the other thread that you opened.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 11-03-2004, 06:01 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
For those that do use it, I've just released a new mscheck.pl which fixes a flaw in the way it works.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 11-03-2004, 09:19 AM
cpanelnick's Avatar
cPanel Staff
 
Join Date: Feb 2003
Location: Houston, TX
Posts: 4,330
cpanelnick is on a distinguished road
Quote:
Originally Posted by dgbaker
Thanks for the info Jonathan. I'm not totalled surprised by this. cPanel seems to care less what happens to customizations or third party apps. (let the flame begin)

Sorry, but we can't exactly test every third party app every time we make a change. This change was done to solve some performance problems.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 11-03-2004, 09:23 AM
cpanelnick's Avatar
cPanel Staff
 
Join Date: Feb 2003
Location: Houston, TX
Posts: 4,330
cpanelnick is on a distinguished road
Quote:
Originally Posted by chirpy
cPanel have recently started shipping exim with a new configuration directive set. This directive (split_spool_directory) enables split directories spools in the exim incoming directory. This can help with performance issues on high load mail servers. What it also does is completely break MailScanner

I have made modifications to my scripts to modify existing MailScanner configurations to cater for this change. You should visit the script page at:
http://www.webumake.com/free/mailscanner.htm

You should follow the instructions after:

New Additional Instructions (2nd Nov 2004)

The new script is also required because cPanel haven't bothered updating the cPanel Pro installation to take into account MailScanner installations.

Let me know if anything doesn't work or isn't clear.

What would you like us to update ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:16 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc