SocketMail Knowledge Base  

Home / Browse Categories / Socketmail Pro / Could not start the POP3/SMTP daemon, how to start manually ?

 Could not start the POP3/SMTP daemon, how to start manually ? Page Tools

Basic Diagnosis
 
If the status of the daemon is saying  "Unable to check status", dont get panic. Check in the /daemon/ folder. Check the permission of the /pid/ folder and it subfolders (i.e ./zpopd/ and ./zsmtpd/ subfolder). Ensure that they have enough permission. Make sure the permission is 777. If not, try CHMOD 777 to /pid/ folder and it subfolders. If this is done, then check back in your Webmaster Admin CP, refresh the page if necessary to get the latest information.
 
Also ensure that the following files have enough permission, at least 755 :
  • zsmtpd.sh
  • zpopd.sh
  • zsmtpd.pl
  • zpopd.pl

And the rest of the files (zsmtpd.config.pl and zpopd.config.pl) are chmod 777.

 
If the status still saying "Unable to check status". This could be because your PHP is in safe-mode. If so, you wont be able to start/stop the daemon service from the admincp, you need to do it manually.
 
Start/Stop Service Manually
 
To start/stop or check the daemon status manually, firstly you need to be able to login to the server and be able to issue commands. Standard way of connecting to server (used by almost all hosting) is using SSH (secure shell) connection.
 
Assuming that you are able to SSH, you need to run the shell script. The syntax of the shell script is "sh zsmtpd.sh/zpopd.sh start/stop/status". Below are the steps what you need to do:
 
  1. Change directory, go to the /daemon/ folder.
  2. To start, the commands are:
    (a) for POP3 server
    sh zpopd.sh start
    (b) for SMTP server
    sh zsmtpd.sh start
  3. To stop, the commands are:
    (a) for POP3 server
    sh zpopd.sh stop 
    (b) for SMTP server
    sh zsmtpd.sh stop
If somehow you are unable to start/stop using the shell script (i.e. zsmtpd.sh and zpopd.sh file) as mentioned above or you are on Windows  server, you may run the daemon script directly from the command line. The command is
    perl zpopd.pl
and 
    perl zsmtpd.pl
for POP3 server and SMTP server respectively. However, running the server this way should be the last resort. This is because, to stop or to check for running services require you to have some system admin skills i.e. you are a techie abt the server.
 
If you are using SocketMail Pro, its recommended to do the xinetd/inetd integration rather than running the daemon. However, its your choice.

 


Viewer Comments [add comment]
There are no viewer comments for this article/topic.
General Information
Article ID: 98
Author: KB Support
Created: 23 Jul, 2006
Modified: 26 Jul, 2006
Views: 4395

Average Visitor Rating:

0 (out of 5)
(0 Votes)
Cast Your Vote

Attachment Files:
None

Related Articles
Setting up xinetd based POP3 server
Setting up xinetd based SMTP (for outgoing mail)



Powered by SocketKB version 1.1.5
Copyright © 2004 Creative Digital Resources Sdn Bhd. All rights reserved.