Support module is somehow not picking up emails from pop3

56 views
Skip to first unread message

atlury

unread,
Jun 18, 2012, 5:33:01 AM6/18/12
to ERPNext Developer Forum
Request help, the support module is somehow not picking up emails from
pop mail server of gmail. The smtp/pop settings are correct and it is
sending out emails say when creating users but pulling from the pop3
servers.

Erpnext is running in https so i am doing a port forwarding for 443
other than that, the debian updates etc everything are normal and apt-
get etc are getting fetched with no issues at all. Infact when a user
is created, smtp is sending an email as well. Wonder why its not
pulling up mails.

Do we need to run some kind of cron script?

Anand Doshi

unread,
Jun 18, 2012, 7:01:33 AM6/18/12
to erpnext-dev...@googlegroups.com
Hi,

First, you will need to update erpnext. To do that, run the following
command after starting terminal
Assuming that you have installed erpnext in /var/www/erpnext

cd /var/www/erpnext && lib/wnf.py --pull origin master && lib/wnf.py -l

Next,
Are you using erpnext's virtualbox image?
if yes, you can start terminal and run this command:
wget http://erpnext.com/files/scheduler_cron.txt && cat
scheduler_cron.txt | crontab -

This will setup cron for you.

If not, what is your erpnext folder path?
In erpnext's virtualbox image, it is /var/www/erpnext

To setup cron, you need to add this line in your crontab.
1. start terminal
2. crontab -e
3. write the following in the blank text editor which opens up
*/3 * * * * cd /var/www/erpnext && /usr/bin/python lib/wnf.py
--run_scheduler >> ~/cron.log 2>&1

replace /var/www/erpnext with your erpnext folder path.

I hope this clears your issue.

We will also update this in the erpnext virualbox image. Thanks for
pointing out the issue.

Thanks,
Anand.
> --
> You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
> To post to this group, send email to erpnext-dev...@googlegroups.com.
> To unsubscribe from this group, send email to erpnext-developer...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/erpnext-developer-forum?hl=en.
>

Anand Doshi

unread,
Jun 18, 2012, 7:07:02 AM6/18/12
to erpnext-dev...@googlegroups.com
Hi,

In the first step, ie. update erpnext, you need to run the command using sudo:
cd /var/www/erpnext && sudo lib/wnf.py --pull origin master && sudo
lib/wnf.py -l

Thanks,
Anand.

atlury

unread,
Jun 19, 2012, 3:24:10 AM6/19/12
to erpnext-dev...@googlegroups.com
yes it works! But "occasionally" it takes more time than scheduled to pickup emails. It works that way in the virtualbox image.

Same thing somehow doesnt pickup when we install it on a normal deb, we do start scheduler as per instructions and the scheduler runs, have to investigate further.

Thanks
>> To post to this group, send email to erpnext-developer-forum@googlegroups.com.
>> To unsubscribe from this group, send email to erpnext-developer-forum+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages