Answers.Body: <p>Event urls for permanent and temporary had not been added for mailgun webhook.
  Re mailgunny it is only adding hard bounces - now need to investigate why soft bounce thresholds are not being observed - will post as new question</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-11-08T00:22:56.823Z
Answers.LastActivityDate: 2024-11-08T00:22:56.823Z
Answers.UserDisplayName: LesleyJill
Answers.Body: <p>The interface may have changed a bit but you should get something indicating the test event was successfully sent, so the popup sounds ok.</p>
  <p>But you should get something in the Civi logs when the test event is sent.  Do you get any bounce information back to Civi?</p>
  <p>The Basic Auth bit is not imperative (ie 'recommendation')  There is no signature in the webhook meaning that when Civi gets the webhook data it does not know definitely that it has come from Mailjet - so someone could mess with you sending bogus bounce info. You could configure Basic Auth at the webserver level so that a username/password is required before anyone can get to the webhook URL.  They suggest it but I have not tried that.  You would want to make sure you are correctly receiving webhook calls from Mailjet before attempting to restrict it with Basic Auth.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-10-30T04:56:29.293Z
Answers.Text: Thanks Aiden der I should have looked at log. error is
  
   "2024-10-30 15:31:27+1100  [info] Mailgun Webhook received. Raw input stored as context.
  Array
  (
      [raw] => 
  )
  
  
  2024-10-30 15:31:27+1100  [notice] Mailgun Webhook ignored (returning 406)
  Array
  (
      [message] => Expected JSON but didn't get it.
  )"
  
  I'm assuming I don't need to have a bounce account set up, nor the cron job to fetch bounces?
Answers.UserDisplayName: LesleyJill
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-10-30T20:41:25.270Z
Answers.Text: There are some situations where bounce mails get sent back to the sender and would need to be processed via a bounce account - but most bounces will be handled by Mailgun and sent back to Civi via webhook, so no cron job is needed for that.
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-10-31T00:10:28.817Z
Answers.Text: Thanks Aiden - so mailgun is detecting the bounce and the webhook is being received in civi but as above there's a weird " Mailgun Webhook received. Raw input stored as context" error message - any ideas about that one - thanks for you help btw
Answers.UserDisplayName: LesleyJill
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-10-31T09:29:26.143Z
Answers.Text: Just noting that the original question was about Mailjet but your comments here mention Mailgun.  Do you have both Mailjet and Mailgun configured?  They work very similarly but are different.
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-11-08T00:20:21.100Z
Answers.Text: You are right Aiden - sorry i was trying to set up both and confused myself! have since got both working - thanks for your tip
Answers.UserDisplayName: LesleyJill
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-10-11T17:47:53.430Z
Answers.LastActivityDate: 2024-10-11T17:47:53.430Z
Answers.UserDisplayName: Aidan
Body: <p>WP6.6.2  civi 5.74.4
  Mailjet is fine sending emails but bounce notifications are not arriving in civi.</p>
  <p>In mailjet I've set the end Url as &quot;https://website.org.au/civicrm/mailjetty/webhook&quot; and on testing this, a mailjet popup says &quot;a test event has been successfully sent&quot;
  The docs say I should get &quot;You should get a green OK, Code 200 on screen&quot; but I assume the popup is equivalent?
  Nothing in the civi logs showing bounce event
  Docs also say &quot;The recomendation from Mailjet is to configure
  a username and password for Basic Auth and include that in your URL.&quot;</p>
  <p>Is that imperative &amp; if so how do I add (syntax) and what level civi user?</p>
  <p>Many thanks in advance
  Lesley</p>
  
Tags: <bounce-processing><webhook>
Title: Mailjetty bounce extension configuration
ThreadText: # Mailjetty bounce extension configuration
  
  (Asked by: username_0 on 2024-09-19)
  
  WP6.6.2 civi 5.74.4
  Mailjet is fine sending emails but bounce notifications are not arriving in civi.
  
  In mailjet I've set the end Url as "https://website.org.au/civicrm/mailjetty/webhook" and on testing this, a mailjet popup says "a test event has been successfully sent"
  The docs say I should get "You should get a green OK, Code 200 on screen" but I assume the popup is equivalent?
  Nothing in the civi logs showing bounce event
  Docs also say "The recomendation from Mailjet is to configure
  a username and password for Basic Auth and include that in your URL."
  
  Is that imperative & if so how do I add (syntax) and what level civi user?
  
  Many thanks in advance
  Lesley
  
  **Tags:** bounce-processing, webhook
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2024-11-08. Score: 1
  
  Event urls for permanent and temporary had not been added for mailgun webhook.
  Re mailgunny it is only adding hard bounces - now need to investigate why soft bounce thresholds are not being observed - will post as new question
  
  
  ---
  
  ### Answer by username_1 on 2024-10-11. Score: 0
  
  The interface may have changed a bit but you should get something indicating the test event was successfully sent, so the popup sounds ok.
  
  But you should get something in the Civi logs when the test event is sent. Do you get any bounce information back to Civi?
  
  The Basic Auth bit is not imperative (ie 'recommendation') There is no signature in the webhook meaning that when Civi gets the webhook data it does not know definitely that it has come from Mailjet - so someone could mess with you sending bogus bounce info. You could configure Basic Auth at the webserver level so that a username/password is required before anyone can get to the webhook URL. They suggest it but I have not tried that. You would want to make sure you are correctly receiving webhook calls from Mailjet before attempting to restrict it with Basic Auth.
  
  > **Comments:**
  > **username_0**: Thanks Aiden der I should have looked at log. error is   "2024-10-30 15:31:27+1100  [info] Mailgun Webhook received. Raw input stored as context. Array (     [raw] =>  )   2024-10-30 15:31:27+1100  [notice] Mailgun Webhook ignored (returning 406) Array (     [message] => Expected JSON but didn't get it. )"  I'm assuming I don't need to have a bounce account set up, nor the cron job to fetch bounces?  
  > **username_1**: There are some situations where bounce mails get sent back to the sender and would need to be processed via a bounce account - but most bounces will be handled by Mailgun and sent back to Civi via webhook, so no cron job is needed for that.  
  > **username_0**: Thanks Aiden - so mailgun is detecting the bounce and the webhook is being received in civi but as above there's a weird " Mailgun Webhook received. Raw input stored as context" error message - any ideas about that one - thanks for you help btw  
  > **username_1**: Just noting that the original question was about Mailjet but your comments here mention Mailgun.  Do you have both Mailjet and Mailgun configured?  They work very similarly but are different.  
  > **username_0**: You are right Aiden - sorry i was trying to set up both and confused myself! have since got both working - thanks for your tip  
  
  ---
  
  