Not receiving email of new post

I just published a new post, I added myself as a subscriber and did not receive the email… the mailgun API is set up and shows a green checkbox

When you published the post, did you choose publish and email? Or just publish? :)

Yes, publish and email. And I just see this:
CleanShot 2024-01-13 at 12.03.45

What do your logs say?

Mailgun logs or ghost logs?

Yes. Either one might be informative.

I don’t know where to find the ghost logs… The mailgun logs are below:

{
	"timestamp": 1705165703.616072,
	"user-variables": {},
	"flags": {
		"is-authenticated": true,
		"is-routed": false,
		"is-system-test": false,
		"is-test-mode": false
	},
	"recipient-domain": "barnabynagy.com",
	"log-level": "info",
	"event": "delivered",
	"id": "iTo65Q3mSya0tyCJxUAzng",
	"envelope": {
		"sender": "noreply@mail.barnabynagy.com",
		"targets": "barnaby@barnabynagy.com",
		"transport": "smtp",
		"sending-ip": "159.135.228.6"
	},
	"storage": {
		"key": "BAABAQXUJGuk15zXti5CtaQn-99Uf0DtYg",
		"env": "production",
		"region": "us-west1",
		"url": "https://storage-us-west1.api.mailgun.net/v3/domains/mail.barnabynagy.com/messages/BAABAQXUJGuk15zXti5CtaQn-99Uf0DtYg"
	},
	"tags": [],
	"delivery-status": {
		"attempt-no": 1,
		"certificate-verified": true,
		"session-seconds": 1.736,
		"tls": true,
		"mx-host": "inbound-smtp.skiff.com",
		"code": 250,
		"message": "OK",
		"utf8": true,
		"enhanced-code": "",
		"description": ""
	},
	"recipient": "barnaby@barnabynagy.com",
	"message": {
		"attachments": [],
		"size": 17141,
		"headers": {
			"message-id": "53284193-f6fc-131f-7490-cd30a8140182@mail.barnabynagy.com",
			"subject": "🔑 Secure sign in link for Barnaby Nagy",
			"from": "Barnaby Nagy <noreply@mail.barnabynagy.com>",
			"to": "barnaby@barnabynagy.com"
		}
	},
	"campaigns": []
}

That seems to be the log of a different email, not related to a post you sent out.

Have a look at the subject line in the very bottom of your logs:

Since the error in Ghost says “failed to send newsletter”, could it be that Mailgun isn’t set up correctly? I’d look into the Ghost logs.

You usually find them by running ghost log:

However, since you mentioned that you’re running Ghost on PikaPods, that probably won’t work. Instead, try to use their debug function:

I don’t find failed log in mailgun

I sent it yesterday and it’s all green.

I don’t know what CLI is…

Looks like the pikapods log only shows the today’s log…

[2024-01-13 21:26:42] INFO "GET /content/images/size/w1000/2024/01/2019-04-05-jesus-sun-worship.webp" 200 3ms

[2024-01-13 21:26:43] INFO "GET /" 200 452ms

[2024-01-13 21:26:44] INFO "GET /content/images/size/w1000/2024/01/2019-04-04-new8.webp" 200 2ms

[2024-01-13 21:26:46] INFO "GET /content/images/size/w1000/2024/01/2019-04-03-virgin-mary.webp" 200 3ms

[2024-01-13 21:26:47] INFO Worker for job "mentions-email-report" online

[2024-01-13 21:26:47] INFO Worker for job mentions-email-report sent a message: done

[2024-01-13 21:26:47] INFO "GET /content/images/size/w1000/2024/01/2019-04-02-politics-trump.webp" 200 3ms

[2024-01-13 21:26:48] INFO "GET /content/images/size/w1000/2024/01/2019-04-01-new7.webp" 200 2ms

[2024-01-13 21:26:48] INFO "GET /content/images/size/w1000/2024/01/2019-03-31-q-a1.webp" 200 3ms

[2024-01-13 21:26:59] INFO "GET /new-8-half-baked-song-snippet-432hz-music-lossless-audiophile/" 200 48ms

[2024-01-13 21:26:59] INFO "GET /content/images/size/w100/2024/01/profile-cirlce-1.png" 200 3ms

[2024-01-13 21:26:59] INFO "GET /members/api/member/" 204 1ms

[2024-01-13 21:26:59] INFO "GET /members/api/comments/counts/?ids=65a2c44e64ad720001cc7834,65a012212934d10001bc1410,65a011442934d10001bc13fe" 200 4ms

[2024-01-13 21:26:59] INFO "GET /ghost/api/content/settings/?key=841587d800c99e0a8b29cde0a7&limit=all" 304 12ms

[2024-01-13 21:26:59] INFO "GET /ghost/api/content/tiers/?key=841587d800c99e0a8b29cde0a7&limit=all&include=monthly_price,yearly_price,benefits" 304 15ms

[2024-01-13 21:26:59] INFO "GET /ghost/api/content/newsletters/?key=841587d800c99e0a8b29cde0a7&limit=all" 304 20ms

[2024-01-13 21:27:00] INFO "GET /ghost/auth-frame/" 200 2ms

[2024-01-13 21:27:00] INFO "GET /members/api/member/" 204 1ms

[2024-01-13 21:27:00] INFO "GET /members/api/comments/counts/?ids=659f55652934d10001bc13d1" 200 5ms

[2024-01-13 21:27:00] INFO "GET /ghost/auth-frame/admin-auth.min.js" 200 14ms

[2024-01-13 21:27:00] INFO "GET /members/api/comments/?limit=5&order=created_at%20DESC%2C%20id%20DESC&filter=post_id%3A659f55652934d10001bc13d1%2Bcreated_at%3A%3C%3D2024-01-13T21%3A26%3A59.912Z&page=1" 200 15ms

[2024-01-13 21:27:01] ERROR "GET /ghost/api/admin/users/me/" 403 6ms


Authorization failed


"Unable to determine the authenticated user or integration. Check that cookies are being passed through if using session authentication."


Error ID:

7d154210-b25a-11ee-9357-d31feaa6e6ae


----------------------------------------


NoPermissionError: Authorization failed

at authorizeAdminApi (/var/lib/ghost/versions/5.75.3/core/server/services/auth/authorize.js:33:25)

at Layer.handle s handle_request] (/var/lib/ghost/versions/5.75.3/node_modules/express/lib/router/layer.js:95:5)

at next (/var/lib/ghost/versions/5.75.3/node_modules/express/lib/router/route.js:144:13)

at authenticate (/var/lib/ghost/versions/5.75.3/core/server/services/auth/session/middleware.js:28:13)

at process.processTicksAndRejections (node:internal/process/task_queues:95:5)


[2024-01-13 21:27:17] INFO Worker for job "email-analytics-fetch-latest" online

[2024-01-13 21:27:17] INFO mailAnalytics] Fetch latest started

[2024-01-13 21:27:17] INFO Worker for job email-analytics-fetch-latest sent a message: done

[2024-01-13 21:27:17] INFO mailAnalytics] Fetching from 2024-01-13T20:57:17.323Z until 2024-01-13T21:26:17.323Z (maxEvents: Infinity)

[2024-01-13 21:27:17] ERROR Not Found

[2024-01-13 21:27:17] ERROR mailAnalytics] Error while fetching

[2024-01-13 21:27:17] ERROR Not Found

[2024-01-13 21:27:17] INFO mailAnalytics] Aggregating for 0 emails

[2024-01-13 21:27:17] INFO mailAnalytics] Aggregating for 0 members

[2024-01-13 21:27:17] ERROR Error while fetching email analytics Not Found

[2024-01-13 21:27:17] ERROR Not Found

[2024-01-13 21:27:35] INFO "HEAD /" 200 468ms

[2024-01-13 21:27:41] INFO "GET /content/images/size/w1000/2024/01/2019-03-29-paid-flat-earth-trolls.webp" 200 3ms

[2024-01-13 21:27:43] INFO "GET /content/images/size/w1000/2024/01/2019-03-28-california-fires.webp" 200 3ms

[2024-01-13 21:27:44] INFO "GET /" 200 476ms

[2024-01-13 21:27:45] INFO "GET /content/images/size/w1000/2024/01/2019-03-27-reset-cities.webp" 200 2ms

[2024-01-13 21:27:48] INFO "GET /content/images/size/w1000/2024/01/2019-03-26-5000-years.webp" 200 3ms

[2024-01-13 21:27:49] INFO "GET /content/images/size/w1000/2024/01/2019-03-25-america-4.webp" 200 4ms

[2024-01-13 21:27:50] INFO "GET /content/images/size/w1000/2024/01/2019-03-22-local-sun.webp" 200 3ms

[2024-01-13 21:27:55] INFO "GET /content/images/size/w1000/2024/01/2019-03-21-coming-for-my-website.webp" 200 3ms

[2024-01-13 21:27:56] INFO "GET /content/images/size/w1000/2024/01/2019-03-19-sun-simulator.webp" 200 3ms

[2024-01-13 21:28:02] INFO "GET /content/images/size/w1000/2024/01/2019-03-18-nuclear-hoax.webp" 200 3ms

[2024-01-13 21:28:04] INFO "GET /content/images/size/w1000/2024/01/2019-03-15-new6.webp" 200 3ms

[2024-01-13 21:28:05] INFO "GET /content/images/size/w1000/2024/01/2019-03-14-north-korea.webp" 200 2ms

[2024-01-13 21:28:45] INFO "GET /" 200 465ms

[2024-01-13 21:29:28] INFO "GET /im-not-a-cable-tv-but-i-can-connect-the-dots/" 200 94ms

[2024-01-13 21:29:29] INFO "GET /content/images/size/w1200/2024/01/2019-02-27-not-cable-tv.webp" 200 305ms

[2024-01-13 21:29:30] INFO "GET /content/images/size/w2000/2024/01/2019-02-27-not-cable-tv.webp" 200 696ms

[2024-01-13 21:29:46] INFO "GET /" 200 549ms

[2024-01-13 21:30:47] INFO "GET /" 200 539ms

[2024-01-13 21:31:48] INFO "GET /" 200 466ms

[2024-01-13 21:32:17] INFO Worker for job "email-analytics-fetch-latest" online

[2024-01-13 21:32:17] INFO mailAnalytics] Fetch latest started

[2024-01-13 21:32:17] INFO Worker for job email-analytics-fetch-latest sent a message: done

[2024-01-13 21:32:17] INFO mailAnalytics] Fetching from 2024-01-13T21:02:17.324Z until 2024-01-13T21:31:17.324Z (maxEvents: Infinity)

[2024-01-13 21:32:17] ERROR Not Found

[2024-01-13 21:32:17] ERROR mailAnalytics] Error while fetching

[2024-01-13 21:32:17] ERROR Not Found

[2024-01-13 21:32:17] INFO mailAnalytics] Aggregating for 0 emails

[2024-01-13 21:32:17] INFO mailAnalytics] Aggregating for 0 members

[2024-01-13 21:32:17] ERROR Error while fetching email analytics Not Found

[2024-01-13 21:32:17] ERROR Not Found

[2024-01-13 21:32:36] INFO "HEAD /" 200 485ms

[2024-01-13 21:32:49] INFO "GET /" 200 470ms

[2024-01-13 21:33:50] INFO "GET /" 200 458ms

[2024-01-13 21:34:02] INFO "GET /jester-cap-map-flat-earth-mockery-this-earth-colony-is-a-joke/" 200 98ms

[2024-01-13 21:34:04] INFO "GET /content/images/size/w2000/2024/01/2019-02-15-jester.webp" 200 1241ms

[2024-01-13 21:34:06] INFO "GET /content/images/size/w1200/2024/01/2019-02-15-jester.webp" 200 565ms

[2024-01-13 21:34:51] INFO "GET /" 200 469ms

[2024-01-13 21:35:52] INFO "GET /" 200 563ms

[2024-01-13 21:36:53] INFO "GET /" 200 515ms

[2024-01-13 21:37:17] INFO Worker for job "email-analytics-fetch-latest" online

[2024-01-13 21:37:17] INFO mailAnalytics] Fetch latest started

[2024-01-13 21:37:17] INFO Worker for job email-analytics-fetch-latest sent a message: done

[2024-01-13 21:37:17] INFO mailAnalytics] Fetching from 2024-01-13T21:07:17.327Z until 2024-01-13T21:36:17.327Z (maxEvents: Infinity)

[2024-01-13 21:37:17] ERROR Not Found

[2024-01-13 21:37:17] ERROR mailAnalytics] Error while fetching

[2024-01-13 21:37:17] ERROR Not Found

[2024-01-13 21:37:17] INFO mailAnalytics] Aggregating for 0 emails

[2024-01-13 21:37:17] INFO mailAnalytics] Aggregating for 0 members

[2024-01-13 21:37:17] ERROR Error while fetching email analytics Not Found

[2024-01-13 21:37:17] ERROR Not Found

[2024-01-13 21:37:35] INFO "HEAD /" 200 474ms

[2024-01-13 21:37:54] INFO "GET /" 200 486ms

[2024-01-13 21:38:34] INFO "GET /jesus-is-the-sun-mary-is-the-vagina-christianity-is-sun-worship/" 200 67ms

[2024-01-13 21:38:35] INFO "GET /content/images/size/w2000/2024/01/2019-04-05-jesus-sun-worship.webp" 200 4ms

[2024-01-13 21:38:36] INFO "GET /content/images/2024/01/2019-04-05-jesus-sun-worship.webp" 200 4ms

[2024-01-13 21:38:55] INFO "GET /" 200 529ms

[2024-01-13 21:39:56] INFO "GET /" 200 488ms

[2024-01-13 21:40:57] INFO "GET /" 200 546ms

[2024-01-13 21:41:26] INFO "GET /" 200 494ms

[2024-01-13 21:41:58] INFO "GET /" 200 477ms

[2024-01-13 21:42:17] INFO Worker for job "email-analytics-fetch-latest" online

[2024-01-13 21:42:17] INFO mailAnalytics] Fetch latest started

[2024-01-13 21:42:17] INFO Worker for job email-analytics-fetch-latest sent a message: done

[2024-01-13 21:42:17] INFO mailAnalytics] Fetching from 2024-01-13T21:12:17.326Z until 2024-01-13T21:41:17.326Z (maxEvents: Infinity)

[2024-01-13 21:42:17] ERROR Not Found

[2024-01-13 21:42:17] ERROR mailAnalytics] Error while fetching

[2024-01-13 21:42:17] ERROR Not Found

[2024-01-13 21:42:17] INFO mailAnalytics] Aggregating for 0 emails

[2024-01-13 21:42:17] INFO mailAnalytics] Aggregating for 0 members

[2024-01-13 21:42:17] ERROR Error while fetching email analytics Not Found

[2024-01-13 21:42:17] ERROR Not Found

[2024-01-13 21:42:36] INFO "HEAD /" 200 529ms

[2024-01-13 21:42:59] INFO "GET /" 200 534ms

[2024-01-13 21:43:24] INFO "GET /legal/" 200 35ms

[2024-01-13 21:44:00] INFO "GET /" 200 449ms

[2024-01-13 21:45:01] INFO "GET /" 200 536ms

[2024-01-13 21:46:02] INFO "GET /" 200 969ms

[2024-01-13 21:46:07] INFO "GET /" 200 485ms

[2024-01-13 21:46:08] INFO "GET /" 200 968ms

[2024-01-13 21:46:08] INFO "GET /public/cards.js?v=355e0547f7" 301 3ms

[2024-01-13 21:46:08] INFO "GET /public/cards.min.js?v=355e0547f7" 200 2ms

[2024-01-13 21:46:08] INFO "GET /public/comment-counts.min.js?v=355e0547f7" 200 2ms

[2024-01-13 21:46:08] INFO "GET /public/comment-counts.js?v=355e0547f7" 301 2ms

[2024-01-13 21:46:08] INFO "GET /public/member-attribution.min.js?v=355e0547f7" 200 15ms

[2024-01-13 21:46:08] INFO "GET /public/member-attribution.js?v=355e0547f7" 301 14ms

[2024-01-13 21:46:08] INFO "GET /assets/built/casper.js?v=355e0547f7" 200 24ms

[2024-01-13 21:46:08] INFO "GET /public/cards.js/?v=355e0547f7" 404 40ms

[2024-01-13 21:46:08] INFO "GET /public/comment-counts.js/?v=355e0547f7" 404 30ms

[2024-01-13 21:46:08] INFO "GET /public/member-attribution.js/?v=355e0547f7" 404 68ms

[2024-01-13 21:47:03] INFO "GET /" 200 486ms

[2024-01-13 21:47:16] INFO "GET /" 200 497ms

[2024-01-13 21:47:17] INFO Worker for job "email-analytics-fetch-latest" online

[2024-01-13 21:47:17] INFO mailAnalytics] Fetch latest started

[2024-01-13 21:47:17] INFO Worker for job email-analytics-fetch-latest sent a message: done

[2024-01-13 21:47:17] INFO mailAnalytics] Fetching from 2024-01-13T21:17:17.332Z until 2024-01-13T21:46:17.332Z (maxEvents: Infinity)

[2024-01-13 21:47:17] ERROR Not Found

[2024-01-13 21:47:17] ERROR mailAnalytics] Error while fetching

[2024-01-13 21:47:17] ERROR Not Found

[2024-01-13 21:47:17] INFO mailAnalytics] Aggregating for 0 emails

[2024-01-13 21:47:17] INFO mailAnalytics] Aggregating for 0 members

[2024-01-13 21:47:17] ERROR Error while fetching email analytics Not Found

[2024-01-13 21:47:17] ERROR Not Found

[2024-01-13 21:47:35] INFO "HEAD /" 200 478ms

[2024-01-13 21:47:42] INFO "GET /robots.txt" 200 3ms

[2024-01-13 21:47:43] INFO "GET /" 200 503ms

[2024-01-13 21:47:50] INFO "GET /members/api/comments/counts/?ids=65a2c44e64ad720001cc7834,65a012212934d10001bc1410,65a011442934d10001bc13fe,659f58b12934d10001bc13ed,659f55e82934d10001bc13de,659f55652934d10001bc13d1,659f52bd2934d10001bc13c1,659f51b42934d10001bc13b0,659f4eac2934d10001bc13a2,659f4d852934d10001bc1393,659f4c782934d10001bc1381,659f4b792934d10001bc1370,659f476a2934d10001bc1361,659f46ad2934d10001bc1352,659f46062934d10001bc1343,659f451c2934d10001bc1332,659f44752934d10001bc1322,659f43a52934d10001bc1310,659f429d2934d10001bc12fe,659f420f2934d10001bc12ef,659f413b2934d10001bc12dd,659f40072934d10001bc12ce,659f3df82934d10001bc12be,659f2a0c2934d10001bc1296,659ef29cf713bb00015313be" 200 5ms

[2024-01-13 21:48:04] INFO "GET /" 200 674ms

[2024-01-13 21:48:29] INFO "GET /" 200 729ms

[2024-01-13 21:48:34] INFO "GET /live-q-a-ep1/" 200 60ms

[2024-01-13 21:48:35] INFO "GET /content/images/size/w2000/2024/01/2019-03-31-q-a1.webp" 200 7ms

[2024-01-13 21:48:35] INFO "GET /content/images/2024/01/2019-03-31-q-a1.webp" 200 5ms

[2024-01-13 21:49:06] INFO "GET /" 200 718ms

[2024-01-13 21:49:38] INFO "GET /robots.txt" 200 4ms

[2024-01-13 21:49:50] INFO "GET /" 200 681ms

[2024-01-13 21:50:07] INFO "GET /" 200 602ms

[2024-01-13 21:51:08] INFO "GET /" 200 629ms

[2024-01-13 21:51:15] INFO "GET /public/comment-counts.min.js?v=355e0547f7" 200 2ms

[2024-01-13 21:51:15] INFO "GET /public/cards.min.js?v=355e0547f7" 200 1ms

[2024-01-13 21:51:15] INFO "GET /public/member-attribution.min.js?v=355e0547f7" 200 1ms

[2024-01-13 21:51:20] INFO "GET /public/cards.min.css?v=355e0547f7" 200 2ms

[2024-01-13 21:51:20] INFO "GET /assets/built/casper.js?v=355e0547f7" 200 6ms

[2024-01-13 21:51:26] INFO "GET /public/cards.min.css?v=355e0547f7" 200 3ms

[2024-01-13 21:51:31] INFO "GET /assets/built/screen.css?v=355e0547f7" 200 5ms

[2024-01-13 21:51:31] INFO "GET /members/api/member/" 204 1ms

[2024-01-13 21:51:31] INFO "GET /assets/built/casper.js?v=355e0547f7" 200 5ms

[2024-01-13 21:51:31] INFO "GET /assets/built/screen.css?v=355e0547f7" 200 4ms

[2024-01-13 21:51:32] INFO "GET /members/api/member/" 204 2ms

[2024-01-13 21:52:09] INFO "GET /" 200 548ms

[2024-01-13 21:52:17] INFO Worker for job "email-analytics-fetch-latest" online

[2024-01-13 21:52:17] INFO mailAnalytics] Fetch latest started

[2024-01-13 21:52:17] INFO Worker for job email-analytics-fetch-latest sent a message: done

[2024-01-13 21:52:17] INFO mailAnalytics] Fetching from 2024-01-13T21:22:17.337Z until 2024-01-13T21:51:17.337Z (maxEvents: Infinity)

[2024-01-13 21:52:17] ERROR Not Found

[2024-01-13 21:52:17] ERROR mailAnalytics] Error while fetching

[2024-01-13 21:52:17] ERROR Not Found

[2024-01-13 21:52:17] INFO mailAnalytics] Aggregating for 0 emails

[2024-01-13 21:52:17] INFO mailAnalytics] Aggregating for 0 members

[2024-01-13 21:52:17] ERROR Error while fetching email analytics Not Found

[2024-01-13 21:52:17] ERROR Not Found

[2024-01-13 21:52:36] INFO "HEAD /" 200 574ms

[2024-01-13 21:53:09] INFO "GET /" 200 462ms

[2024-01-13 21:53:11] INFO "GET /" 200 1142ms

[2024-01-13 21:53:30] INFO "GET /look-what-ive-got-unboxing-mystery-parcel-from-spreadshirt/" 200 57ms

[2024-01-13 21:53:32] INFO "GET /content/images/size/w1200/2024/01/2019-03-04-merch.webp" 200 308ms

[2024-01-13 21:53:33] INFO "GET /content/images/size/w2000/2024/01/2019-03-04-merch.webp" 200 598ms

[2024-01-13 21:54:11] INFO "GET /" 200 457ms

[2024-01-13 21:55:12] INFO "GET /" 200 532ms

[2024-01-13 21:56:13] INFO "GET /" 200 485ms

[2024-01-13 21:57:15] INFO "GET /" 200 582ms

This is fixed now. I had to go to Email newsletter/Newsletters/Hover over the newsletter then click Edit. Then add the correct from and to email address… I mean this should be better UX designed so that I can not set it up wrong. Please hire me and I fix ghost UX