I spent the most part of my day yesterday trying to setup incoming e-mail. I use GMail/Google Suite. To logon in GMail i use two-factor authentication. So I requested an app password for SuiteCRM. I run Nginx with php7.1-fpm and ssl on my server. My settings:
Then please come back and tell us what you found, I am interested in real-world difficulties configuring SuiteCRM email so we can try and get this right once and for all. Thanks.
Mon Nov 13 16:58:02 2017 [21565][-none-][FATAL] Configuration variable date.timezone is not set, guessed timezone Europe/Berlin. Please set date.timezone="Europe/Berlin" in php.ini!
Mon Nov 13 16:58:02 2017 [21565][1][FATAL] Job runs too frequently, throttled to protect the system.
Perhaps a stupid question, but does this really apply to this problem? SMTP works fine, I can send mails it’s the receiving that doesn’t work.
Ok, I thought your error was in Outbound, reading more carefully I see it’s inbound. Sorry.
You should solve the FATAL error before anything else. It means PHP has stopped executing, so it can break the app in all sorts of ways.
Try to figure out if that error is coming from the main app, or from the cron jobs. How often does it occur in the logs? Only when you access a page in SuiteCRM, or every minute?
Then try to get the date.timezone parameter configured correctly in php.ini.
That “throttled” things basically means a job didn’t run, because it was running too frequently. It shouldn’t be problematic, though it would be nice to know which job it is, and why it’s giving that error.
There’s no chance you have a double-configuration of cron jobs, and have them running twice per minute? If you turn them off, do they stop?
You can also try raising your logging level to DEBUG and see if that way you can figure out what it’s trying to do.
The decision on whether to go back to 7.8 (reverting to a backup - there is no real “downgrade” option) should be made based on the features you use and how you use them (especially the theme, and the email module).
Tue Nov 14 00:04:41 2017 [1887][1][FATAL] SCHEDULERS: could not get an IMAP connection resource for ID [ 8e602bcc-9132-5f71-6972-5a09da9c33ae ]. Skipping mailbox [ maarten@maartenprovo.be ].
That upstream error is not common in SuiteCRM, I’ve never seen it. Since you’re using nginx, which is much less common with SuiteCRM users than Apache, I tried googling it and found that it is a common problem with nginx:
I found a script somewhere to test the working of php-imap, that one can succesfully connect and show the total number of messages in my inbox. It uses the ‘{imap.gmail.com:993/service=imap/ssl/validate-cert}INBOX’ syntax to connect with succes.
I also found a topic on github explaining some kind of password problem, so I hardcoded the password in InboundEmail.php, no succes.
I tried adding my ISP’s imap (telenet.be) but it gives me the same problem.
I have noticed php running very slow/crashing when I execute the test settings but the errorlog for php stays empty.
Maybe it’s time to try a nginx upgrade, or even a move to Apache. Or a PHP upgrade. Sometimes these things magically solve this kind of weird problems…