Answers.Body: <p>Its been a while - but hope these tips help:</p>
  
  <ul>
  <li>Make sure you greenlight the IP address of your server for smtp relay.</li>
  <li>Sometimes your webhost will block outgoing smtp ports to servers other than their own. Ask your host to remove this limitation, if they do not, find another host. This is common with shared hosting.</li>
  <li>There are issues with Gsuite smtp relat long term - see this article - it has been suspended - but good to keep in mind. <a href="https://gsuiteupdates.googleblog.com/2019/12/less-secure-apps-oauth-google-username-password-incorrect.html" rel="nofollow noreferrer">https://gsuiteupdates.googleblog.com/2019/12/less-secure-apps-oauth-google-username-password-incorrect.html</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-05T22:34:29.967Z
Answers.Text: Thanks. But I should be able to setup with App password, right?
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-05T22:37:30.873Z
Answers.Text: @Tapash were you able to get this setup? I believe we set ours up simply with the password - not a LSA password. Its been so long - I can't recall.
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-05T22:40:03.233Z
Answers.Text: no I was not able to set it up with LSA or 2step app password. Not sure what i am doing wrong. Also do I need to necessarily setup the bounced processing and email to email activity processing part to get the smtp relay working?
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-05T22:42:35.390Z
Answers.Text: Would you please update the tutorial to the latest available resources? I guess things may have changed quite a bit since you have set it up..
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-05T22:42:39.333Z
Answers.Text: You shouldn't have to - if you send a test email from 
  CiviCRM » Administer CiviCRM - System Settings - Outbound Mail
  and it works - you should be good.
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-05T22:44:52.697Z
Answers.Text: What is the exact error you get?
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-05T22:49:15.023Z
Answers.Text: I need to set it up again. I have removed it from my UAT after failing numerous times. I remember vaguely, something like the SMTP authentication failed.  I also couldn’t follow the tutorial exactly because google has changed the UI a bit, so I was going with my common sense.  I will try setting up again and follow up here. Thanks
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-05T22:51:41.293Z
Answers.Text: Oh that's useful to know about the postponement for LSA / OAUTH2. Thanks @themak. It's a separate topic so sorry doesn't help you Tapash. But for the other topic I've updated https://lab.civicrm.org/dev/mail/-/issues/59.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-06T11:22:16.190Z
Answers.Text: @themak I have updated my original post
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-07T03:00:24.317Z
Answers.Text: @Tapash did you confirm with your host that they are not blocking you from using those ports to reach external smtp servers?
  Our settings our similar but we have 
  Require TLS encryption: No
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-08T09:33:04.623Z
Answers.Text: @themak Thanks for your help! It finally boiled down to the host blocking those ports. I am up and running.
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-05T22:32:12.067Z
Answers.LastActivityDate: 2020-05-05T22:32:12.067Z
Answers.UserDisplayName: themak
Answers.Body: <p>It seems there is a difference between sending via Gsuite and Gsuite SMTP Relay ... </p>
  
  <p>For sending via Gsuite, and comparing the connection details in the post you linked to with a site using this, the difference is that it uses SMTP host <code>ssl://smtp.gmail.com</code></p>
  
  <p>The main practical limitations are the limits and that all mails get sent out with the sender of the Gsuite account, not the address you configure in Civi.</p>
  
  <p>I haven't tried <a href="https://support.google.com/a/answer/2956491?hl=en" rel="nofollow noreferrer">Gsuite SMTP Relay</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-22T11:26:00.373Z
Answers.LastActivityDate: 2020-04-22T11:26:00.373Z
Answers.UserDisplayName: Aidan
Body: <p>I have Gsuite email setup with our own domain (name@ourdomain.com). I have tried to use mailgun with gsuite. Although it worked ok ish, as the number of contact increasing, bills are also increasing. </p>
  
  <p>Since there is Gsuite relay service available which allows 10000 emails per day, we would like to setup our CiviCRM with it, so we can use it's full potential.</p>
  
  <p>I have read this post <a href="https://civicrm.stackexchange.com/questions/22808/how-to-use-g-suite-gmail-as-your-civimail-provider">How to use G Suite / GMail as your CiviMail Provider</a> but not able to get SMTP working at all from civicrm's side.</p>
  
  <p>We are currently using cpanel hosting and SMTP mailserver already setup on there which allows only 250 emails. Not very efficient and not sure if that causing any issue while setting up gsuite relay.</p>
  
  <p>Did you manage to successfully setup Gsuite and currently using without any issue? If yes, would you please share some thoughts or tips what issue you have encountered and how you have solved it? </p>
  
  <p>EDIT: I have tried to follow the steps as per the instruction on above tutorial and getting this results. I have tried different combination of ports and authentication settings on Gsuite, but no luck. I am using the email with our domain for signin example@ourdomain.com, and app specific Password to set the SMTP</p>
  
  <p><a href="https://i.sstatic.net/5rzPW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5rzPW.png" alt="CiviCRM SMTP Settings"></a></p>
  
  <p><a href="https://i.sstatic.net/4FHXH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/4FHXH.png" alt="Gsuite Relay service settings"></a></p>
  
  <p><a href="https://i.sstatic.net/7ZOEc.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7ZOEc.png" alt="enter image description here"></a></p>
  
Tags: <civimail><smtp><mailserver><g-suite>
Title: How to use Gsuite Relay as SMTP for CiviCRM bulk mailing?
ThreadText: # How to use Gsuite Relay as SMTP for CiviCRM bulk mailing?
  
  (Asked by: username_0 on 2020-04-21)
  
  I have Gsuite email setup with our own domain (name@ourdomain.com). I have tried to use mailgun with gsuite. Although it worked ok ish, as the number of contact increasing, bills are also increasing.
  
  Since there is Gsuite relay service available which allows 10000 emails per day, we would like to setup our CiviCRM with it, so we can use it's full potential.
  
  I have read this post [How to use G Suite / GMail as your CiviMail Provider](https://civicrm.stackexchange.com/questions/22808/how-to-use-g-suite-gmail-as-your-civimail-provider) but not able to get SMTP working at all from civicrm's side.
  
  We are currently using cpanel hosting and SMTP mailserver already setup on there which allows only 250 emails. Not very efficient and not sure if that causing any issue while setting up gsuite relay.
  
  Did you manage to successfully setup Gsuite and currently using without any issue? If yes, would you please share some thoughts or tips what issue you have encountered and how you have solved it?
  
  EDIT: I have tried to follow the steps as per the instruction on above tutorial and getting this results. I have tried different combination of ports and authentication settings on Gsuite, but no luck. I am using the email with our domain for signin example@ourdomain.com, and app specific Password to set the SMTP
  
  [![CiviCRM SMTP Settings](https://i.sstatic.net/5rzPW.png)](https://i.sstatic.net/5rzPW.png)
  
  [![Gsuite Relay service settings](https://i.sstatic.net/4FHXH.png)](https://i.sstatic.net/4FHXH.png)
  
  [![enter image description here](https://i.sstatic.net/7ZOEc.png)](https://i.sstatic.net/7ZOEc.png)
  
  **Tags:** civimail, smtp, mailserver, g-suite
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-05-05. Score: 2 | Accepted answer
  
  Its been a while - but hope these tips help:
  
  * Make sure you greenlight the IP address of your server for smtp relay.
  * Sometimes your webhost will block outgoing smtp ports to servers other than their own. Ask your host to remove this limitation, if they do not, find another host. This is common with shared hosting.
  * There are issues with Gsuite smtp relat long term - see this article - it has been suspended - but good to keep in mind. <https://gsuiteupdates.googleblog.com/2019/12/less-secure-apps-oauth-google-username-password-incorrect.html>
  
  > **Comments:**
  > **username_0**: Thanks. But I should be able to setup with App password, right?  
  > **username_1**: @username_0 were you able to get this setup? I believe we set ours up simply with the password - not a LSA password. Its been so long - I can't recall.  
  > **username_0**: no I was not able to set it up with LSA or 2step app password. Not sure what i am doing wrong. Also do I need to necessarily setup the bounced processing and email to email activity processing part to get the smtp relay working?  
  > **username_0**: Would you please update the tutorial to the latest available resources? I guess things may have changed quite a bit since you have set it up..  
  > **username_1**: You shouldn't have to - if you send a test email from  CiviCRM » Administer CiviCRM - System Settings - Outbound Mail and it works - you should be good.  
  > **username_1**: What is the exact error you get?  
  > **username_0**: I need to set it up again. I have removed it from my UAT after failing numerous times. I remember vaguely, something like the SMTP authentication failed.  I also couldn’t follow the tutorial exactly because google has changed the UI a bit, so I was going with my common sense.  I will try setting up again and follow up here. Thanks  
  > **username_2**: Oh that's useful to know about the postponement for LSA / OAUTH2. Thanks @username_1. It's a separate topic so sorry doesn't help you username_0. But for the other topic I've updated https://lab.civicrm.org/dev/mail/-/issues/59.  
  > **username_0**: @username_1 I have updated my original post  
  > **username_1**: @username_0 did you confirm with your host that they are not blocking you from using those ports to reach external smtp servers? Our settings our similar but we have  Require TLS encryption: No  
  > **username_0**: @username_1 Thanks for your help! It finally boiled down to the host blocking those ports. I am up and running.  
  
  ---
  
  ### Answer by username_3 on 2020-04-22. Score: 2
  
  It seems there is a difference between sending via Gsuite and Gsuite SMTP Relay ...
  
  For sending via Gsuite, and comparing the connection details in the post you linked to with a site using this, the difference is that it uses SMTP host `ssl://smtp.gmail.com`
  
  The main practical limitations are the limits and that all mails get sent out with the sender of the Gsuite account, not the address you configure in Civi.
  
  I haven't tried [Gsuite SMTP Relay](https://support.google.com/a/answer/2956491?hl=en)
  
  
  ---
  
  