cron job on default box with fetchmail every hr on cpanel - Unix

This is a discussion on cron job on default box with fetchmail every hr on cpanel - Unix ; I was wondering what the command would be to use fetchmail on a default box on cpanel to check mail every hour...

+ Reply to Thread
Results 1 to 15 of 15

Thread: cron job on default box with fetchmail every hr on cpanel

  1. cron job on default box with fetchmail every hr on cpanel

    I was wondering what the command would be to use fetchmail on a default box
    on cpanel to check mail every hour



  2. Re: cron job on default box with fetchmail every hr on cpanel

    [ removed some unrelated ngs from Followup-To ]

    In comp.os.linux.misc Nospam :
    > I was wondering what the command would be to use fetchmail on a default box
    > on cpanel to check mail every hour


    Dunno what cpanel is, might have heard it?

    Anyway, you'd enter 'crontab -e' unless using system wide crontab
    and put in something like the following to run the command every
    hour (at 22 minutes):

    22 * * * * /usr/bin/fetchmail -s

    See for more info:

    man 5 crontab
    man fetchmail

    Good luck

    --
    Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
    mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
    #bofh excuse 96: Vendor no longer supports the product

  3. Re: cron job on default box with fetchmail every hr on cpanel

    Michael Heiming wrote:
    > [ removed some unrelated ngs from Followup-To ]
    >
    > In comp.os.linux.misc Nospam :
    >> I was wondering what the command would be to use fetchmail on a default box
    >> on cpanel to check mail every hour

    >
    > Dunno what cpanel is


    It's a web-GUI front-end for shared web hosting systems. Basically a
    simplified interface that lets non-sysadmins think they're sysadmins and
    gets in the way of people who know what they're doing. (Can you tell
    I'm not a fan?) http://www.cpanel.com/index.html

    IIRC, setting up cron jobs has its own GUI in cPanel and so the usual
    method of 'crontab -e' might not work. Dunno. The OP should be
    checking cPanel's docs, IMHO.

  4. Re: cron job on default box with fetchmail every hr on cpanel


    "Michael Heiming" wrote in message
    news:2anh94-nsf.ln1@news.heiming.de...
    > [ removed some unrelated ngs from Followup-To ]
    >
    > In comp.os.linux.misc Nospam :
    > > I was wondering what the command would be to use fetchmail on a default

    box
    > > on cpanel to check mail every hour

    >
    > Dunno what cpanel is, might have heard it?
    >
    > Anyway, you'd enter 'crontab -e' unless using system wide crontab
    > and put in something like the following to run the command every
    > hour (at 22 minutes):
    >
    > 22 * * * * /usr/bin/fetchmail -s
    >
    > See for more info:
    >
    > man 5 crontab
    > man fetchmail
    >
    > Good luck


    I am running cpanel ( a control panel for hosting domains) off a shared
    linuxserver accessing it via windows, I tried your command, but nothing was
    done



  5. Re: cron job on default box with fetchmail every hr on cpanel

    In comp.os.linux.misc Nospam :

    > "Michael Heiming" wrote in message
    > news:2anh94-nsf.ln1@news.heiming.de...
    >> [ removed some unrelated ngs from Followup-To ]


    >> In comp.os.linux.misc Nospam :
    >> > I was wondering what the command would be to use fetchmail on a default

    > box
    >> > on cpanel to check mail every hour


    >> Dunno what cpanel is, might have heard it?


    >> Anyway, you'd enter 'crontab -e' unless using system wide crontab
    >> and put in something like the following to run the command every
    >> hour (at 22 minutes):


    >> 22 * * * * /usr/bin/fetchmail -s


    >> See for more info:


    >> man 5 crontab
    >> man fetchmail


    > I am running cpanel ( a control panel for hosting domains) off a shared

    ^^^^^^
    > linuxserver accessing it via windows, I tried your command, but nothing was

    ^^^^^^^^^^^
    > done


    This is likely the problem, I just use ssh from a Linux box to
    access other *nix server and can assure you the above should just
    work fine on almost any *nix server.

    You might have better luck asking in some "cpanel" support forum,
    if there is such thing.

    Good luck

    --
    Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
    mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
    #bofh excuse 248: Too much radiation coming from the soil.

  6. Re: cron job on default box with fetchmail every hr on cpanel

    On Feb 5, 8:42 am, "Nospam" wrote:
    > "Michael Heiming" wrote in message
    >
    > news:2anh94-nsf.ln1@news.heiming.de...
    >
    >
    >
    > > [ removed some unrelated ngs from Followup-To ]

    >
    > > In comp.os.linux.misc Nospam :
    > > > I was wondering what the command would be to use fetchmail on a default

    > box
    > > > on cpanel to check mail every hour

    >
    > > Dunno what cpanel is, might have heard it?

    >
    > > Anyway, you'd enter 'crontab -e' unless using system wide crontab
    > > and put in something like the following to run the command every
    > > hour (at 22 minutes):

    >
    > > 22 * * * * /usr/bin/fetchmail -s

    >
    > > See for more info:

    >
    > > man 5 crontab
    > > man fetchmail

    >
    > > Good luck

    >
    > I am running cpanel ( a control panel for hosting domains) off a shared
    > linuxserver accessing it via windows, I tried your command, but nothing was
    > done


    See the example cpanel page at http://x3demob.cpx3demo.com:2082/
    frontend/x3/cron/simplecron.html?
    and look for similar on your cpanel.

    Fill in the schedule info as per your requirements, and put /usr/bin/
    fetchmail -s into the "Command to run" entry
    Then "Save Crontab" and that should do it.

    FWIW, if you had more sophisticated access, I wouldn't suggest running
    fetchmail through a crontab. Instead, I'd suggest that you run
    fetchmail as a daemon, with a retrieval period set through the
    commandline option.

    HTH
    --
    Lew




  7. Re: cron job on default box with fetchmail every hr on cpanel


    "Michael Heiming" wrote in message
    news:6m2k94-389.ln1@news.heiming.de...
    > In comp.os.linux.misc Nospam :
    >
    > > "Michael Heiming" wrote in message
    > > news:2anh94-nsf.ln1@news.heiming.de...
    > >> [ removed some unrelated ngs from Followup-To ]

    >
    > >> In comp.os.linux.misc Nospam :
    > >> > I was wondering what the command would be to use fetchmail on a

    default
    > > box
    > >> > on cpanel to check mail every hour

    >
    > >> Dunno what cpanel is, might have heard it?

    >
    > >> Anyway, you'd enter 'crontab -e' unless using system wide crontab
    > >> and put in something like the following to run the command every
    > >> hour (at 22 minutes):

    >
    > >> 22 * * * * /usr/bin/fetchmail -s

    >
    > >> See for more info:

    >
    > >> man 5 crontab
    > >> man fetchmail

    >
    > > I am running cpanel ( a control panel for hosting domains) off a shared

    > ^^^^^^
    > > linuxserver accessing it via windows, I tried your command, but nothing

    was
    > ^^^^^^^^^^^
    > > done

    >
    > This is likely the problem, I just use ssh from a Linux box to
    > access other *nix server and can assure you the above should just
    > work fine on almost any *nix server.


    This is the error msg I get from the emailed cron job:

    /bin/sh: line 1: 22: command not found

    This is what the cronjob says:

    22 * * * * /usr/bin/fetchmail -s



  8. Re: cron job on default box with fetchmail every hr on cpanel

    Nospam wrote:
    > "Michael Heiming" wrote in message
    > news:6m2k94-389.ln1@news.heiming.de...
    >> In comp.os.linux.misc Nospam :
    >>
    >>> I am running cpanel ( a control panel for hosting domains) off a shared

    >> ^^^^^^
    >>> linuxserver accessing it via windows, I tried your command, but nothing

    > was
    >> ^^^^^^^^^^^
    >>> done

    >> This is likely the problem, I just use ssh from a Linux box to
    >> access other *nix server and can assure you the above should just
    >> work fine on almost any *nix server.

    >
    > This is the error msg I get from the emailed cron job:
    >
    > /bin/sh: line 1: 22: command not found
    >
    > This is what the cronjob says:
    >
    > 22 * * * * /usr/bin/fetchmail -s


    The above is a full entry for a crontab file where "22 * * * *" tells
    cron when to run the command "/usr/bin/fetchmail -s". The error message
    "22: command not found" suggests that cpanel wants just a shell command
    to run, not a full crontab line. So edit the line to read simply
    "/usr/bin/fetchmail -s". Use whatever other method cpanel provides to
    setup when to run the cron job.

  9. Re: cron job on default box with fetchmail every hr on cpanel

    In news:nnhn94-ema.ln1@mail.binaryfoundry.ca,
    John-Paul Stewart wrote:

    >> /bin/sh: line 1: 22: command not found
    >> This is what the cronjob says:
    >> 22 * * * * /usr/bin/fetchmail -s

    >
    > The above is a full entry for a crontab file where "22 * * * *" tells
    > cron when to run the command "/usr/bin/fetchmail -s". The error
    > message "22: command not found" suggests that cpanel wants just a
    > shell command to run, not a full crontab line. So edit the line to read
    > simply "/usr/bin/fetchmail -s". Use whatever other method cpanel
    > provides to setup when to run the cron job.


    Sheeesh ... why not just use "crontab -e"? Using cpanel for such a simple
    task is like opening the garage door, starting the car, backing out into the
    street and then driving to the next-door neighbors house to tell them you
    had an earthquake.


  10. Re: cron job on default box with fetchmail every hr on cpanel

    patrick wrote:
    > In news:nnhn94-ema.ln1@mail.binaryfoundry.ca,
    > John-Paul Stewart wrote:
    >
    >>> /bin/sh: line 1: 22: command not found
    >>> This is what the cronjob says:
    >>> 22 * * * * /usr/bin/fetchmail -s

    >> The above is a full entry for a crontab file where "22 * * * *" tells
    >> cron when to run the command "/usr/bin/fetchmail -s". The error
    >> message "22: command not found" suggests that cpanel wants just a
    >> shell command to run, not a full crontab line. So edit the line to read
    >> simply "/usr/bin/fetchmail -s". Use whatever other method cpanel
    >> provides to setup when to run the cron job.

    >
    > Sheeesh ... why not just use "crontab -e"? Using cpanel for such a simple
    > task is like opening the garage door, starting the car, backing out into the
    > street and then driving to the next-door neighbors house to tell them you
    > had an earthquake.
    >


    Some hosting providers would prefer to give the user a web-based
    administration interface than try to lock down a login session.

    I kind of see their reasoning; Linux is pretty darn secure when it comes
    to deflecting network-based attacks, but local access (read: login
    shell) priviledge escalation bugs are found and fixed with some frequency.

    Such systems can be secured, yes...but it requires more work than the
    hosting provider might consider cost effective. It may seem strange,
    but hosting is cheap enough these days that teens who just want their
    own website are getting accounts on their parents' dime. One-click
    installs are only a step or two above Myspace accounts.
    --
    Rosetta Code -- Building a Rosetta Stone for Programmers
    http://rosettacode.org

  11. Re: cron job on default box with fetchmail every hr on cpanel


    "John-Paul Stewart" wrote in message
    news:nnhn94-ema.ln1@mail.binaryfoundry.ca...
    > Nospam wrote:
    > > "Michael Heiming" wrote in message
    > > news:6m2k94-389.ln1@news.heiming.de...
    > >> In comp.os.linux.misc Nospam :
    > >>
    > >>> I am running cpanel ( a control panel for hosting domains) off a

    shared
    > >> ^^^^^^
    > >>> linuxserver accessing it via windows, I tried your command, but

    nothing
    > > was
    > >> ^^^^^^^^^^^
    > >>> done
    > >> This is likely the problem, I just use ssh from a Linux box to
    > >> access other *nix server and can assure you the above should just
    > >> work fine on almost any *nix server.

    > >
    > > This is the error msg I get from the emailed cron job:
    > >
    > > /bin/sh: line 1: 22: command not found
    > >
    > > This is what the cronjob says:
    > >
    > > 22 * * * * /usr/bin/fetchmail -s

    >
    > The above is a full entry for a crontab file where "22 * * * *" tells
    > cron when to run the command "/usr/bin/fetchmail -s". The error message
    > "22: command not found" suggests that cpanel wants just a shell command
    > to run, not a full crontab line. So edit the line to read simply
    > "/usr/bin/fetchmail -s". Use whatever other method cpanel provides to
    > setup when to run the cron job.


    Thanks,

    The mailbox I am trying to access is a yahoo mail account, the server is set
    in fetchmail as pop.mail.yahoo.com, with my username and password, no remote
    mailbox, and set to arrive in the inbox, I tried it with fetchmail without
    running a cron job, and nothing was downloaded even though it went through
    the process, and my yahoo email address clearly had new mail.



  12. Re: cron job on default box with fetchmail every hr on cpanel


    "Nospam" wrote in message
    news:Z1lyh.27$fa.20@newsfe1-win.ntli.net...
    >
    > "John-Paul Stewart" wrote in message
    > news:nnhn94-ema.ln1@mail.binaryfoundry.ca...
    > > Nospam wrote:
    > > > "Michael Heiming" wrote in message
    > > > news:6m2k94-389.ln1@news.heiming.de...
    > > >> In comp.os.linux.misc Nospam :
    > > >>
    > > >>> I am running cpanel ( a control panel for hosting domains) off a

    > shared
    > > >> ^^^^^^
    > > >>> linuxserver accessing it via windows, I tried your command, but

    > nothing
    > > > was
    > > >> ^^^^^^^^^^^
    > > >>> done
    > > >> This is likely the problem, I just use ssh from a Linux box to
    > > >> access other *nix server and can assure you the above should just
    > > >> work fine on almost any *nix server.
    > > >
    > > > This is the error msg I get from the emailed cron job:
    > > >
    > > > /bin/sh: line 1: 22: command not found
    > > >
    > > > This is what the cronjob says:
    > > >
    > > > 22 * * * * /usr/bin/fetchmail -s

    > >
    > > The above is a full entry for a crontab file where "22 * * * *" tells
    > > cron when to run the command "/usr/bin/fetchmail -s". The error message
    > > "22: command not found" suggests that cpanel wants just a shell command
    > > to run, not a full crontab line. So edit the line to read simply
    > > "/usr/bin/fetchmail -s". Use whatever other method cpanel provides to
    > > setup when to run the cron job.

    >
    > Thanks,
    >
    > The mailbox I am trying to access is a yahoo mail account, the server is

    set
    > in fetchmail as pop.mail.yahoo.com, with my username and password, no

    remote
    > mailbox, and set to arrive in the inbox, I tried it with fetchmail without
    > running a cron job, and nothing was downloaded even though it went through
    > the process, and my yahoo email address clearly had new mail.
    >


    Just received an email from the cronjob saying:

    fetchmail: no mailservers have been specified.

    A little stuck as I did place pop.mail.yahoo.com



  13. Re: cron job on default box with fetchmail every hr on cpanel

    On Wed, 07 Feb 2007 14:06:49 GMT, Nospam wrote:

    > The mailbox I am trying to access is a yahoo mail account, the server is set
    > in fetchmail as pop.mail.yahoo.com, with my username and password, no remote
    > mailbox, and set to arrive in the inbox, I tried it with fetchmail without
    > running a cron job, and nothing was downloaded even though it went through
    > the process, and my yahoo email address clearly had new mail.


    I use the fetchyahoo rpm to pull yahoo email.
    It then forwards it into the user account of my choice.

    You can md5sum hash your passwd if you do not want have your password as
    clear text in the .fetchyahoorc file.

    To get a hash set $(echo -n "pw_here" | md5sum) ; echo $1

  14. Re: cron job on default box with fetchmail every hr on cpanel


    "Bill Marcum" wrote in message
    news:359p94-gat.ln1@don.localnet...
    > ["Followup-To:" header set to comp.unix.questions.]
    > On Wed, 07 Feb 2007 14:38:48 GMT, Nospam
    > wrote:
    > >
    > > Just received an email from the cronjob saying:
    > >
    > > fetchmail: no mailservers have been specified.
    > >
    > > A little stuck as I did place pop.mail.yahoo.com
    > >

    > Can you post your .fetchmailrc, without the username and password?
    >


    I am sorry but I cannot find this file, I am on windows using cpanel as a
    web based administration panel, accessing fetchmail as part of Horde.

    I went through the option in Horde to setup fetchmail, selected auto detect
    pop mail, typed pop.mail.yahoo.com for the server, left nothing in the
    remote box, inbox for the local mailbox. This is the exact error
    horde/fetchmail says:

    Fetchmail: Cannot connect to the remote mail server: Can't open mailbox
    {pop.mail.yahoo.com:995/pop3/ssl/novalidate-cert}: invalid remote
    specification



  15. Re: cron job on default box with fetchmail every hr on cpanel

    > > Just received an email from the cronjob saying:
    > >
    > > fetchmail: no mailservers have been specified.
    > >
    > > A little stuck as I did place pop.mail.yahoo.com
    > >

    > Can you post your .fetchmailrc, without the username and password?
    >


    I am sorry but I cannot find this file, I am on windows using cpanel as a
    web based administration panel, accessing fetchmail as part of Horde.

    I went through the option in Horde to setup fetchmail, selected auto detect
    pop mail, typed pop.mail.yahoo.com for the server, left nothing in the
    remote box, inbox for the local mailbox. This is the exact error
    horde/fetchmail says:

    Fetchmail: Cannot connect to the remote mail server: Can't open mailbox
    {pop.mail.yahoo.com:995/pop3/ssl/novalidate-cert}: invalid remote
    specification




+ Reply to Thread