LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2011, 02:44 AM   #1
Timothy.u
Member
 
Registered: Aug 2011
Location: Lithuania
Distribution: Slackware, Debian, Archlinux
Posts: 44

Rep: Reputation: Disabled
Mail server problem


Hello,

Right now I'm expierencing really hard problem with my mail server. With that mail server works around 300 clients at the same time, half a year ago it used to work great without any problem, now IMAP server times out time to time. From client side when the problem appears: when the user is trying to send and email, it sends, but can't copy mail to sent folder, after that it starts to time out sent and inbox folders... Seems like a conection problem. For the moment I found a lil work around, I just restart imap server and it seems to work properly until next call...
So, I think the problem appeard when we have changed our internet provider, and old admin forgot some dot in some config, unfortunatelly I'm still geting familiar with linux so mail server for me is like a mountain right now :/
If anyone expierenced something like that, or have any idea what can be wrong please help with that.

I'm running slackware 13.1
and sorry for not proper information, but those are what i know about my mail:
I'm using vpopmail to administrate user accounts,
for pop3, smtdp I'm using qmail.

Btw, this is mail things that are triggered by rc.local:
/etc/rc.d/rc.spamd start
/usr/local/sbin/authdaemond start
/etc/rc.d/rc.imap start
/etc/rc.d/rc.imaps start


Server seems to work fine, even if it's a lil weak, here is load from top:

load average: 0.25, 0.19, 0.17
Tasks: 245 total, 2 running, 243 sleeping, 0 stopped, 0 zombie
Cpu(s): 12.0%us, 4.2%sy, 0.0%ni, 67.6%id, 15.6%wa, 0.2%hi, 0.5%si, 0.0%st
Mem: 1035152k total, 1007116k used, 28036k free, 140500k buffers
Swap: 1991888k total, 115300k used, 1876588k free, 292060k cached


Network seems to be good too, I have 40Mb/s on my netwrok, load average from iftop:
eth0:
TX: cumm: 5.18MB peak: 6.95Mb rates: 6.95Mb 4.15Mb 4.15Mb
RX: 403KB 564Kb 564Kb 322Kb 322Kb
TOTAL: 5.58MB 7.50Mb

eth1:
TX: cumm: 101KB peak: 282Kb rates: 282Kb 282Kb 282Kb
RX: 1.61MB 3.67Mb 3.67Mb 3.67Mb 3.67Mb
TOTAL: 1.71MB 3.95Mb


If you need I can provide some more information that can help to find out the problem, just point it out for me what could be usefull.

Thank You

P.S. Im not really sure, but when problem started all 300+ clients were working and expierenced the problem, during summer, it was quiet (not really sure why, was the server alright, or there were less clients during that and no one could complain), but as soon as september came, the problem appeared again...

Last edited by Timothy.u; 09-08-2011 at 03:04 AM.
 
Old 09-09-2011, 01:52 PM   #2
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
What IMAP server are you running and, more importantly, what information does it show in the logs when this problem appears?
 
Old 09-12-2011, 01:08 AM   #3
Timothy.u
Member
 
Registered: Aug 2011
Location: Lithuania
Distribution: Slackware, Debian, Archlinux
Posts: 44

Original Poster
Rep: Reputation: Disabled
Hey, I'm not sure how to check what IMAP am I running, but it's called courie-imap I think and it came together with slackware 11.0. (My bad, I told wrong version, my version of slackware is 11.0, sorry about that), also there is slight probability that it is even older, cause slackware could have been upgraded on this machine... So I find folders called: courier-imap-4.8.0. If it's not enough information about imap, please suggest how can I check out for more.

I was checking logs for a while and couldn't see a thing, but now when I was prepairing piece of log to show it to you i found something like that... :


Sep 12 08:59:09 jupiter imapd: TIMEOUT, user=r.kazlauskiene@svako.lt, ip=[::ffff:192.168.1.253], headers=358, body=0, rcvd=43936, sent=2058, time=3285, starttls=1
Sep 12 08:59:45 jupiter imapd: TIMEOUT, user=nuc@svako.lt, ip=[::ffff:192.168.1.253], headers=0, body=0, rcvd=1292677, sent=14099, time=1888
Sep 12 09:04:34 jupiter imapd: TIMEOUT, user=biomed.kat@svako.lt, ip=[::ffff:192.168.1.253], headers=9753, body=0, rcvd=507062, sent=48491, time=3651

And after that... :
Sep 12 08:14:41 jupiter imapd: 89 active connections.
Sep 12 08:16:07 jupiter imapd: 92 active connections.
Sep 12 08:17:57 jupiter imapd: 89 active connections.
Sep 12 08:19:14 jupiter imapd: 92 active connections.
Sep 12 08:20:16 jupiter imapd: 97 active connections.
Sep 12 08:20:56 jupiter imapd: 100 maximum active connections.
Sep 12 08:22:30 jupiter imapd: 99 active connections.
Sep 12 08:22:36 jupiter imapd: 100 maximum active connections.
Sep 12 08:24:32 jupiter imapd: 100 maximum active connections.
Sep 12 08:25:34 jupiter imapd: 100 maximum active connections.
Sep 12 08:26:08 jupiter imapd: 99 active connections.
Sep 12 08:28:15 jupiter imapd: 100 maximum active connections.
Sep 12 08:29:33 jupiter imapd: 100 maximum active connections.
Sep 12 08:32:12 jupiter imapd: 99 active connections.
Sep 12 08:32:12 jupiter imapd: 100 maximum active connections.
Sep 12 08:33:36 jupiter imapd: 99 active connections.
Sep 12 08:33:36 jupiter imapd: 100 maximum active connections.
Sep 12 08:35:08 jupiter imapd: 100 maximum active connections.
Sep 12 08:36:33 jupiter imapd: 100 maximum active connections.
Sep 12 08:39:44 jupiter imapd: 100 maximum active connections.
Sep 12 08:40:57 jupiter imapd: 100 maximum active connections.
Sep 12 08:42:37 jupiter imapd: 100 maximum active connections.
Sep 12 08:42:50 jupiter imapd: 99 active connections.
Sep 12 08:43:43 jupiter imapd: 100 maximum active connections.
Sep 12 08:45:54 jupiter imapd: 100 maximum active connections.
Sep 12 08:49:55 jupiter imapd: 100 maximum active connections.
Sep 12 08:52:09 jupiter imapd: 100 maximum active connections.
Sep 12 08:53:11 jupiter imapd: 100 maximum active connections.
Sep 12 08:56:16 jupiter imapd: 100 maximum active connections.
Sep 12 08:57:32 jupiter imapd: 100 maximum active connections.
Sep 12 08:58:55 jupiter imapd: 100 maximum active connections.
Sep 12 08:59:34 jupiter imapd: 99 active connections.
Sep 12 09:00:42 jupiter imapd: 100 maximum active connections.
Sep 12 09:02:09 jupiter imapd: 100 maximum active connections.
Sep 12 09:03:34 jupiter imapd: 100 maximum active connections.

So I believe, I just found a problem itself, the only thing left is the solution, I'll try to google out how to expand max connections, but if U can, please tell me how can I do that.
 
Old 09-13-2011, 12:56 PM   #4
Timothy.u
Member
 
Registered: Aug 2011
Location: Lithuania
Distribution: Slackware, Debian, Archlinux
Posts: 44

Original Poster
Rep: Reputation: Disabled
Hello again, sorry for the delay. So after all the problem was the one i realized posting previous post. Thank U for at least 1 soul who wanted to help me, I think it cleared my vision and let me see the problem i couldn't see for half a year. So, the solution was to increase max connections... Simple

vim /etc/imapd
(In my case it was instaled into /usr/local/etc/imapd so that might have been the case i was walking circles for a while)

and edit


##NAME: MAXDAEMONS:0
#
# Maximum number of IMAP servers started
#

MAXDAEMONS=255 # I had 100 before...

##NAME: MAXPERIP:0
#
# Maximum number of connections to accept from the same IP address

#MAXPERIP=96
MAXPERIP=255

Thank U, this thread is resolved
 
Old 09-14-2011, 06:29 PM   #5
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
Sorry to ignore you, I've been slammed at work and haven't been keeping up here. I'm so glad you got your problem resolved! Just keep an eye on your resources (memory, disk I/O) and make sure the increased max connections don't bite you. Glad things are working well, and thanks for posting the solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mail Server problem ramecare Linux - Server 8 03-11-2011 10:49 PM
mail server migration: howto deliver locally AND forward mail to new server pedrobl Linux - Server 1 01-21-2011 11:12 PM
Mail Server Problem saran_sai Linux - Server 7 03-02-2009 01:07 AM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration