pearcy
pearcy
Explore posts from servers
RRailway
Created by pearcy on 9/18/2024 in #✋|help
Email Configuration Fails with "550 5.7.1 Relaying Denied"
There was another post and in it was a discussion about the Railway/Ghost templates - Error on Ghost install. I think the solution is in there - comments, tagging so that the issues can be raised about the templates.
https://discord.com/channels/713503345364697088/1195553732612587632
https://discord.com/channels/713503345364697088/1195553732612587632
11 replies
RRailway
Created by pearcy on 9/18/2024 in #✋|help
Email Configuration Fails with "550 5.7.1 Relaying Denied"
Understood. I think it might be the template - this one worked and I used the same Ghost/Railway variables https://railway.app/template/9VGb60 It's Ghost CMS/Sqlite - mileage may vary
11 replies
RRailway
Created by pearcy on 9/18/2024 in #✋|help
Email Configuration Fails with "550 5.7.1 Relaying Denied"
Thanks @Brody I did review those settings and also tried to it on another install using these settings and a docker-compose.yml file. https://catchtheblock.com/how-to-setup-mailgun-in-ghost-self-hosted-docker-compose/ After this and looking at all of the other Railway Discord threads very baffling that I can get the newsletter to send out but can't get the transactional email to work.
11 replies
RRailway
Created by pearcy on 9/18/2024 in #✋|help
Email Configuration Fails with "550 5.7.1 Relaying Denied"
Railway logs:
[2024-09-18 01:11:41] ERROR Failed to send email. Reason: Can't send mail - all recipients were rejected: 550 5.7.1 Relaying denied.


Failed to send email. Reason: Can't send mail - all recipients were rejected: 550 5.7.1 Relaying denied.



"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."



Error ID:

f6c22600-755a-11ef-bf40-fd6be1b2245d



Error Code:

EENVELOPE



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



Error: Can't send mail - all recipients were rejected: 550 5.7.1 Relaying denied

at createMailError (/var/lib/ghost/versions/5.94.1/core/server/services/mail/GhostMailer.js:105:12)

at SMTPConnection._formatError (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:807:19)

at SMTPConnection._actionRCPT (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:1676:28)

at SMTPConnection.<anonymous> (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:1629:30)

at SMTPConnection._processResponse (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:991:20)

at SMTPConnection._onData (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:772:14)

at SMTPConnection._onSocketData (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)

at TLSSocket.emit (node:events:517:28)

at TLSSocket.emit (node:domain:489:12)

at addChunk (node:internal/streams/readable:368:12)

at readableAddChunk (node:internal/streams/readable:341:9)

at Readable.push (node:internal/streams/readable:278:10)

at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)


[2024-09-18 01:11:41] INFO "POST /members/api/send-magic-link/" 400 175ms

Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/551dd4d4-0c31-4385-b427-176355bb2303/vol_th6rw2uiwqddjtbq
[2024-09-18 01:11:41] ERROR Failed to send email. Reason: Can't send mail - all recipients were rejected: 550 5.7.1 Relaying denied.


Failed to send email. Reason: Can't send mail - all recipients were rejected: 550 5.7.1 Relaying denied.



"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."



Error ID:

f6c22600-755a-11ef-bf40-fd6be1b2245d



Error Code:

EENVELOPE



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



Error: Can't send mail - all recipients were rejected: 550 5.7.1 Relaying denied

at createMailError (/var/lib/ghost/versions/5.94.1/core/server/services/mail/GhostMailer.js:105:12)

at SMTPConnection._formatError (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:807:19)

at SMTPConnection._actionRCPT (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:1676:28)

at SMTPConnection.<anonymous> (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:1629:30)

at SMTPConnection._processResponse (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:991:20)

at SMTPConnection._onData (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:772:14)

at SMTPConnection._onSocketData (/var/lib/ghost/versions/5.94.1/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)

at TLSSocket.emit (node:events:517:28)

at TLSSocket.emit (node:domain:489:12)

at addChunk (node:internal/streams/readable:368:12)

at readableAddChunk (node:internal/streams/readable:341:9)

at Readable.push (node:internal/streams/readable:278:10)

at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)


[2024-09-18 01:11:41] INFO "POST /members/api/send-magic-link/" 400 175ms

Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/551dd4d4-0c31-4385-b427-176355bb2303/vol_th6rw2uiwqddjtbq
11 replies
RRailway
Created by pearcy on 9/18/2024 in #✋|help
Email Configuration Fails with "550 5.7.1 Relaying Denied"
71b92ac0-afb1-4da1-af80-1cc0780f0330
11 replies
RRailway
Created by pearcy on 9/16/2024 in #✋|help
MySQL Deployment Fails
for anyone else with error, my file: Dockerfile
FROM ghost:5-alpine

# Create the ghost user and group if they do not exist
RUN addgroup -S ghost && adduser -S ghost -G ghost

# Switch to the ghost user
USER ghost

# Add a health check to monitor the Ghost instance
HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD curl --fail http://localhost:2368 || exit 1

# Copy your local files to the Ghost directory
COPY . /var/lib/ghost

# Expose the Ghost port
EXPOSE 2368
FROM ghost:5-alpine

# Create the ghost user and group if they do not exist
RUN addgroup -S ghost && adduser -S ghost -G ghost

# Switch to the ghost user
USER ghost

# Add a health check to monitor the Ghost instance
HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD curl --fail http://localhost:2368 || exit 1

# Copy your local files to the Ghost directory
COPY . /var/lib/ghost

# Expose the Ghost port
EXPOSE 2368
17 replies
RRailway
Created by pearcy on 9/16/2024 in #✋|help
MySQL Deployment Fails
Thanks @Brody
17 replies
RRailway
Created by pearcy on 9/16/2024 in #✋|help
MySQL Deployment Fails
and building from this Github file: docker-compose.yml
version: '3'
services:
ghost:
build: .
ports:
- 2368:2368
environment:
NODE_ENV: production
url: https://${RAILWAY_STATIC_URL}
mail__transport: SMTP
mail__options__service: Mailgun
mail__options__host: smtp.mailgun.org
mail__options__port: 465
mail__options__secure: true
mail__options__auth__user: postmaster@email.${RAILWAY_STATIC_URL}
mail__options__auth__pass: ${MAILGUN_PASSWORD}
mail__from: noreply@email.${RAILWAY_STATIC_URL}
volumes:
- ./data:/var/lib/ghost/content
restart: unless-stopped
version: '3'
services:
ghost:
build: .
ports:
- 2368:2368
environment:
NODE_ENV: production
url: https://${RAILWAY_STATIC_URL}
mail__transport: SMTP
mail__options__service: Mailgun
mail__options__host: smtp.mailgun.org
mail__options__port: 465
mail__options__secure: true
mail__options__auth__user: postmaster@email.${RAILWAY_STATIC_URL}
mail__options__auth__pass: ${MAILGUN_PASSWORD}
mail__from: noreply@email.${RAILWAY_STATIC_URL}
volumes:
- ./data:/var/lib/ghost/content
restart: unless-stopped
17 replies
RRailway
Created by pearcy on 9/16/2024 in #✋|help
MySQL Deployment Fails
this is my Ghost logs:
#8 exporting layers 3.5s done



#8 ...



#9 [auth] sharing credentials for us-west1.registry.rlwy.net



#9 DONE 0.0s



#8 exporting to image

#8 exporting manifest sha256:f860dc39978ecd42b4808909b0ce928ff096dec31d054c256d481cba4f306fad done

#8 exporting config sha256:2b66d9d80ed8ad3cec669fac22833b6dc35c88b1535ca38685c5fef5cc16088c done

#8 exporting attestation manifest sha256:805e76229adf79d3eaefe041737c79e05c161afb987177e002e97455e42979d1 done

#8 exporting manifest list sha256:8d85b9100ef3eefe3fd1fa2a0069c11bb4290b037462cff7525fbf6822734036 done

#8 pushing layers



#8 pushing layers 0.8s done

#8 pushing manifest for us-west1.registry.rlwy.net/641ae4b5-4f5c-4be1-9152-8513dc159abe:3000220f-7fba-4fd1-ad5b-1aee7dd30866@sha256:8d85b9100ef3eefe3fd1fa2a0069c11bb4290b037462cff7525fbf6822734036



#8 pushing manifest for us-west1.registry.rlwy.net/641ae4b5-4f5c-4be1-9152-8513dc159abe:3000220f-7fba-4fd1-ad5b-1aee7dd30866@sha256:8d85b9100ef3eefe3fd1fa2a0069c11bb4290b037462cff7525fbf6822734036 0.7s done

#8 DONE 5.0s



Build time: 68.54 seconds



=========================

Container failed to start

=========================



Failed to start deployment.

If this error persists, please reach out to the Railway team at https://help.railway.app.


#8 exporting layers 3.5s done



#8 ...



#9 [auth] sharing credentials for us-west1.registry.rlwy.net



#9 DONE 0.0s



#8 exporting to image

#8 exporting manifest sha256:f860dc39978ecd42b4808909b0ce928ff096dec31d054c256d481cba4f306fad done

#8 exporting config sha256:2b66d9d80ed8ad3cec669fac22833b6dc35c88b1535ca38685c5fef5cc16088c done

#8 exporting attestation manifest sha256:805e76229adf79d3eaefe041737c79e05c161afb987177e002e97455e42979d1 done

#8 exporting manifest list sha256:8d85b9100ef3eefe3fd1fa2a0069c11bb4290b037462cff7525fbf6822734036 done

#8 pushing layers



#8 pushing layers 0.8s done

#8 pushing manifest for us-west1.registry.rlwy.net/641ae4b5-4f5c-4be1-9152-8513dc159abe:3000220f-7fba-4fd1-ad5b-1aee7dd30866@sha256:8d85b9100ef3eefe3fd1fa2a0069c11bb4290b037462cff7525fbf6822734036



#8 pushing manifest for us-west1.registry.rlwy.net/641ae4b5-4f5c-4be1-9152-8513dc159abe:3000220f-7fba-4fd1-ad5b-1aee7dd30866@sha256:8d85b9100ef3eefe3fd1fa2a0069c11bb4290b037462cff7525fbf6822734036 0.7s done

#8 DONE 5.0s



Build time: 68.54 seconds



=========================

Container failed to start

=========================



Failed to start deployment.

If this error persists, please reach out to the Railway team at https://help.railway.app.


17 replies
RRailway
Created by pearcy on 9/16/2024 in #✋|help
MySQL Deployment Fails
new to this - is this normal behavior? Perhaps it's my Ghost CMS instance that is not connecting?
17 replies
RRailway
Created by pearcy on 9/16/2024 in #✋|help
MySQL Deployment Fails
No description
17 replies
RRailway
Created by pearcy on 9/16/2024 in #✋|help
MySQL Deployment Fails
yes
17 replies
RRailway
Created by pearcy on 9/16/2024 in #✋|help
MySQL Deployment Fails
283b63c7-1b6f-4ed5-93a9-008d5d823a3d
17 replies
RRailway
Created by pearcy on 8/27/2024 in #✋|help
Ghost CMS email config
2. Sign Up for Newsletter Issue: When trying to sign up for a newsletter via the front-end form on Ghost CMS, the system fails to send the confirmation email, resulting in a 500 Internal Server Error. Frontend Error Message: "Failed to load resource: the server responded with a status of 500 () /members/api/send-magic-link/:1" Railway Logs:
[2024-08-27 18:14:19] WARN Request with missing integrity token.

[2024-08-27 18:14:19] ERROR "POST /members/api/send-magic-link/" 500 142ms

Failed to send email. Reason: connect ECONNREFUSED ::1:587.

Error ID: 2d6ce170-64a0-11ef-bfeb-ffe94e1b5f69
Error Code: ESOCKET

Error: connect ECONNREFUSED ::1:587
at createMailError (/var/lib/ghost/versions/5.90.0/core/server/services/mail/GhostMailer.js:105:12)
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
[2024-08-27 18:14:19] WARN Request with missing integrity token.

[2024-08-27 18:14:19] ERROR "POST /members/api/send-magic-link/" 500 142ms

Failed to send email. Reason: connect ECONNREFUSED ::1:587.

Error ID: 2d6ce170-64a0-11ef-bfeb-ffe94e1b5f69
Error Code: ESOCKET

Error: connect ECONNREFUSED ::1:587
at createMailError (/var/lib/ghost/versions/5.90.0/core/server/services/mail/GhostMailer.js:105:12)
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
6 replies
RRailway
Created by pearcy on 8/27/2024 in #✋|help
Ghost CMS email config
Summary of Error Messages for Ghost CMS Email Issues 1. Forgot Password Issue: When attempting to reset a password via the "Forgot Password" feature, the email fails to send, resulting in the following error message: Frontend Error Message: "Failed to send email. Reason: Can't send mail - all recipients were rejected: 550 5.7.1 Relaying denied." Console Error: POST https://domain.com/ghost/api/admin/authentication/password_reset/ 500 (Internal Server Error) Railway Logs:
[2024-08-27 23:08:53] ERROR "POST /ghost/api/admin/authentication/password_reset/" 500 832ms

Failed to send email. Reason: Can't send mail - all recipients were rejected: 550 5.7.1 Relaying denied.

Error ID: 545fe6f0-64c9-11ef-bee5-a303e750d0e7
Error Code: EENVELOPE

Error: Can't send mail - all recipients were rejected: 550 5.7.1 Relaying denied
at createMailError (/var/lib/ghost/versions/5.90.0/core/server/services/mail/GhostMailer.js:105:12)
at SMTPConnection._formatError (/var/lib/ghost/versions/5.90.0/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)
at SMTPConnection._actionRCPT (/var/lib/ghost/versions/5.90.0/node_modules/nodemailer/lib/smtp-connection/index.js:1667:28)
[2024-08-27 23:08:53] ERROR "POST /ghost/api/admin/authentication/password_reset/" 500 832ms

Failed to send email. Reason: Can't send mail - all recipients were rejected: 550 5.7.1 Relaying denied.

Error ID: 545fe6f0-64c9-11ef-bee5-a303e750d0e7
Error Code: EENVELOPE

Error: Can't send mail - all recipients were rejected: 550 5.7.1 Relaying denied
at createMailError (/var/lib/ghost/versions/5.90.0/core/server/services/mail/GhostMailer.js:105:12)
at SMTPConnection._formatError (/var/lib/ghost/versions/5.90.0/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)
at SMTPConnection._actionRCPT (/var/lib/ghost/versions/5.90.0/node_modules/nodemailer/lib/smtp-connection/index.js:1667:28)
6 replies
RRailway
Created by pearcy on 8/27/2024 in #✋|help
Ghost CMS email config
Further testing and logs: I am able to send newsletters (bulk emails) from the Ghost CMS admin panel to myself, confirming that the bulk email functionality is working as expected. However, I am unable to: -- Use the "Forgot Password" functionality. -- Sign up for the newsletter via the front-end form.
6 replies
RRailway
Created by pearcy on 8/27/2024 in #✋|help
Ghost CMS email config
71b92ac0-afb1-4da1-af80-1cc0780f0330
6 replies
RRailway
Created by pearcy on 8/18/2024 in #✋|help
Deploying Ghost on Railway from GitHub Repo
No description
6 replies
RRailway
Created by pearcy on 8/18/2024 in #✋|help
Deploying Ghost on Railway from GitHub Repo
I think I will make my life easier and use the Railway templates/docker and just edit the themes locally.
Here is the version I used and it's easy, peasy (there are multiple Ghost Docker versions)
6 replies
RRailway
Created by pearcy on 8/18/2024 in #✋|help
Deploying Ghost on Railway from GitHub Repo
d69a5742-7e36-4b23-b053-2b2f8333e4dd
6 replies