Email and Https

info@fastgrp.net
that mail can send to any mail domain like ( hotmail-yahoo )
while cant send to Gmail”

Some sanity checks and ideas:

  1. Confirm the flush and pull workers run on schedule:

frappe@erpnext:~/frappe-bench$ find . -name *.log | xargs grep frappe.email.queue.flush
/logs/worker.error.log:05:19:27 short: frappe.utils.background_jobs.execute_job(async=True, event=u’all’, job_name=u’frappe.email.queue.flush’, kwargs={}, method=u’frappe.email.queue.flush’, site=u’aproposcomputing.com’, user=u’Administrator’) (36e8edb6-ee0a-4b44-88b6-4ea0bef29883)

frappe@erpnext:~/frappe-bench$ find . -name *.log | xargs grep frappe.email.doctype.email_account.email_account.pull
./logs/worker.error.log:05:19:28 short: frappe.utils.background_jobs.execute_job(async=True, event=u’all’, job_name=u’frappe.email.doctype.email_account.email_account.pull’, kwargs={}, method=u’frappe.email.doctype.email_account.email_account.pull’, site=u’aproposcomputing.com’, user=u’Administrator’) (3a2871af-2ec6-430d-9d9d-3d3f446264da)

  1. My experience is gmail ignores login attempts less than say 15 minutes apart!
    frappe@erpnext:~/frappe-bench$ find . -name *.json | xargs grep scheduler_interval
    ./sites/common_site_config.json: “scheduler_interval”: 900,
    ./sites/aproposcomputing.com/site_config.json: “scheduler_interval”: “300”,

To change the interval do this:
frappe@erpnext:~/frappe-bench$ bench set-config scheduler_interval 900

Then restart the worker processes like this:
frappe@erpnext:~/frappe-bench$ sudo supervisorctl restart all
frappe-bench-frappe-schedule: stopped
frappe-bench-frappe-default-worker-0: stopped
frappe-bench-frappe-long-worker-0: stopped
frappe-bench-frappe-short-worker-0: stopped
frappe-bench-frappe-web: stopped
frappe-bench-node-socketio: stopped
frappe-bench-redis-queue: stopped
frappe-bench-redis-cache: stopped
frappe-bench-redis-socketio: stopped
frappe-bench-frappe-schedule: started
frappe-bench-frappe-default-worker-0: started
frappe-bench-frappe-long-worker-0: started
frappe-bench-frappe-short-worker-0: started
frappe-bench-frappe-web: started
frappe-bench-node-socketio: started
frappe-bench-redis-queue: started
frappe-bench-redis-cache: started
frappe-bench-redis-socketio: started

  1. As stated in the ‘Https and http Email’ thread ensure the correct ports are open for the smtp and imap (or pop3) service of your provider gmail etc. In a VM environment, check that the port between the guest and host is open!

  2. In my case with gmail I got a ‘password incorrect’ error so Option 2 worked for me -
    Less secure apps & your Google Account - Google Account Help