Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-07-2006, 03:02 PM
Moderator
 
Posts: 872
Default Email Getting Stuck in Active Queue

I am currently running Zimbra OSE version 4.0.3 on a CentOS 4 (RHEL 4) server. I am running in a split domain mode, as I am evaluating Zimbra as a possible replacement for our current POP3-only Linux-based email server. Right now I only have two active accounts on the Zimbra server; my own and a 'spam dump' account, which gets email tagged as spam by our email gateway server. The last couple of days I have been running into an issue where email messages are getting stuck in the Active mail queue. Today the queue got up to over 800 messages, which had been accumulating for over an hour, before I finally stopped and restarted Zimbra and cleared out a bunch of messages to the 'spam' account, as I don't really care about these. Looking around the system for clues on what is causing this problem, I came across errors like the follow in the /var/log/messages file:

Nov 7 14:23:59 email amavis[1803]: (01803-04-7) (!!) TROUBLE in check_mail: spam_scan FAILED: timed out
Nov 7 14:23:59 email amavis[1803]: (01803-04-7) (!) PRESERVING EVIDENCE in /opt/zimbra/amavisd/tmp/amavis-20061107T114500-01803

The time on the first message I see like this pretty much coincides with the time I start noticing things stuck in the queue. Once the first error is logged I see the same type of error messages repeating in the log. I don't really know if this error is indicative of the cause of the problem, or perhaps they are a result of some other issue. I'm not seeing any other error messages, although maybe I just don't know where to look.

I know the 'spam' account is receiving a very high volume of email messages, and this may be part of the problem. However, I am concerned about why the large volume would cause this backup of messages. If we decide to go live with Zimbra we will have between 300-400 active accounts, and this type of issue would not be good.

Any help on solving this problem would be greatly appeciated.

TIA,
John
Reply With Quote
  #2 (permalink)  
Old 11-14-2006, 11:29 AM
Zimbra Employee
 
Posts: 4,792
Default

What is the CPU and MEM usage like? What do you have for disks on the zimbra partitions?
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 11-14-2006, 12:05 PM
Moderator
 
Posts: 872
Default

Well, I've since fixed the problem by changing the way I handled spam at my email gateway, so I can't give you any exact numbers. When the problem was happening I was monitoring with 'top' and didn't see any process that was consistently taking up either CPU or MEM.
Reply With Quote
  #4 (permalink)  
Old 11-15-2006, 08:57 AM
Moderator
 
Posts: 872
Default

I guess I'm not totally out of the woods on this yet. I'm not seeing the pile of messages stuck in the Active queue, however I'm still getting messages going to the deferred queue. The reason for the messages going to the deferred queue shows as "spam_scan FAILED: timed out (in reply to end of DATA command)". What does this error mean? Is it a network problem?
Reply With Quote
  #5 (permalink)  
Old 11-15-2006, 09:22 AM
Zimbra Employee
 
Posts: 4,792
Default

Most of the time that means it timed out talking to SA for spam scanning.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #6 (permalink)  
Old 11-15-2006, 10:27 AM
Moderator
 
Posts: 872
Default

Any tuning or config changes I can make to prevent this from happening? Since I fixed my original problem the volume of messages is pretty low. So I don't think the server is being overwhelmed or anything like that.
Reply With Quote
  #7 (permalink)  
Old 12-06-2006, 04:28 PM
Active Member
 
Posts: 49
Default

I am having a similar issue - where e-mail is being stuck in the active queue. The only resolution I have been able to come up with is running zmcontrol stop and start at least twice a day.

The software is running on FC4 w/ 2x1.8 ghz XEON Processors, 2GB RAM, 1-36GB (stand alone) drive for OS
1-72GB (stand alone) drive for zimbra & mailstore

Why is this happening? We only have about 200 users on the system - all using pop. Let me know if there is more you need from me.

Thanks!
Reply With Quote
  #8 (permalink)  
Old 12-12-2006, 07:41 AM
Active Member
 
Posts: 49
Default

Has there been any other info on this?

I have another thread that started out as one issue, and migrated into this exact issue.

'Blackhole' e-mails send to non-zimbra accounts?

Does anyone know why this is happening, and how to correct it?
Reply With Quote
  #9 (permalink)  
Old 12-20-2006, 06:03 AM
Junior Member
 
Posts: 5
Default

Upgrade to 4.0.3 and mail delivery slows to a crawl
This seems to have fixed our server. I stopped zimbra and ran yum update, after it finished I rebooted and started Zimbra. The queue emptied within the hour and has been fine since (12 hours).
Reply With Quote
  #10 (permalink)  
Old 12-20-2006, 06:57 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Quote:
Originally Posted by zagman76 View Post
Has there been any other info on this?

I have another thread that started out as one issue, and migrated into this exact issue.

'Blackhole' e-mails send to non-zimbra accounts?

Does anyone know why this is happening, and how to correct it?
Did you upgrade to the latest Zimbra release? Did you consider changing to another operating system such as CentOS?
__________________
Regards


Bill
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.