SocketMail Knowledge Base  

Home / Browse Categories / Socketmail Lite / Implementation / Setting cron-job fetchmail mechanism

 Setting cron-job fetchmail mechanism Page Tools

Using the cron-job based fetchmail is certainly much more efficient than set it to 'Manual'. Please refer to Webmaster Admin-> Profile page.

To set the cronjob, from your control panel click on 'Crontab Manager' for Plesk or 'Crontab'/'Cronjob' for CPanel or any link that have similar meaning. The sample screen I have here is using Plesk.

Cron job definition are split into Minutes, Hour, Day of the Month, Month, Day of Week and the command to execute. Entering '*' (asterisk) means all. If you want your mail to be fetched every 10 minutes, in the minutes field, set it as */10.

http://forum.socketmail.com/uploads/cronjob_plesk.jpg

At the Command field, enter the following :
php -q /path/to/socketmailLite/system-files/pullpop3.php

And done. Really? Not really

Now, in the Webmaster Admin, for all the domains that the pop3 mail server is on the same server where the cron-job is running, need to set the mail server name to localhost instead of mail.svr.me. This is because the cron job is running in the system at background, and in some server their network or security settings dissallow the internal to call up their own local domains, but localhost is ok.
 
Your server using Qmail?
 
If your server is using Qmail, you need to specify a special flag in /system-files/pullpop3.php
 
Open /system-files/pullpop3.php file and find the following statement (around line #23):
define('__QMAIL__', 0);
change the value zero (0) to 1 to indicate that your server is using Qmail. Example :
define('__QMAIL__', 1);
 
Save the file.


Viewer Comments [add comment]
There are no viewer comments for this article/topic.
General Information
Article ID: 70
Author: KB Support
Created: 23 Feb, 2005
Modified: 31 Aug, 2005
Views: 3626

Average Visitor Rating:

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

Attachment Files:
None

Related Articles
Fetch-mail mechanism
I've installed but I cant received mails from other mail services such as hotmail or yahoo, etc.



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