Page 1 of 1

Hesk in Google Cloud Platform Compute Engine Virtual Instance

Posted: Tue Nov 17, 2020 3:22 pm
by aminemarref
Hello,

I am hosting Hesk in a Google Cloud Platform (GCP) Compute Engine Virtual Instance. The installation went smooth and I am able to use it fine except for users not receiving emails (e.g. confirmation email when user submits a ticket) which is due to GCP blocking outgoing email ports. Instead of this, GCP recommends using other services such as MailGun to send email.

I want to use MailGun with Hesk to get around the port-blocking problem. I need guidance on this:

- Are there any plugins that add MailGun support in addition to PHP mail and SMTP server in settings?
- If I want to edit the code parts that deal with email sending to use MailGun API instead, could this be doable with manageable time/effort?
- Which files should I confine my editing to?

Many thanks.

Re: Hesk in Google Cloud Platform Compute Engine Virtual Instance

Posted: Tue Nov 17, 2020 4:03 pm
by Klemen
From what I read only port 25 is blocked?
https://cloud.google.com/compute/docs/t ... nding-mail

Have you tried port 587? Here's what works for Gmail from other servers:
https://www.hesk.com/knowledgebase/?article=72

There's no plugin available for MailGun for the current version. Mods for HESK supports MailGun but only works with Hesk 2. You'll probably need to edit inc/email_functions.php to post to MailGun API instead of PHP mail or SMTP server.

Re: Hesk in Google Cloud Platform Compute Engine Virtual Instance

Posted: Wed Nov 18, 2020 7:59 am
by aminemarref
Thanks a lot for your speedy reply,

I followed the instructions in the Gmail page you included in your reply, and now the user who submits a ticket gets notification of submission, and the administrator also gets notification. So things are great.

There is one little annoyance. The administrator gets an extra email from Google (mailer-daemon@googlemail.com) complaining about failure to deliver message to some "you@example.com" [1].

In Hesk -> Settings -> General, I have both Webmaster email and "From" email set to the Gmail address I use in SMTP configuration in Hesk -> Settings -> Email. I could not see "you@example.com" anywhere in Settings. How do I get rid of this?

Cheers.

[1]
Address not found
Your message wasn't delivered to you@example.com because the domain example.com couldn't be found. Check for typos or unnecessary spaces and try again.
LEARN MORE

Re: Hesk in Google Cloud Platform Compute Engine Virtual Instance

Posted: Wed Nov 18, 2020 11:26 am
by Klemen
You probably have a Hesk user with the example.com email address (the default Administrator likely)? Check in your Admin panel > Team page.