#1 (permalink)  
Old 11-03-2004, 12:46 AM
Banned
 
Join Date: Feb 2004
Posts: 351
mr.wonderful has a little shameless behaviour in the past
BIGSCREWUP! with Exim 4.43-30

What is Cpanel doing?

My MailScanner is dead in the water, and no messages are being received!. All of a sudden Cpanel changes the directory structure of /var/spool/exim_incoming/input. This is where all my messages arrive before being scanned by MailScanner, but MailScanner can no longer find the messages because they are now arriving in their own directories;

./ 0/ 3/ 5/ 9/ b/ d/ e/ F/ G/ i/ j/ k/ L/ M/ o/ p/ q/ r/ T/ v/ w/ X/ Z/
../ 2/ 4/ 7/ A/ C/ D/ E/ g/ H/ I/ J/ l/ m/ N/ O/ P/ Q/ S/ U/ V/ W/ Y/

This is absurd. Each messages is now sent to one of these directories? So for those of us running MailScanner how do these messages get retrieved from these directories?

What is up with this?

exim (exim-4.43-30_cpanel_smtpctl_av_rewrite_mm2_mmmtrap_exiscan_m d5pass) is the problem here. Messages arriving should just be placed into the /input directory where MailScanner can find them, not into their own split directories. THIS IS RIDICULOUS!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-03-2004, 01:12 AM
FWC FWC is offline
Registered User
 
Join Date: May 2002
Location: Ontario, Canada
Posts: 354
FWC
For those running MailScanner - Important Information
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-03-2004, 01:52 AM
kens6139's Avatar
Registered User
 
Join Date: Dec 2003
Location: Chattanooga TN
Posts: 24
kens6139
You can fix mail scanner by adding a * to the incoming queue statement in MailScanner.conf. Mine looks like this "Incoming Queue Dir = /var/spool/exim_incoming/input/*".

If you have a exim-daemon.pid file in the input folder delete it, also delete the db and msglog directorys if they exist in the input folder.

also check your exim.conf and make sure the queue matches the one in your MailScanner.conf , note leave input off the spool statement here Mine looks like this "spool_directory = /var/spool/exim_incoming"

Be sure to service exim restart , and service MailScanner restart.

My setup is C Panel on RH enterprise 3 so you may need to alter this with a different setup.

There is still an issue with this setup, the manage mail queue in WHM is worthless !!


Http://www.fatcatservers.com

Last edited by kens6139; 11-03-2004 at 02:19 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-03-2004, 02:19 AM
cPanel Partner NOC
 
Join Date: Feb 2003
Posts: 392
rvskin is on a distinguished road
I suggest drop Mailscanner and move to Exim+Exiscan.
Follow instruction here.
http://www.rvskin.com/index.php?page=public/antispam
__________________
RVSkin, a great experience for you, resellers and clients!
http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
http://www.cPanelLicense.com - External cPanel License.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-03-2004, 02:24 AM
Banned
 
Join Date: Feb 2004
Posts: 351
mr.wonderful has a little shameless behaviour in the past
Quote:
Originally Posted by rvskin
I suggest drop Mailscanner and move to Exim+Exiscan.
Follow instruction here.
http://www.rvskin.com/index.php?page=public/antispam
Anyone with half a developers mind cant possibly be interested in in the Clamconnector. Its pretty worthless if you ask me! Im using the real mailscanner, not the modified heck from Cpanel's website. Thats even worst than all of them put together.

I solved my issue, turn OFF split directories in exim.conf. Ill create a script in postupcp that will reset that option to OFF it it ever gets changed again.

Cpanel, they are the devils!

Last edited by mr.wonderful; 11-03-2004 at 02:28 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-03-2004, 02:25 AM
kens6139's Avatar
Registered User
 
Join Date: Dec 2003
Location: Chattanooga TN
Posts: 24
kens6139
Hmmm.... This does look interisting. I think I will stick with MailScanner for now , but may give Exiscan a try on the next server I set up.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-03-2004, 02:25 AM
FWC FWC is offline
Registered User
 
Join Date: May 2002
Location: Ontario, Canada
Posts: 354
FWC
Quote:
Originally Posted by rvskin
I suggest drop Mailscanner and move to Exim+Exiscan.
Follow instruction here.
http://www.rvskin.com/index.php?page=public/antispam
That's not an option for some of us. We have several clients who will leave if we can't turn off all attachment and virus rules on their sites. But, most insist on virus and attachment checking. MailScanner gives us the flexibility to satisfy all of our customers.

Last edited by FWC; 11-03-2004 at 02:27 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-03-2004, 02:32 AM
cPanel Partner NOC
 
Join Date: Feb 2003
Posts: 392
rvskin is on a distinguished road
Did you read my document?

You can do whitelist for both virus scanning and spam scanning or even add option to cPanel and allow user turn it on and off.
__________________
RVSkin, a great experience for you, resellers and clients!
http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
http://www.cPanelLicense.com - External cPanel License.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-03-2004, 02:36 AM
Banned
 
Join Date: Feb 2004
Posts: 351
mr.wonderful has a little shameless behaviour in the past
Quote:
Originally Posted by rvskin
Did you read my document?

You can do whitelist for both virus scanning and spam scanning or even add option to cPanel and allow user turn it on and off.
Hey Pairote, some of us dont need our users to control this! Why? If we are doing this serverwide why add more confusing options to their control panel options? I already read your document and unless you are running Clamconnector its worthless. I am running Spamassassin + Real MailScanner + Razor + Surbl and thats the way i want to leave it for now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 11-03-2004, 02:40 AM
Banned
 
Join Date: Feb 2004
Posts: 351
mr.wonderful has a little shameless behaviour in the past
Quote:
Originally Posted by kens6139
You can fix mail scanner by adding a * to the incoming queue statement in MailScanner.conf. Mine looks like this "Incoming Queue Dir = /var/spool/exim_incoming/input/*".

If you have a exim-daemon.pid file in the input folder delete it, also delete the db and msglog directorys if they exist in the input folder.

also check your exim.conf and make sure the queue matches the one in your MailScanner.conf , note leave input off the spool statement here Mine looks like this "spool_directory = /var/spool/exim_incoming"

Be sure to service exim restart , and service MailScanner restart.

My setup is C Panel on RH enterprise 3 so you may need to alter this with a different setup.

There is still an issue with this setup, the manage mail queue in WHM is worthless !!


Http://www.fatcatservers.com
Thanks, this may look easier than just setting split directories OFF since it wont require updating when cpanel decides to modify my exim.conf
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 11-03-2004, 02:45 AM
cPanel Partner NOC
 
Join Date: Feb 2003
Posts: 392
rvskin is on a distinguished road
It's your choice. It's out of your topic now. If you want to talk how good and bad between Mailscanner and Exim+Exiscan, we should open new thread.
__________________
RVSkin, a great experience for you, resellers and clients!
http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
http://www.cPanelLicense.com - External cPanel License.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 11-03-2004, 02:48 AM
Banned
 
Join Date: Feb 2004
Posts: 351
mr.wonderful has a little shameless behaviour in the past
Quote:
Originally Posted by rvskin
It's your choice. It's out of your topic now. If you want to talk how good and bad between Mailscanner and Exim+Exiscan, we should open new thread.
Exiscan is already incorporated in Spamassassin, no matter how you look at it, whether your using Cpanels version of Mailscanner or using Spamassasin with the real MailScanner there is ZERO difference.

Also,

where are you getting this version from?

exim-4.42-80_cpanel_stmpcontrol_antivirus_rewrite_mailman2_m askedmailtrap_exiscan

The latest according to Cpanel is 4.42-30

Last edited by mr.wonderful; 11-03-2004 at 02:51 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 11-03-2004, 03:31 AM
Banned
 
Join Date: Feb 2004
Posts: 351
mr.wonderful has a little shameless behaviour in the past
Quote:
Originally Posted by kens6139
You can fix mail scanner by adding a * to the incoming queue statement in MailScanner.conf. Mine looks like this "Incoming Queue Dir = /var/spool/exim_incoming/input/*".

If you have a exim-daemon.pid file in the input folder delete it, also delete the db and msglog directorys if they exist in the input folder.

also check your exim.conf and make sure the queue matches the one in your MailScanner.conf , note leave input off the spool statement here Mine looks like this "spool_directory = /var/spool/exim_incoming"

Be sure to service exim restart , and service MailScanner restart.

My setup is C Panel on RH enterprise 3 so you may need to alter this with a different setup.

There is still an issue with this setup, the manage mail queue in WHM is worthless !!


Http://www.fatcatservers.com

Tired that and all i keep getting is;


Nov 3 03:30:02 srv07 MailScanner[31256]: Cannot cd to dir /var/spool/exim_incoming/input/1BNw1j-0002zM-65-D to read messages, Not a directory
Nov 3 03:30:0
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 11-03-2004, 04:04 AM
kens6139's Avatar
Registered User
 
Join Date: Dec 2003
Location: Chattanooga TN
Posts: 24
kens6139
Quote:
Originally Posted by mr.wonderful
Tired that and all i keep getting is;


Nov 3 03:30:02 srv07 MailScanner[31256]: Cannot cd to dir /var/spool/exim_incoming/input/1BNw1j-0002zM-65-D to read messages, Not a directory
Nov 3 03:30:0

Take the star off and restart exim and mailscanner - it should send those mails in the input directory. Then add the star back.

Or you may try moving the files into one of the new queue directories. or depending on how many you have you may just delete them.

But for that error to be gone you must have only the queue directories in the input folder.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 11-03-2004, 04:36 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
There is actually a little more to just adding the *, there are 3 stages to updating (which is why I wrote the script). You need to:

1. Add the *

Incoming Queue Dir = /var/spool/exim_incoming/input/*

2. Change to split spool in MailScanner.conf:

Split Exim Spool = yes

3. Precreate all the directories for 0-9a-zA-Z (with the right ownership+permissions) for:

/var/spool/exim_incoming/input/
/var/spool/exim/input/

P.S. For those that want it, I'm also developing a cPanel front-end for users, though most system admins still prefer to be in control of the process themselves. Exiscan options will never be as effective or configurable as MailScanner simply because of the maturity and extensiveness of the MailScanner product. But, if you prefer exiscan, go with 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
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 10:34 AM.


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