Hello, I've browsed these forums and elsewhere online extensively and tried about every solution I could find and I'm still experiencing issues with Gmail's configuration. I'm running OS Ticket 1.9.14.
We have 2 Google Apps for Business accounts. The account I'm trying to configure is firstname.lastname@example.org. I'm experiencing the following issues:
- Fetching will not work. When I enter the information on the SCP > Emails > Emails page, it takes a few minutes (Loading...) then gives the following error: Invalid login. Check IMAP settings.
- SMTP seems to send to about any domain but Company B. I get delivery failure notices from Gmail when sending to Company B, but for whatever reason instead of showing the address I put in OS Ticket, the failure shows the recipient as email@example.com instead of firstname.lastname@example.org. This may be a Gmail issue, I have no idea, but I have not experienced this with any other device or Gmail account in either company.
When I try to edit the settings for the support account (email@example.com) under SCP > Emails > Emails, the username and password are correct and I've tried the following settings under Fetching Email and Sending Email (both marked Enable):
imap.gmail.com (port 993, protocol IMAP + SSL and IMAP)
pop.gmail.com (port 995, protocol POP + SSL and POP)
ssl://smtp.gmail.com (port 465, auth required)
ssl://smtp.gmail.com:465 (port 465, auth required)
smtp.gmail.com (port 465 and 587, auth required)
smtp.gmail.com:465 (port 465 and 587, auth required)
smtp-relay.gmail.com (port 465 and 587, auth required and auth not required)
ssl://smtp-relay.gmail.com (same as above)
ssl://smtp-relay.gmail.com:465 (same as above)
I've tried using Gmail's smtp-relay functionality to get it to send properly, but that hasn't worked, either (I followed Google's guide including entering the IP of the server in Gmail's configuration pages, etc.).
I've also made sure that the firstname.lastname@example.org account has permission to use less secure apps, IMAP and POP is allowed, and have filled out the Captcha that sometimes snares Gmail accounts as spam. I've also made sure that Company B is whitelisted in Company A's Gmail settings. I can send from Company A - B and vice versa fine, but cannot from OS Ticket. I use PHP Swift Mailer for IMAP use elsewhere within my domain, and have the PHP IMAP extension installed, so it doesn't seem to be an issue of the server being able to communicate over IMAP with Gmail. If this is a Gmail issue then I'll take it up with them, but I'm pretty sure I should be able to at least fetch email.
Any ideas or suggestions? I really love OS Ticket and hope we can use it, I just need to figure out why Gmail isn't playing nice.