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

Thread: Checking Inbound Emails

  1. #1
    Uzaree is offline Sugar Community Member
    Join Date
    Jun 2006
    Posts
    10

    Default Checking Inbound Emails

    I setup the inbound email box and setup the cron job on my server but I still can't get the check inbound emails to run. Anyone have an idea?

    4.2

  2. #2
    jeg1972 is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    33

    Default Re: Checking Inbound Emails

    I just created a new file containing:

    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=myemail@world.com
    HOME=/

    # run-parts
    */1 * * * * cd /usr/local/apache2/htdocs/live_crm; /usr/local/bin/php -f cron.php > /dev/null 2>&1

    saved it and ran:

    # crontab my_crontab_filename

    and then

    #crontab -l

    should show the full new crontab entry... your permissions and user have to right for this to run of course.

    John

  3. #3
    Uzaree is offline Sugar Community Member
    Join Date
    Jun 2006
    Posts
    10

    Default Re: Checking Inbound Emails

    I'm not sure I did it correctly but I still can't get it to work. My server host company is powweb so if anyone using then and has got this working then any help would be great.

  4. #4
    jeg1972 is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    33

    Default Re: Checking Inbound Emails

    What do you get if you type crontab -l ?

  5. #5
    Uzaree is offline Sugar Community Member
    Join Date
    Jun 2006
    Posts
    10

    Default Re: Checking Inbound Emails

    The hosting company I host through has a GUI that lets me add things to the crontab. I tried to add crontab -l and run it but I don't think it will let me.

  6. #6
    Uzaree is offline Sugar Community Member
    Join Date
    Jun 2006
    Posts
    10

    Default Re: Checking Inbound Emails

    Ok I set my cronjob to email me everytime it runs. So now I get an email with the job runs BUT there isn't anything in the email and still no job created in the cases.

    Is there something wrong with my statement?

    * * * * * cd /www/i/infoware/crm/htdocs; php -f cron.php > /dev/null 2>&1

    Also I don't have Shell access to my webhost.
    Last edited by Uzaree; 2006-06-28 at 04:41 PM.

  7. #7
    nabilbloggs is offline Member
    Join Date
    Jun 2006
    Location
    London
    Posts
    8

    Default Re: Checking Inbound Emails

    Hmmm, having the same problem. I receive a message when I click scheduler that tells me:
    Add this line to your crontab:
    * * * * * cd /srv/www/htdocs/sugar; php -f cron.php > /dev/null 2>&1

    SO, I opened crontab in a text editor and added
    * * * * * root cd /srv/www/htdocs/sugar; php -f cron.php > /dev/null 2>&1
    I added the user name when it didn't work without it and some other post recommended it.

    The whole crontab file looks like this
    SHELL=/bin/sh
    PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
    MAILTO=root
    #
    # check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
    #
    -*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1
    * * * * * root cd /srv/www/htdocs/sugar; php -f cron.php > /dev/null 2>&1

    New install on new box
    SUSE 10.1
    Sugar 4.2.0d
    Apache 2.2
    PHP 5

    Any help much appreciated

    Thanks

  8. #8
    jeg1972 is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    33

    Default Re: Checking Inbound Emails

    Type:

    #crontab -l

    And post here what you see...

  9. #9
    nabilbloggs is offline Member
    Join Date
    Jun 2006
    Location
    London
    Posts
    8

    Default Re: Checking Inbound Emails

    no crontab for root

    Not good I presume....

    There is a crontab script in /etc and roo it owner. Do you know how I can correct this?

    Tks

  10. #10
    jeg1972 is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    33

    Default Re: Checking Inbound Emails

    As I said earlier up the thread, try this:

    Create a new file containing the following and save it as 'my_crontab_filename' in /etc/:

    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=myemail@world.com
    HOME=/

    # run-parts
    */1 * * * * cd /usr/local/apache2/htdocs/live_crm; /usr/local/bin/php -f cron.php > /dev/null 2>&1

    Then type:

    # crontab my_crontab_filename

    and then

    #crontab -l

    should show the full new crontab entry... your permissions and user have to right for this to run of course.

    John

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)

Bookmarks

Posting Permissions

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