Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Setting up a cronjob in Webmin

  1. #1
    fredo is offline Active Member
    Join Date
    Apr 2006
    Posts
    37
    Rep Power
    9

    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.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,506
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    fredo is offline Active Member
    Join Date
    Apr 2006
    Posts
    37
    Rep Power
    9

    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.

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,506
    Rep Power
    57

    Default

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


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    fredo is offline Active Member
    Join Date
    Apr 2006
    Posts
    37
    Rep Power
    9

    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

  6. #6
    fredo is offline Active Member
    Join Date
    Apr 2006
    Posts
    37
    Rep Power
    9

    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.

  7. #7
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,506
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    fredo is offline Active Member
    Join Date
    Apr 2006
    Posts
    37
    Rep Power
    9

    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.

  9. #9
    fredo is offline Active Member
    Join Date
    Apr 2006
    Posts
    37
    Rep Power
    9

    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 ?

  10. #10
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,506
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 10:12 AM
  3. Replies: 13
    Last Post: 05-15-2007, 06:41 AM
  4. Replies: 9
    Last Post: 04-14-2007, 08:31 AM
  5. Network edition - strange behavior
    By goetzi in forum Installation
    Replies: 6
    Last Post: 11-16-2005, 03:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •