Configured inbound_emails but unable to receive them on Chatwoot when user reply back #1936
Unanswered
successful-fella
asked this question in
Self hosted
Replies: 1 comment 1 reply
-
@successful-fella can you check and see if you have ref: #1450 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all,
I had followed the conversation continuity guide and email setup guide to set up inbound emails. The emails when the user is offline goes to the user's email address but when a user replies back, the webhook is triggered (see logs) but the message won't show up on chatwoot.
Here are logs after the user replies to the email -
srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | I, [2021-03-18T06:55:15.725386 #1] INFO -- : [92f46427-91dc-4a80-ba28-510e49f9f372] Started POST "/rails/action_mailbox/sendgrid/inbound_emails" for 167.89.116.31 at 2021-03-18 06:55:15 +0000 srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | I, [2021-03-18T06:55:15.734964 #1] INFO -- : [92f46427-91dc-4a80-ba28-510e49f9f372] Processing by ActionMailbox::Ingresses::Sendgrid::InboundEmailsController#create as HTML srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | I, [2021-03-18T06:55:15.737242 #1] INFO -- : [92f46427-91dc-4a80-ba28-510e49f9f372] Parameters: {"dkim"=>"none", "email"=>"Received: by mx0078p1las1.sendgrid.net with SMTP id d1ja4PmLfM Thu, 18 Mar 2021 06:55:14 +0000 (UTC)\nReceived: from forward501p.mail.yandex.net (unknown [77.88.28.111]) by mx0078p1las1.sendgrid.net (Postfix) with ESMTPS id DEAD22E0ADC for <[email protected]>; Thu, 18 Mar 2021 06:55:13 +0000 (UTC)\nReceived: from vla1-395bc165982e.qloud-c.yandex.net (vla1-395bc165982e.qloud-c.yandex.net [IPv6:2a02:6b8:c0d:179c:0:640:395b:c165]) by forward501p.mail.yandex.net (Yandex) with ESMTP id 49E0D3500299 for <[email protected]>; Thu, 18 Mar 2021 09:55:12 +0300 (MSK)\nReceived: from mail.yandex.com (mail.yandex.com [157.34.162.193]) by vla1-395bc165982e.qloud-c.yandex.net (mxback/Yandex) with HTTP id AtVr240dHa61-tBd4ra4r; Thu, 18 Mar 2021 09:55:11 +0300\nAuthentication-Results: vla1-395bc165982e.qloud-c.yandex.net; dkim=pass\nReceived: by vla1-937a7ab1b5ae.qloud-c.yandex.net with HTTP; Thu, 18 Mar 2021 09:55:11 +0300\nFrom: [email protected]\nTo: Kawalpreet Juneja <[email protected]>\nIn-Reply-To: <conversation/0365b30d-9961-4fae-8155-0080dbd7df77/messages/[email protected]>\nReferences: <account/1/conversation/[email protected]> <conversation/0365b30d-9961-4fae-8155-0080dbd7df77/messages/[email protected]>\nSubject: Re: [#1] New messages on this conversation\nMIME-Version: 1.0\nX-Mailer: Yamail [ http://yandex.ru ] 5.0\nDate: Thu, 18 Mar 2021 12:25:11 +0530\nMessage-Id: <[email protected]>\nContent-Transfer-Encoding: base64\nContent-Type: text/html; charset=utf-8\n\nPGRpdj5UaGFuayB5b3UhPC9kaXY+PGRpdj7CoDwvZGl2PjxkaXY+MTguMDMu\nMjAyMSwgMTI6MjAsICJLYXdhbHByZWV0IEp1bmVqYSBmcm9tIExvY2FsIHRl\nc3RpbmciICZsdDttZUBrYXlwZWUudGVjaCZndDs6PC9kaXY+PGJsb2NrcXVv\ndGU+PGRpdiBiZ2NvbG9yPSIjZjZmNmY2IiBzdHlsZT0iYmFja2dyb3VuZC1j\nb2xvcjojZjZmNmY2O2JveC1zaXppbmc6Ym9yZGVyLWJveDtmb250LWZhbWls\neTonaGVsdmV0aWNhIG5ldWUnICwgJ2hlbHZldGljYScgLCAnYXJpYWwnICwg\nc2Fucy1zZXJpZjtmb250LXNpemU6MTRweDtoZWlnaHQ6MTAwJTtsaW5lLWhl\naWdodDoxLjZlbTttYXJnaW46MDt3aWR0aDoxMDAlICFpbXBvcnRhbnQiPjx0\nYWJsZSBiZ2NvbG9yPSIjZjZmNmY2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xv\ncjojZjZmNmY2O2JveC1zaXppbmc6Ym9yZGVyLWJveDtmb250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aW46MCI+PHRkIHZhbGlnbj0idG9wIiBzdHlsZT0iYm94LXNp\nemluZzpib3JkZXItYm94O2ZvbnQtZmFtaWx5OidoZWx2ZXRpY2EgbmV1ZScg\nLCAnaGVsdmV0aWNhJyAsICdhcmlhbCcgLCBzYW5zLXNlcmlmO2ZvbnQtc2l6\nZToxNHB4O21hcmdpbjowO3BhZGRpbmc6MCAwIDIwcHggMDt2ZXJ0aWNhbC1h\nbGlnbjp0b3AiPlBvd2VyZWQgYnkgPGEgaHJlZj0iaHR0cHM6Ly93d3cuY2hh\ndHdvb3QuY29tLyIgcmVsPSJub29wZW5lciBub3JlZmVycmVyIiBzdHlsZT0i\nYm94LXNpemluZzpib3JkZXItYm94O2NvbG9yOiM5OTk7Zm9udC1mYW1pbHk6\nJ2hlbHZldGljYSBuZXVlJyAsICdoZWx2ZXRpY2EnICwgJ2FyaWFsJyAsIHNh\nbnMtc2VyaWY7Zm9udC1zaXplOjE0cHg7bWFyZ2luOjA7cGFkZGluZzowIDAg\nMjBweCAwO3RleHQtYWxpZ246Y2VudGVyO3ZlcnRpY2FsLWFsaWduOnRvcCI+\nIENoYXR3b290IDwvYT48L3RkPjwvdHI+PC90Ym9keT48L3RhYmxlPjwvZGl2\nPjwvZGl2PjwvdGQ+PHRkIHZhbGlnbj0idG9wIiBzdHlsZT0iYm94LXNpemlu\nZzpib3JkZXItYm94O2ZvbnQtZmFtaWx5OidoZWx2ZXRpY2EgbmV1ZScgLCAn\naGVsdmV0aWNhJyAsICdhcmlhbCcgLCBzYW5zLXNlcmlmO2ZvbnQtc2l6ZTox\nNHB4O21hcmdpbjowO3ZlcnRpY2FsLWFsaWduOnRvcCI+wqA8L3RkPjwvdHI+\nPC90Ym9keT48L3RhYmxlPjwvZGl2PjwvYmxvY2txdW90ZT48ZGl2PsKgPC9k\naXY+\n", "to"=>"Kawalpreet Juneja <[email protected]>", "from"=>"[email protected]", "sender_ip"=>"77.88.28.111", "envelope"=>"{\"to\":[\"[email protected]\"],\"from\":\"[email protected]\"}", "subject"=>"Re: [#1] New messages on this conversation", "charsets"=>"{\"to\":\"UTF-8\",\"subject\":\"UTF-8\",\"from\":\"UTF-8\"}", "SPF"=>"pass"} srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | D, [2021-03-18T06:55:15.818838 #1] DEBUG -- : [92f46427-91dc-4a80-ba28-510e49f9f372] (0.4ms) BEGIN srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | D, [2021-03-18T06:55:15.824800 #1] DEBUG -- : [92f46427-91dc-4a80-ba28-510e49f9f372] ActionMailbox::InboundEmail Create (4.2ms) INSERT INTO "action_mailbox_inbound_emails" ("message_id", "message_checksum", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["message_id", "[email protected]"], ["message_checksum", "685b51968c522ecfb664c62544faf4c1f69469f4"], ["created_at", "2021-03-18 06:55:15.810470"], ["updated_at", "2021-03-18 06:55:15.810470"]] srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | D, [2021-03-18T06:55:15.838423 #1] DEBUG -- : [92f46427-91dc-4a80-ba28-510e49f9f372] ActiveStorage::Blob Load (2.4ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" INNER JOIN "active_storage_attachments" ON "active_storage_blobs"."id" = "active_storage_attachments"."blob_id" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 9], ["record_type", "ActionMailbox::InboundEmail"], ["name", "raw_email"], ["LIMIT", 1]] srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | D, [2021-03-18T06:55:15.854245 #1] DEBUG -- : [92f46427-91dc-4a80-ba28-510e49f9f372] ActiveStorage::Attachment Load (0.6ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 9], ["record_type", "ActionMailbox::InboundEmail"], ["name", "raw_email"], ["LIMIT", 1]] srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | D, [2021-03-18T06:55:15.864709 #1] DEBUG -- : [92f46427-91dc-4a80-ba28-510e49f9f372] ActiveStorage::Blob Create (1.4ms) INSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "byte_size", "checksum", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["key", "znk2tdlm8m8xc1778q1rkr614pi8"], ["filename", "message.eml"], ["content_type", "message/rfc822"], ["metadata", "{\"identified\":true}"], ["byte_size", 7445], ["checksum", "VaYe8/ByyyO8tn11Zjyo1w=="], ["created_at", "2021-03-18 06:55:15.859849"]] srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | D, [2021-03-18T06:55:15.869360 #1] DEBUG -- : [92f46427-91dc-4a80-ba28-510e49f9f372] ActiveStorage::Attachment Create (1.6ms) INSERT INTO "active_storage_attachments" ("name", "record_type", "record_id", "blob_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "raw_email"], ["record_type", "ActionMailbox::InboundEmail"], ["record_id", 9], ["blob_id", 9], ["created_at", "2021-03-18 06:55:15.866994"]] srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | D, [2021-03-18T06:55:15.878933 #1] DEBUG -- : [92f46427-91dc-4a80-ba28-510e49f9f372] ActionMailbox::InboundEmail Update (0.8ms) UPDATE "action_mailbox_inbound_emails" SET "updated_at" = $1 WHERE "action_mailbox_inbound_emails"."id" = $2 [["updated_at", "2021-03-18 06:55:15.872027"], ["id", 9]] srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | D, [2021-03-18T06:55:15.882749 #1] DEBUG -- : [92f46427-91dc-4a80-ba28-510e49f9f372] (2.3ms) COMMIT srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | I, [2021-03-18T06:55:15.897545 #1] INFO -- : [92f46427-91dc-4a80-ba28-510e49f9f372] Disk Storage (8.6ms) Uploaded file to key: znk2tdlm8m8xc1778q1rkr614pi8 (checksum: VaYe8/ByyyO8tn11Zjyo1w==) srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | I, [2021-03-18T06:55:15.915603 #1] INFO -- : [92f46427-91dc-4a80-ba28-510e49f9f372] [ActiveJob] Enqueued ActionMailbox::RoutingJob (Job ID: b643bfea-82db-40cf-9069-12a21207c08a) to Sidekiq(action_mailbox_routing) with arguments: #<GlobalID:0x00007f74cbf14e00 @uri=#<URI::GID gid://chatwoot/ActionMailbox::InboundEmail/9>> srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | I, [2021-03-18T06:55:15.923496 #1] INFO -- : [92f46427-91dc-4a80-ba28-510e49f9f372] [ActiveJob] Enqueued ActiveStorage::AnalyzeJob (Job ID: d6b4418b-687f-4849-afc7-edd817ab22c9) to Sidekiq(active_storage_analysis) with arguments: #<GlobalID:0x00007f74cc38ee90 @uri=#<URI::GID gid://chatwoot/ActiveStorage::Blob/9>> srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | I, [2021-03-18T06:55:15.925450 #1] INFO -- : [92f46427-91dc-4a80-ba28-510e49f9f372] No template found for ActionMailbox::Ingresses::Sendgrid::InboundEmailsController#create, rendering head :no_content srv-captain--chatwoot-web.1.fhum9aflc2wd@caprover | I, [2021-03-18T06:55:15.927618 #1] INFO -- : [92f46427-91dc-4a80-ba28-510e49f9f372] Completed 204 No Content in 188ms (ActiveRecord: 13.7ms | Allocations: 4674)
Beta Was this translation helpful? Give feedback.
All reactions