Body: <p>We are experimenting with using our ISP:s SMTP host rather than PHP <code>mail()</code> to avoid getting caught in some spam-filters. The ISP is also the domain provider and handles DKIM when sending messages.</p>
  <p>The SMTP setting test passes and sending individual mails also works. But Mailings are not sent. Trying a test mail (for an individual or group) announces &quot;Sending... Delivered&quot; and then a popup announces</p>
  <blockquote>
  <p>&quot;Could not identify any recipients. Perhaps your test group is empty, or you tried sending to contacts that do not exist and you have no permission to add contacts.&quot;</p>
  </blockquote>
  <p>It seems strange that it would first think that it had delivered it (got ok from SMTP server?) and then give that error message (is it even the correct one?)</p>
  <p>Some <a href="https://civicrm.stackexchange.com/a/20856/354">googling indicate</a> that this is a random message that has nothing to do with the actual problem.</p>
  <p>We are using Mosaico, CiviCRM 5.37.2.</p>
  <p>Our ISP is requiring loggin in to the SMTP server with the senders email and also checks that the sender in the mail is that email address.</p>
  <p>I'm thinking that the problem might be that the bounce processing changes the sender to the bounce address. Is there a way to confirm this? Log mail-sending errors in CiviCRM?</p>
  <ul>
  <li>Are there other possible reasons for this problem?</li>
  <li>Are there alternatives for mailing given our situation?</li>
  </ul>
  <p>[EDIT] Sending single mails to contacts work. Reverting to <code>mail()</code> delivers the testmailing as it should.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-04T18:27:24.330Z
Comments.Text: is it sending single emails to individual contacts or not?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-05T02:49:12.220Z
Comments.Text: Yes, single emails directly to contacts work.
Comments.UserDisplayName: thoni56
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-05T06:29:35.663Z
Comments.Text: it sounds to me more like you may have some broken Smart Groups. have you tested by making a new standard Group with just yourself in it, and doing a civimail to it?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-05T07:12:54.317Z
Comments.Text: Yes. Same problem.
Comments.UserDisplayName: thoni56
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-09-29T11:32:27.973Z
Comments.Text: Have this same problem trying to setup for usage with AWS SES/SNS - seems that Test process is treating the sender email as recipient AND marking it as bounced.
Comments.UserDisplayName: Dave T
Tags: <mailing><smtp>
Title: How to configure CiviMail bounce processing with SMTP requiring login/sender check
ThreadText: # How to configure CiviMail bounce processing with SMTP requiring login/sender check
  
  (Asked by: username_0 on 2021-10-04)
  
  We are experimenting with using our ISP:s SMTP host rather than PHP `mail()` to avoid getting caught in some spam-filters. The ISP is also the domain provider and handles DKIM when sending messages.
  
  The SMTP setting test passes and sending individual mails also works. But Mailings are not sent. Trying a test mail (for an individual or group) announces "Sending... Delivered" and then a popup announces
  
  > "Could not identify any recipients. Perhaps your test group is empty, or you tried sending to contacts that do not exist and you have no permission to add contacts."
  
  It seems strange that it would first think that it had delivered it (got ok from SMTP server?) and then give that error message (is it even the correct one?)
  
  Some [googling indicate](https://civicrm.stackexchange.com/a/20856/354) that this is a random message that has nothing to do with the actual problem.
  
  We are using Mosaico, CiviCRM 5.37.2.
  
  Our ISP is requiring loggin in to the SMTP server with the senders email and also checks that the sender in the mail is that email address.
  
  I'm thinking that the problem might be that the bounce processing changes the sender to the bounce address. Is there a way to confirm this? Log mail-sending errors in CiviCRM?
  
  * Are there other possible reasons for this problem?
  * Are there alternatives for mailing given our situation?
  
  [EDIT] Sending single mails to contacts work. Reverting to `mail()` delivers the testmailing as it should.
  
  **Tags:** mailing, smtp
  
  > **Comments:**
  > **username_1**: is it sending single emails to individual contacts or not?  
  > **username_0**: Yes, single emails directly to contacts work.  
  > **username_1**: it sounds to me more like you may have some broken Smart Groups. have you tested by making a new standard Group with just yourself in it, and doing a civimail to it?  
  > **username_0**: Yes. Same problem.  
  > **username_2**: Have this same problem trying to setup for usage with AWS SES/SNS - seems that Test process is treating the sender email as recipient AND marking it as bounced.  
  
  ---
  
  ## 0 answers
  
  