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 05-18-2006, 01:52 AM
Active Member
 
Posts: 37
Default Setting up a cronjob in Webmin

Hello,

I'm trying to set up a cronjob through webmin in order to allow fetchmail to run periodically in retrieving a number of email accounts from a remote server to my zimbra accounts.

It seems the cronjob doesn't start though and i'm having to initiate it manually.
Reply With Quote
  #2 (permalink)  
Old 05-18-2006, 02:00 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

I presume you're using the fetchmail icon on the Webmin/Servers page to set this up? You have also set polling enabled? You have also set the 'Schedule Checking'?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 05-18-2006, 02:02 AM
Active Member
 
Posts: 37
Default

Quote:
Originally Posted by phoenix
I presume you're using the fetchmail icon on the Webmin/Servers page to set this up? You have also set polling enabled? You have also set the 'Schedule Checking'?
Yes mate have set all that but it's not polling by itself.
Reply With Quote
  #4 (permalink)  
Old 05-18-2006, 02:04 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

On the System/Scheduled Cron Job does it show an entry for fetchmail and is it enabled?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 05-18-2006, 02:06 AM
Active Member
 
Posts: 37
Default

Quote:
Originally Posted by phoenix
On the System/Scheduled Cron Job does it show an entry for fetchmail and is it enabled?
Yes it shows an entry set as /etc/webmin/fetchmail/check.pl --mail user\.name\@domain\.com --errors
Reply With Quote
  #6 (permalink)  
Old 05-18-2006, 02:06 AM
Active Member
 
Posts: 37
Default

Quote:
Originally Posted by fredo
Yes it shows an entry set as /etc/webmin/fetchmail/check.pl --mail user\.name\@domain\.com --errors
But it doesn't actually run the .fetchmailrc script.
Reply With Quote
  #7 (permalink)  
Old 05-18-2006, 02:07 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

That's incorrect, it should show the following (if you set this up with the webmin fetchmail module):

/etc/webmin/fetchmail/check.pl --null

It runs that cron job as root not the user.
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 05-18-2006, 02:09 AM
Active Member
 
Posts: 37
Default

Quote:
Originally Posted by phoenix
That's incorrect, it should show the following (if you set this up with the webmin fetchmail module):

/etc/webmin/fetchmail/check.pl --null

It runs that cron job as root not the user.
mmm... dunno mate. I'll be trying to dabble with it.
Reply With Quote
  #9 (permalink)  
Old 05-18-2006, 02:11 AM
Active Member
 
Posts: 37
Default

Quote:
Originally Posted by fredo
mmm... dunno mate. I'll be trying to dabble with it.

Yes, the cronjob command i stated above runs as root also. Should i create a cronjob to execute the .fetchmailrc script for each user ? Could this do the trick ?
Reply With Quote
  #10 (permalink)  
Old 05-18-2006, 02:11 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

It's fairly straight forward using the webmin fetchmail module. I'd suggest you delete that cron job and anything you've created with the fetchmail module and start again. Post back the details when you've done that and describe exactly what you've done (if it doesn't work).
__________________
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.