The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

URGENT: cPanel email issue

Discussion in 'E-mail Discussions' started by Andre Montaut, Apr 22, 2011.

  1. Andre Montaut

    Andre Montaut Member

    Joined:
    Feb 4, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    I keep getting the following message every few minutes. I woke up this morning and had over 100 of these in my inbox.

    Code:
    spamd failed @ Fri Apr 22 14:33:24 2011. A restart was attempted automagically.
    Service Check Method:  [check command] 
    
    Cmd Service Check Raw Output: Spamd is not running Raw Output: 
    
    Any idea what I can do to stop this. I'm not a server savvy so the easier you can explain it the better.
     
  2. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    It seems your spamd is not running in the server. Can you make sure it is running in the server. You can start the service using the command /scripts/restartsrv_spamd from SSH.

    If any errors post it here.
     
  3. lijeeshsd

    lijeeshsd Active Member

    Joined:
    Apr 22, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    Another possibility is that spamd is broken. Update cpanel software with /scripts/upcp --force from root SSH. Also, it would be better to set automatic updates from STABLE builds.
     
  4. Andre Montaut

    Andre Montaut Member

    Joined:
    Feb 4, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Ive done the /scripts/upcp --force and /scripts/restartsrv_spamd but im still getting the emails.
     
  5. lijeeshsd

    lijeeshsd Active Member

    Joined:
    Apr 22, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Is it a VPS? Often this problem happens in VPSs when some resources (mainly memory and buffers) exhaust.
     
  6. Andre Montaut

    Andre Montaut Member

    Joined:
    Feb 4, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    yes it is. Is there a way to disable monitoring this? Should I try and do something due to the fact that this email is coming every 5 minutes?
     
    #6 Andre Montaut, Apr 24, 2011
    Last edited: Apr 24, 2011
  7. lijeeshsd

    lijeeshsd Active Member

    Joined:
    Apr 22, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    SpamAssassin service (spamd) service is failing due to some reason. When cpanel monitoring service finds spamd down, it restarts spamd and then send you alert email. But spamd is failing too often and so you get a lot of alerts. You can disable monitoring of spamd service, then spamd may have prolonged down time as there is no monitoring.

    It would be better to check with your hosting support if VPS is running out of resources. If it is an OpenVZ vps you can check the file /proc/user_beancounters yourself. Check if there is any non-zero failcount values. Failcount represents the number of times corresponding resource ran out.
     
  8. Andre Montaut

    Andre Montaut Member

    Joined:
    Feb 4, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    I did an update on spamassassin and this is what I just got:

    Code:
    This module is required by cPanel, and the system may not function correctly until it is installed, and functional.  Below is the results of the auto-install attempt:
    
    Test Run
    ==============
    Can't locate Mail/SpamAssassin.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at - line 1.
    BEGIN failed--compilation aborted at - line 1.
    
    
    Installer Run
    ==============
    Testing connection speed...(using fast method)...Done
    Ping:1 (ticks) Testing connection speed to mirrors.24-7-solutions.net using pureperl...(29250.00 bytes/s)...Done
    Ping:1 (ticks) Testing connection speed to mirror.cogentco.com using pureperl...(20200.00 bytes/s)...Done
    Ping:1 (ticks) Testing connection speed to mirrors.zerg.biz using pureperl...(19966.67 bytes/s)...Done Three usable mirrors located Mirror Check passed for mirrors.24-7-solutions.net (/index.html) Disabling /bin/wget since LWP is available at /usr/local/cpanel/Cpanel/cPCPAN/Config.pm line 82.
    Disabling /bin/ftp since Net::FTP is available at /usr/local/cpanel/Cpanel/cPCPAN/Config.pm line 87.
    commit: wrote '/usr/local/lib/perl5/5.8.8/CPAN/Config.pm'
    Going to read '/home/.cpan/Metadata'
      Database was generated on Sat, 23 Apr 2011 14:30:19 GMT
    cPCPAN: Module (Mail::SpamAssassin) holdback (3.003001 held back to 3.3.1)
    open3: fork failed: Cannot allocate memory at /usr/local/cpanel/Cpanel/cPCPAN/Utils.pm line 146
    
     
  9. Andre Montaut

    Andre Montaut Member

    Joined:
    Feb 4, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    I also noticed that Spamd is not in the list under Service Manager for monitoring. All i have:

    Code:
    Enabled 	  	TailWatch Drivers:
    	  	Antirelayd
    	  	ChkServd
    	  	Eximstats
    	  	cPBandwd
    
    Uncheck a service to disable it
    Enabled 	Monitor 	Service Information
    		cpdavd
    
        cPanel DAV Daemon 
    
    		entropychat
    
        cPanel's HTML Based Chat Server 
    
    		exim
    
        SMTP Server 
    
    		exim on another port
    
        Allow exim to listen on port
        Useful for providers that block port 25. 
    
    		ftpd
    
        Ftp Server 
    
    		httpd
    
        Web Server 
    
    		imap
    
        Dovecot IMAP Server 
    
    		ipaliases
    
    		mailman
    
        Mailing List Manager 
    
    		melange
    
        Java Chat Server 
    
    		mysql
    
        MySQL Database Server 
    
    		named
    
        Berkely Name Server Daemon (BIND) 
    
    		sshd
    
        Secure Shell Daemon 
    
    		syslogd
    
        System Logger Daemon 
     
  10. Andre Montaut

    Andre Montaut Member

    Joined:
    Feb 4, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    I have disabled spamassassin till I can fix this error. Is there a way to enable SPAMD through SSH as it shows its not running.
     
    #10 Andre Montaut, Apr 24, 2011
    Last edited: Apr 24, 2011
  11. lijeeshsd

    lijeeshsd Active Member

    Joined:
    Apr 22, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    See this line in the update log "open3: fork failed: Cannot allocate memory at /usr/local/cpanel/Cpanel/cPCPAN/Utils.pm line 146". This error happens due to insufficient memory. You may have to upgrade VPS memory.
     
  12. Andre Montaut

    Andre Montaut Member

    Joined:
    Feb 4, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    what can i do to see whats taking up all the memory?
     
  13. Andre Montaut

    Andre Montaut Member

    Joined:
    Feb 4, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    I just ran top -c. Anything stand out here? I'm not really a server person so I'm not sure what here is using up all the memory.

    Code:
    top - 11:35:10 up 19:55,  1 user,  load average: 0.00, 0.01, 0.00
    Tasks:  58 total,   1 running,  57 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:    512000k total,   347236k used,   164764k free,        0k buffers
    Swap:        0k total,        0k used,        0k free,        0k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
        1 root      18   0  2152  664  572 S  0.0  0.1   0:01.33 init [3]
     3476 root      15   0  7972 5256 1796 S  0.0  1.0   0:00.09 /usr/bin/perl /usr/local/cp
     3485 root      15   0 12424 3280  136 S  0.0  0.6   0:00.00 /usr/local/apache/bin/httpd
     3487 nobody    16   0 12844 4884 1400 S  0.0  1.0   0:00.22 /usr/local/apache/bin/httpd
     3833 centreho  15   0  3256 1712 1236 S  0.0  0.3   0:00.13 imap
     4084 centreho  15   0  3216 1688 1212 S  0.0  0.3   0:00.14 imap
     5290 nobody    18   0 12708 4804 1332 S  0.0  0.9   0:00.27 /usr/local/apache/bin/httpd
     5512 centreho  15   0  3128 1444 1152 S  0.0  0.3   0:00.13 imap
     6085 root      15   0  6064 4284 1320 S  0.0  0.8   0:00.03 queueprocd - wait to proces
     6093 root      18   0  7812 5088 1712 S  0.0  1.0   0:00.18 tailwatchd
     6096 mailman   19   0 10384 4360  772 S  0.0  0.9   0:00.00 /usr/local/cpanel/3rdparty/
     6102 root      18   0  4112 2160 1076 S  0.0  0.4   0:00.00 cPhulkd - processor
     6112 mailman   18   0 10320 6036 2456 S  0.0  1.2   0:00.19 /usr/local/cpanel/3rdparty/
     6113 mailman   18   0 10372 6048 2456 S  0.0  1.2   0:00.19 /usr/local/cpanel/3rdparty/
     6114 mailman   18   0 10372 6048 2456 S  0.0  1.2   0:00.19 /usr/local/cpanel/3rdparty/
     6115 mailman   18   0 10320 6044 2456 S  0.0  1.2   0:00.18 /usr/local/cpanel/3rdparty/
     6116 mailman   18   0 10416 6084 2456 S  0.0  1.2   0:00.20 /usr/local/cpanel/3rdparty/
     6117 mailman   18   0 10452 6124 2456 S  0.0  1.2   0:00.17 /usr/local/cpanel/3rdparty/
     6120 mailman   18   0 10368 6044 2456 S  0.0  1.2   0:00.19 /usr/local/cpanel/3rdparty/
     6121 mailman
     
  14. lijeeshsd

    lijeeshsd Active Member

    Joined:
    Apr 22, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    To know what is eating up memory, server needs to be continuously monitored for some time. If your VPS is fully managed (like SubHosting.net do) by your web host, then they can do this monitoring and analysis for you.

    If you do not use mailman mailing lists, disable mailman service. Also, if there are only a few domains hosted in your VPS, change DNS service to NSD which takes less memory compared to Bind. There are Apache/PHP/MySQL tweaks to reduce memory usage. I hope your web host should be able to provide this support.
     
  15. Andre Montaut

    Andre Montaut Member

    Joined:
    Feb 4, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    I turned of Mailman Mailing Lists. How do I go about changing the DNS service to NSD? My web hosts are pricks and wont help me out. They just say its up to me to figure it out.

    The hosting company your with how many emails come with the VPS packages? I didn't see it in the list.

    The way my company is setup, we have over 100 subdomains (1 per agent we hire) and each agent has their own email address. This number is constantly growing and could possibly hit 1k in the future. I need to make sure I get a good hosting company, one that can manage the server due to the fact I have no clue how to manage them myself. Also can they migrate emails if I do decide to switch over?
     
    #15 Andre Montaut, Apr 24, 2011
    Last edited: Apr 24, 2011
  16. lijeeshsd

    lijeeshsd Active Member

    Joined:
    Apr 22, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    To disable mailman, ensure that it is disabled in from following locations in WHM:

    - Server Configuration >> Tweak Settings
    - Service Configuration >> Service Manager

    You can switch to NSD from following section on WHM:

    - 'Service Configuration >> Nameserver Selection'

    I have sent you a PM. Please check it.
     
  17. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    Why can't you open a ticket to cPanel? They will fix it for sure. Please do not forget to post the fix here.
     
  18. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    For the SpamAssassin issue, please open up a ticket as LinuxTechie mentions. Please post the ticket number here. It is possible that you simply need to run "/scripts/checkperlmodules --force" to get SpamAssassin to function properly, although it may not complete if your system is out of memory at the current time.

    Next, I did want to mention that, while we can assist with SpamAssassin functioning, we are not able to provide system administration services to troubleshoot load and memory issues. Those are outside the scope of our support boundaries. We do frequently help to provide pointers when a ticket has been opened on what might be the issue and where you can go for further research, but unless cPanel itself is the cause for the load or memory issues, that falls under system administration instead. You may wish to consider contacting a server administrator via one of the companies at this link:

    Dev & Sys Admin Services « Application Catalog

    Alternatively, you may simply need to request additional memory from your provider if your VPS has a low memory allotment.
     
Loading...

Share This Page