Answers.Body: <h2>A) question about &quot;reply-to&quot; field</h2>
  <p>To those who successfully use smtp-relay.gmail.com in civicrm : when you send a Civimail mailing, what &quot;reply-to&quot; field do you get ?
  I would expect it to be something like <code>myReplyAdress+r.XXXXXX@mydomain.org</code> so that when a user replies to the email, civicrm can figure it out.
  After a lot of tests, the &quot;reply-to&quot; is always the same as the &quot;From&quot; address, which is not the expected behaviour I guess.
  I have of course ticked the &quot;VERP&quot; box in civimail config.</p>
  <p>Below are details about my issue with smtp-relay.gmail.com
  I think I have configured everything as described above (sadly, I found this post after a lot of try &amp; fail error)</p>
  <h2>B) SMTP relay service configuration on Google workspace</h2>
  <p>allowed senders : only addresses in my domain
  authentication : only accept mail from one specific email address
  require smtp authentication : yes
  require TLS encryption : yes
  <a href="https://i.sstatic.net/ON8fk.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ON8fk.png" alt="smtp relay config" /></a></p>
  <h2>C) Civicrm SMTP configuration</h2>
  <p>Serveur : ssl://smtp-relay.gmail.com
  Port : 465
  Authentication : yes
  user and password : those of a Google Workspace user (let's call it <code>postmaster@mydomain.org</code>)
  Clicking on the &quot;save and test&quot; button works fine, I receive the test email</p>
  <h2>D) Civimail results :</h2>
  <p>I have prepared a mailing.
  &quot;From&quot; address : <code>sender_1@mydomain.org</code> (which is also an existing account in google workspace).</p>
  <p>I have also tried using <code>sender_2@mydomain.org</code> (which is <strong>NOT</strong> and existing account in google workspace.</p>
  <p>Before launching the mailing, I try to send a test email, let's say  <code>someone@outlook.com</code> (of course, to a real email I own)
  <a href="https://i.sstatic.net/5fX3P.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5fX3P.png" alt="test civimail" /></a></p>
  <p>It does not work.</p>
  <p>Pop up message in civicrm (translating from French) says :</p>
  <p><em>Unable to identify recipients. Maybe your test group is empty or you tried to send to contacts that don't exist and you don't have permission to add contacts.</em>
  Of course, launching the mailing fails completly also : result is 100% bounce</p>
  <p><a href="https://i.sstatic.net/usFOa.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/usFOa.png" alt="enter image description here" /></a></p>
  <h2>E) Workaround</h2>
  <p>I have found a workaround, which is bad from my point of view, and don't want to use :
  in Google Workspace SMTP relay configuration, configure
  &quot;allowed senders = any address (not recommanded)&quot;
  By doing this, almost everything works fine : various recipients receive the mailing (still need to fix DMARC configuration to pass through spam filters)</p>
  <h2>F) Can you help ?</h2>
  <p>I'm stuck with no more idea to explore. What about you who successfully made this work?</p>
  <p>Are there any logs somewhere (in civicrm or google workspace) that I can rely on to understand the problem ?</p>
  <p>The only probable difference with your setup is that the MX of my domain points to Microsoft 365, NOT to google workspace (we use microsoft 365 for &quot;user&quot; email, and here I am trying to use Google workspace mainly for the SMTP relay feature). I think this should not matter : the incoming email configuration (MX) has nothing to do with outgoing SMTP configuration.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-11T15:01:28.827Z
Answers.Text: Hey there, I have given up on trying to make this work with gmail. I do not think google wants us to use their service for this purpose, so we switched to SparkPost. I think there are other services that work with CiviCRM like Amazon SES, MailGun, etc. https://civicrm.org/extensions?title=&body_value=&field_extension_civi_use_target_id=95&status=All&field_extension_ready_value=All
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-11T12:09:04.620Z
Answers.LastActivityDate: 2022-08-11T12:09:04.620Z
Answers.UserDisplayName: stackexchange user
Answers.Body: <p>Allow me to reactivate this very usefull post.
  I am trying to use smtp-relay.gmail.com for outbound emails, without success.</p>
  <p>Before explaining the problem, let me share a solution I found to an issue I read above : when using smtp.gmail.com (<strong>not</strong> the relay), it seems that the &quot;From&quot; address must be the same as the account used for smtp authentication. In fact I found a workaround : in the gmail settings of that user, <code>add another email adresses</code> allowed to send emails from that account.
  If in civicrm you have 2 <strong>&quot;From&quot;</strong> adress (sender1@domain.org and sender2@domain.org) then simply add them in gmail settings.
  Once done, emails sent by civimail have a &quot;From&quot; address corresponding the civimail parameters, instead of the smtp account used for authentication</p>
  <p><a href="https://i.sstatic.net/bGo92.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/bGo92.png" alt="Screenshot" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-11T09:18:19.740Z
Answers.LastActivityDate: 2022-08-11T09:18:19.740Z
Answers.UserDisplayName: stackexchange user
Answers.Body: <p><strong>Setting up GSuite/Gmail as your CiviMail Provider.</strong></p>
  
  <p><strong>Decide if Gmail/G Suite is right for you.</strong>  The <a href="https://support.google.com/a/answer/166852?hl=en" rel="nofollow noreferrer">limits for GSuite users</a> is 2000 sent messages sent per rolling 24 hour period. Regular @gmail.com users are <a href="https://support.google.com/mail/answer/22839?hl=en" rel="nofollow noreferrer">limited to 500 sent messages</a> per rolling 24 hour period. If you are an organization with less than 1000 email list contacts and you have Gsuite - this may be a good option for you - assuming you only send 1 email blast every 24 hours - to not exceed limits. If you are a regular Gmail user - this would only be a good option if you have less than 400 contacts that receive emails - and I would stagger your email blasts to maybe 100/hour. This would still leave you with 100 emails for regular communication and activity emails. Using the SMTP relay service - limits expand significantly - however - I have not tested the reported <a href="https://support.google.com/a/answer/2956491?hl=en" rel="nofollow noreferrer">10,000 emails per rolling 24 hours limit for SMTP-Relay.</a> </p>
  
  <p><strong>Create two accounts in Gsuite/GMail</strong>, one that will be used as a bounce account and another that will be an email to activity account.  </p>
  
  <p><strong><a href="https://civicrm.org/blog/dahndy/leveraging-civicrm-email-to-activity-processing-in-gmail" rel="nofollow noreferrer">Follow these instructions</a></strong> on how to setup gmail as your email provider in CiviCRM. Same instructions apply for the bounce account except you will use the bounce email and select Used For Bounce Processing. You will need to allow access to less secure apps - if you use 2FA - you will need to <a href="https://support.google.com/accounts/answer/185833?hl=en" rel="nofollow noreferrer">setup an app password.</a> </p>
  
  <p><strong>Setup your from email.</strong> If you are not using SMTP Relay - it must match the same email address you have in Gmail - or the Gmail server may reject your email. If you are using SMTP Relay - you should be able to add multiple from addresses as long as they are real email addresses that share your same domain. Meaning if your smtp relay is selma@wonky.org, the only other emails you can use as from are @wonky.org. You would not be able to use a @gmail.com address.</p>
  
  <p><strong><a href="https://docs.civicrm.org/sysadmin/en/latest/setup/civimail/" rel="nofollow noreferrer">Follow these instructions on how to configure your outbound email service.</a></strong> While the doc recommends using mail() - I found the best experience to be using the IMAP settings in your GSuite/GMail account - however - if you are a GSuite user - I highly recommend you use the SMTP-Relay service. <a href="https://support.google.com/a/answer/2956491?hl=en" rel="nofollow noreferrer">Follow these instructions to setup your GSuite account for SMTP Relay</a> - Comprehensive email storage is recommended for best deliverability - but we have not noticed much of a difference.  Then use the following settings for your outbound mail settings.</p>
  
  <ul>
  <li>Server: ssl://smtp-relay.gmail.com</li>
  <li>Port: 465</li>
  <li>Authentication: Yes</li>
  <li>SMTP Username: complete email</li>
  <li>SMTP Password: password</li>
  </ul>
  
  <p><strong>Setup Cron &amp; Mailer Settings</strong></p>
  
  <ul>
  <li>We setup our mail cron to send batches every 15 minutes - we also limited batches to 250 contacts (Mailer Batch Limit). (Administer - CiviMail - Mailer Settings)  We have also sent email without the mailer batch limit with success. We will be testing limits further and will update this answer.</li>
  </ul>
  
  <p>I hope you found this guide useful - let me know if I should clear anything up or add anything else. </p>
  
  <p>Do you use Gsuite as your outbound email in CiviCRM?  If so - chime in with your thoughts!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-20T10:15:17.107Z
Answers.Text: Hi themak :) Did you see this question: https://civicrm.stackexchange.com/questions/22731/civimail-alternative-outbound-mailbox-from-address on setting up alternative outbound emails - any thoughts on that from your experiences with gsuite?
Answers.UserDisplayName: michaelmcandrew
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-20T16:10:58.210Z
Answers.Text: @michaelmcandrew I have updated the "from" section with more information. Are you using "@gmail.com gmail" or "GSuite Gmail with your own domain"?
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-20T16:35:06.077Z
Answers.Text: neither! I am not using gsuite. But I will point Ben here and see what he says. PS. You might be able to provide him with a better answer that I have on the question I referenced above.
Answers.UserDisplayName: michaelmcandrew
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-21T10:11:40.787Z
Answers.Text: @themak - many thanks for your helpful post. It took us a long time to correctly configure SMTP in CiviCRM to work with our Gsuite account. We are still having a few problems and I posted a question that michaelmcandrew has reffered to above. When sending from different email accounts the emails would always change and use the mail account set up in the outbound mail settings. Thanks to your post we have fixed this. For our server address, we had been using ssl://smtp.gmail.com. I changed this to ssl://smtp-relay.gmail.com, and now all the emails show the correct FROM address.
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-21T10:14:26.493Z
Answers.Text: However, none of the emails that we send are being stored in the sent items folder for the email accounts used. I guess this is not really anything to do with CiviCRM, and is just how it should work, but it would be good if it was possible. I have posted a question about this on Googles Gsuite's forums at https://productforums.google.com/forum/#!topic/apps/2WPf4u14z8w;context-place=forum/apps. BTW we are using real domain addresses, all for the same domain, not @gmail.com addresses, and all of these addresses exist as individual mailboxes in our Gsuite account.
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-21T22:40:13.157Z
Answers.Text: @Ben I don't think the sent email thing is going to work for you. What you can do is potentially have items CC or BCC to you with a tag and then create a rule in  gmail to place those emails into a "folder", maybe call it "CiviCRM Sent" - it won't be a sent item - but atleast you will have a record of the email in your folder.  Sorry I can't help more but I am glad I was able to help atleast this far.
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-28T13:20:44.433Z
Answers.Text: Thanks for that, very helpful! One more thing to add - many hosting providers have turned off access to external SMTP servers by default, so you may need to turn it on in the hosting control panel or by contacting them directly. I had a couple of hours of head-scratching before I realised this!
Answers.UserDisplayName: Vshura
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-04T20:19:30.227Z
Answers.Text: Looks like this approach could end with Google terminating LSA (https://gsuiteupdates.googleblog.com/2019/12/less-secure-apps-oauth-google-username-password-incorrect.html) by 2021. This is a shame since we are a GSuite for Non Profits user and have found using Google's SMTP server quite useful. Anyone have any ideas about how to deal with the termination of LSAs?
Answers.UserDisplayName: Stephen Sloan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-04T23:27:07.423Z
Answers.Text: Hmmm - this article thinks maybe with Relay - it wont be effected. https://www.theregister.co.uk/2019/12/17/google_tightens_the_screw_on_less_secure_apps_will_block_most_access_from_june_2020/
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-08T17:49:33.607Z
Answers.Text: Even if the relay works, it doesn't look like accessing the bounce processing account will. As far as I can tell accessing the bounce messages will require a secure connection.
Answers.UserDisplayName: Stephen Sloan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-20T23:32:42.280Z
Answers.Text: Hi   thanks guys for your input. I am struggling to set up my civi with gsuite relay. Every time i get an error. We are currently using cpanel mail server which only allows 250 mails. It’s slow processing and blocking email delivery. I can’t get to are the less secure app part working. Always getting API error. Any help please?
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-02T12:01:16.067Z
Answers.Text: In terms of sending limits it is worth pointing out that per customer sending limits, as opposed to per user sending limits, are calculated based on the number of user accounts in the Google Workspace account. For small orgs, with perhaps only ten user accounts, the limits are really very low, potentially ruling this option out altogether.
Answers.UserDisplayName: Graham
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-12T15:57:14.170Z
Answers.Text: @themak Thanks for the guide, I was able to setup SMTP. But still cant get Bounce Processing working. please feel free to comment if you have some idea what is wrong here https://civicrm.stackexchange.com/questions/35648/how-to-setup-bounced-processing-on-civicrm-for-a-gsuite-account
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-20T06:15:29.800Z
Answers.LastActivityDate: 2018-02-20T19:32:46.650Z
Answers.LastEditDate: 2018-02-20T19:32:46.650Z
Answers.UserDisplayName: themak
Body: <p>After receiving some clarity on CiviMail settings and using a ton of guides - we were able to setup GSuite / GMail as our email provider. The answer to how we implemented it is below. If others have feedback - please chime in.</p>
  
Tags: <civimail><email><mailing><mailserver><g-suite>
Title: How to use G Suite / GMail as your CiviMail Provider
ThreadText: # How to use G Suite / GMail as your CiviMail Provider
  
  (Asked by: username_0 on 2018-02-20)
  
  After receiving some clarity on CiviMail settings and using a ton of guides - we were able to setup GSuite / GMail as our email provider. The answer to how we implemented it is below. If others have feedback - please chime in.
  
  **Tags:** civimail, email, mailing, mailserver, g-suite
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2018-02-20. Score: 4 | Accepted answer
  
  **Setting up GSuite/Gmail as your CiviMail Provider.**
  
  **Decide if Gmail/G Suite is right for you.** The [limits for GSuite users](https://support.google.com/a/answer/166852?hl=en) is 2000 sent messages sent per rolling 24 hour period. Regular @gmail.com users are [limited to 500 sent messages](https://support.google.com/mail/answer/22839?hl=en) per rolling 24 hour period. If you are an organization with less than 1000 email list contacts and you have Gsuite - this may be a good option for you - assuming you only send 1 email blast every 24 hours - to not exceed limits. If you are a regular Gmail user - this would only be a good option if you have less than 400 contacts that receive emails - and I would stagger your email blasts to maybe 100/hour. This would still leave you with 100 emails for regular communication and activity emails. Using the SMTP relay service - limits expand significantly - however - I have not tested the reported [10,000 emails per rolling 24 hours limit for SMTP-Relay.](https://support.google.com/a/answer/2956491?hl=en)
  
  **Create two accounts in Gsuite/GMail**, one that will be used as a bounce account and another that will be an email to activity account.
  
  **[Follow these instructions](https://civicrm.org/blog/dahndy/leveraging-civicrm-email-to-activity-processing-in-gmail)** on how to setup gmail as your email provider in CiviCRM. Same instructions apply for the bounce account except you will use the bounce email and select Used For Bounce Processing. You will need to allow access to less secure apps - if you use 2FA - you will need to [setup an app password.](https://support.google.com/accounts/answer/185833?hl=en)
  
  **Setup your from email.** If you are not using SMTP Relay - it must match the same email address you have in Gmail - or the Gmail server may reject your email. If you are using SMTP Relay - you should be able to add multiple from addresses as long as they are real email addresses that share your same domain. Meaning if your smtp relay is selma@wonky.org, the only other emails you can use as from are @wonky.org. You would not be able to use a @gmail.com address.
  
  **[Follow these instructions on how to configure your outbound email service.](https://docs.civicrm.org/sysadmin/en/latest/setup/civimail/)** While the doc recommends using mail() - I found the best experience to be using the IMAP settings in your GSuite/GMail account - however - if you are a GSuite user - I highly recommend you use the SMTP-Relay service. [Follow these instructions to setup your GSuite account for SMTP Relay](https://support.google.com/a/answer/2956491?hl=en) - Comprehensive email storage is recommended for best deliverability - but we have not noticed much of a difference. Then use the following settings for your outbound mail settings.
  
  * Server: ssl://smtp-relay.gmail.com
  * Port: 465
  * Authentication: Yes
  * SMTP Username: complete email
  * SMTP Password: password
  
  **Setup Cron & Mailer Settings**
  
  * We setup our mail cron to send batches every 15 minutes - we also limited batches to 250 contacts (Mailer Batch Limit). (Administer - CiviMail - Mailer Settings) We have also sent email without the mailer batch limit with success. We will be testing limits further and will update this answer.
  
  I hope you found this guide useful - let me know if I should clear anything up or add anything else.
  
  Do you use Gsuite as your outbound email in CiviCRM? If so - chime in with your thoughts!
  
  > **Comments:**
  > **username_2**: Hi username_0 :) Did you see this question: https://civicrm.username_1.com/questions/22731/civimail-alternative-outbound-mailbox-from-address on setting up alternative outbound emails - any thoughts on that from your experiences with gsuite?  
  > **username_0**: @username_2 I have updated the "from" section with more information. Are you using "@gmail.com gmail" or "GSuite Gmail with your own domain"?  
  > **username_2**: neither! I am not using gsuite. But I will point Ben here and see what he says. PS. You might be able to provide him with a better answer that I have on the question I referenced above.  
  > **username_3**: @username_0 - many thanks for your helpful post. It took us a long time to correctly configure SMTP in CiviCRM to work with our Gsuite account. We are still having a few problems and I posted a question that username_2 has reffered to above. When sending from different email accounts the emails would always change and use the mail account set up in the outbound mail settings. Thanks to your post we have fixed this. For our server address, we had been using ssl://smtp.gmail.com. I changed this to ssl://smtp-relay.gmail.com, and now all the emails show the correct FROM address.  
  > **username_3**: However, none of the emails that we send are being stored in the sent items folder for the email accounts used. I guess this is not really anything to do with CiviCRM, and is just how it should work, but it would be good if it was possible. I have posted a question about this on Googles Gsuite's forums at https://productforums.google.com/forum/#!topic/apps/2WPf4u14z8w;context-place=forum/apps. BTW we are using real domain addresses, all for the same domain, not @gmail.com addresses, and all of these addresses exist as individual mailboxes in our Gsuite account.  
  > **username_0**: @username_3 I don't think the sent email thing is going to work for you. What you can do is potentially have items CC or BCC to you with a tag and then create a rule in  gmail to place those emails into a "folder", maybe call it "CiviCRM Sent" - it won't be a sent item - but atleast you will have a record of the email in your folder.  Sorry I can't help more but I am glad I was able to help atleast this far.  
  > **username_4**: Thanks for that, very helpful! One more thing to add - many hosting providers have turned off access to external SMTP servers by default, so you may need to turn it on in the hosting control panel or by contacting them directly. I had a couple of hours of head-scratching before I realised this!  
  > **username_5**: Looks like this approach could end with Google terminating LSA (https://gsuiteupdates.googleblog.com/2019/12/less-secure-apps-oauth-google-username-password-incorrect.html) by 2021. This is a shame since we are a GSuite for Non Profits user and have found using Google's SMTP server quite useful. Anyone have any ideas about how to deal with the termination of LSAs?  
  > **username_0**: Hmmm - this article thinks maybe with Relay - it wont be effected. https://www.theregister.co.uk/2019/12/17/google_tightens_the_screw_on_less_secure_apps_will_block_most_access_from_june_2020/  
  > **username_5**: Even if the relay works, it doesn't look like accessing the bounce processing account will. As far as I can tell accessing the bounce messages will require a secure connection.  
  > **username_6**: Hi   thanks guys for your input. I am struggling to set up my civi with gsuite relay. Every time i get an error. We are currently using cpanel mail server which only allows 250 mails. It’s slow processing and blocking email delivery. I can’t get to are the less secure app part working. Always getting API error. Any help please?  
  > **username_6**: @username_0 Thanks for the guide, I was able to setup SMTP. But still cant get Bounce Processing working. please feel free to comment if you have some idea what is wrong here https://civicrm.username_1.com/questions/35648/how-to-setup-bounced-processing-on-civicrm-for-a-gsuite-account  
  > **username_7**: In terms of sending limits it is worth pointing out that per customer sending limits, as opposed to per user sending limits, are calculated based on the number of user accounts in the Google Workspace account. For small orgs, with perhaps only ten user accounts, the limits are really very low, potentially ruling this option out altogether.  
  
  ---
  
  ### Answer by username_1 on 2022-08-11. Score: 1
  
  ## A) question about "reply-to" field
  
  To those who successfully use smtp-relay.gmail.com in civicrm : when you send a Civimail mailing, what "reply-to" field do you get ?
  I would expect it to be something like `myReplyAdress+r.XXXXXX@mydomain.org` so that when a user replies to the email, civicrm can figure it out.
  After a lot of tests, the "reply-to" is always the same as the "From" address, which is not the expected behaviour I guess.
  I have of course ticked the "VERP" box in civimail config.
  
  Below are details about my issue with smtp-relay.gmail.com
  I think I have configured everything as described above (sadly, I found this post after a lot of try & fail error)
  
  ## B) SMTP relay service configuration on Google workspace
  
  allowed senders : only addresses in my domain
  authentication : only accept mail from one specific email address
  require smtp authentication : yes
  require TLS encryption : yes
  [![smtp relay config](https://i.sstatic.net/ON8fk.png)](https://i.sstatic.net/ON8fk.png)
  
  ## C) Civicrm SMTP configuration
  
  Serveur : ssl://smtp-relay.gmail.com
  Port : 465
  Authentication : yes
  user and password : those of a Google Workspace user (let's call it `postmaster@mydomain.org`)
  Clicking on the "save and test" button works fine, I receive the test email
  
  ## D) Civimail results :
  
  I have prepared a mailing.
  "From" address : `sender_1@mydomain.org` (which is also an existing account in google workspace).
  
  I have also tried using `sender_2@mydomain.org` (which is **NOT** and existing account in google workspace.
  
  Before launching the mailing, I try to send a test email, let's say `someone@outlook.com` (of course, to a real email I own)
  [![test civimail](https://i.sstatic.net/5fX3P.png)](https://i.sstatic.net/5fX3P.png)
  
  It does not work.
  
  Pop up message in civicrm (translating from French) says :
  
  *Unable to identify recipients. Maybe your test group is empty or you tried to send to contacts that don't exist and you don't have permission to add contacts.*
  Of course, launching the mailing fails completly also : result is 100% bounce
  
  [![enter image description here](https://i.sstatic.net/usFOa.png)](https://i.sstatic.net/usFOa.png)
  
  ## E) Workaround
  
  I have found a workaround, which is bad from my point of view, and don't want to use :
  in Google Workspace SMTP relay configuration, configure
  "allowed senders = any address (not recommanded)"
  By doing this, almost everything works fine : various recipients receive the mailing (still need to fix DMARC configuration to pass through spam filters)
  
  ## F) Can you help ?
  
  I'm stuck with no more idea to explore. What about you who successfully made this work?
  
  Are there any logs somewhere (in civicrm or google workspace) that I can rely on to understand the problem ?
  
  The only probable difference with your setup is that the MX of my domain points to Microsoft 365, NOT to google workspace (we use microsoft 365 for "user" email, and here I am trying to use Google workspace mainly for the SMTP relay feature). I think this should not matter : the incoming email configuration (MX) has nothing to do with outgoing SMTP configuration.
  
  > **Comments:**
  > **username_0**: Hey there, I have given up on trying to make this work with gmail. I do not think google wants us to use their service for this purpose, so we switched to SparkPost. I think there are other services that work with CiviCRM like Amazon SES, MailGun, etc. https://civicrm.org/extensions?title=&body_value=&field_extension_civi_use_target_id=95&status=All&field_extension_ready_value=All  
  
  ---
  
  ### Answer by username_1 on 2022-08-11. Score: 0
  
  Allow me to reactivate this very usefull post.
  I am trying to use smtp-relay.gmail.com for outbound emails, without success.
  
  Before explaining the problem, let me share a solution I found to an issue I read above : when using smtp.gmail.com (**not** the relay), it seems that the "From" address must be the same as the account used for smtp authentication. In fact I found a workaround : in the gmail settings of that user, `add another email adresses` allowed to send emails from that account.
  If in civicrm you have 2 **"From"** adress (sender1@domain.org and sender2@domain.org) then simply add them in gmail settings.
  Once done, emails sent by civimail have a "From" address corresponding the civimail parameters, instead of the smtp account used for authentication
  
  [![Screenshot](https://i.sstatic.net/bGo92.png)](https://i.sstatic.net/bGo92.png)
  
  
  ---
  
  