Cases are not creating when I got new incoming mail

Hi ,
I have done configuration inbound mails ,now I am getting all my mail in MAIL module but when I got new mail it is not creating new CASE automatically because ,when I was creating inbound mail I have given Create Case from Email enble like shown in below.

forQuestion

I have done the setting of AOP show in below

AOPforquesstion

I have done repair also but case is not creating ,

How can I do this any solution please ,
Expecting : When I get incoming email ,automatically one case should create ,
how can I do this one ,please help on it .

Thanks
Sandeep

@all please can any one help on it.

Thanks
Sandeep

Hi,
did you have a look at the logs, maybe you can find some hints there?
Besides that, are you sure your scheduler (cron.php) is active and working?

@diligent ,Thank you so much for you valuable response ,

I have done this Cron set like shown below

In order to run CRM Schedulers, edit your web server user's crontab file with this command:
sudo crontab -e -u apache
... and add the following line to the crontab file:
*    *    *    *    *     cd /var/www/html/CRM; php -f cron.php > /dev/null 2>&1

this is running fine but I am getting one error that is not understanding,like show in below ,

Aug  6 08:15:01 li1987-120 crond[523]: (www-data) ERROR (getpwnam() failed)
Aug  6 08:15:01 li1987-120 CROND[13440]: (root) CMD (cd /var/www/html/CRM; php -f cron.php > /dev/null 2>&1)

please give me solution ,how can i do this ,

when run php cron.php file ,i am getting below error ,

 Exception: cron.php running with user that is not in allowed_cron_users in config.php in /var/www/html/CRM/include/utils.php:1884
Stack trace:
#0 /var/www/html/CRM/cron.php(70): sugar_die('cron.php runnin...')
#1 {main}
  thrown in /var/www/html/CRM/include/utils.php on line 1884

Thanks

It looks like instead of using apache user’s crontab, as instructed, you used root's crontab instead.

@pgr ,Thanks for your valuable response ,I have done and case are creating but I got few more challange ,

      should not create ```CASE``` in below senario.
  1. If that incoming mail is [FW:] or [RE] case should not create
    should create CASE in below senario.
  2. if that incoming mail is External and in TO our incoming mail Id should be there

This above points are to avoid dupliacte CASES

how can do this challenge ,

Thanks
Sandeep

@pgr sir and @diligent sir ,Thank you so much for your valuable response ,I appriciated your support ,

I came with one issue that related to Case creation when incoming mail comes into CRM ,
automatically CASE has to create ,but this is happending at time, cases are creating when cron job started and all incoming mail are imported in CRM inbox ,after that if I drop any incoming mail to test@gmail.com from mail id sandeep@gmail.com ,I able to see my mail in CRM inbox but CASE is not creating ,

I did not undertand why at time cases are creating and after that why case is not creating when any new incoming mail comes ,
I have done 50% but i was struggling last few days please help on it …

Thanks
Sandeep