Problem Configuring SMTP after install #428

Closed
opened 2025-11-13 12:00:06 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @victorvs0uz4 on GitHub (Jun 12, 2025).

Hello, I have my pangolin working and I would like to configure sending emails, I did all the configuration following the documentation, but I am getting some errors:

pangolin  | 2025-06-12T13:36:36.555Z [error]: Message failed: 550 5.7.1 Command rejected
pangolin  | Stack: Error: Message failed: 550 5.7.1 Command rejected
pangolin  |     at SMTPConnection._formatError (/app/node_modules/nodemailer/lib/smtp-connection/index.js:807:19)
pangolin  |     at SMTPConnection._actionSMTPStream (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1728:34)
pangolin  |     at SMTPConnection.<anonymous> (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1196:22)
pangolin  |     at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:991:20)
pangolin  |     at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:772:14)
pangolin  |     at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)
pangolin  |     at TLSSocket.emit (node:events:524:28)
pangolin  |     at addChunk (node:internal/streams/readable:561:12)
pangolin  |     at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
pangolin  |     at Readable.push (node:internal/streams/readable:392:5) {"code":"EMESSAGE","response":"550 5.7.1 Command rejected","responseCode":550,"command":"DATA"}

My configuration file with the email session:

email:
  smtp_host: "smtp.myhost.com.br"
  smtp_port: 587
  smtp_user: "no-reply@myhost.com.br"
  smtp_pass: "mypassword"
  no_reply: "no-reply@myhost.com.br"

I don't know if it could have something to do with my pangolin domain which is pangolin.myhost.net.br
It is different from my email server

Originally created by @victorvs0uz4 on GitHub (Jun 12, 2025). Hello, I have my pangolin working and I would like to configure sending emails, I did all the configuration following the documentation, but I am getting some errors: ``` pangolin | 2025-06-12T13:36:36.555Z [error]: Message failed: 550 5.7.1 Command rejected pangolin | Stack: Error: Message failed: 550 5.7.1 Command rejected pangolin | at SMTPConnection._formatError (/app/node_modules/nodemailer/lib/smtp-connection/index.js:807:19) pangolin | at SMTPConnection._actionSMTPStream (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1728:34) pangolin | at SMTPConnection.<anonymous> (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1196:22) pangolin | at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:991:20) pangolin | at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:772:14) pangolin | at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44) pangolin | at TLSSocket.emit (node:events:524:28) pangolin | at addChunk (node:internal/streams/readable:561:12) pangolin | at readableAddChunkPushByteMode (node:internal/streams/readable:512:3) pangolin | at Readable.push (node:internal/streams/readable:392:5) {"code":"EMESSAGE","response":"550 5.7.1 Command rejected","responseCode":550,"command":"DATA"} ``` My configuration file with the email session: ``` email: smtp_host: "smtp.myhost.com.br" smtp_port: 587 smtp_user: "no-reply@myhost.com.br" smtp_pass: "mypassword" no_reply: "no-reply@myhost.com.br" ``` I don't know if it could have something to do with my pangolin domain which is pangolin.myhost.net.br It is different from my email server
Author
Owner

@oschwartz10612 commented on GitHub (Jun 13, 2025):

Hi I think this could be a SMTP issue with your provider?

Could you try the following?

  1. Verify SMTP Credentials: Double-check the smtp_user and smtp_pass in your configuration.
  2. Check "Allow Less Secure Apps" / App Passwords: Many email providers (like Gmail, Outlook, etc.) block SMTP connections from applications they deem "less secure" or require specific "app passwords" instead of your main account password. Log into your email provider's security settings and look for options to enable less secure apps or generate an app-specific password for Pangolin.
  3. Confirm Sender Permissions: The error "550 5.7.1 Command rejected" often indicates that the sending account (smtp_user) does not have permission to send emails as the no_reply address. Ensure that no-reply@myhost.com.br is either the same as your smtp_user or an alias that your smtp_user is authorized to send on behalf of.
  4. Contact Email Provider Support: If none of the above work, the most direct approach is to contact your email provider's support. Provide them with the exact error message ("550 5.7.1 Command rejected") and your SMTP configuration. They can check their logs for more specific reasons for the rejection.

The difference in domains (myhost.com.br vs myhost.net.br) is generally not an issue for SMTP, as long as the smtp_host and credentials are correct for the myhost.com.br email service.

Let me know if I can help further.

@oschwartz10612 commented on GitHub (Jun 13, 2025): Hi I think this could be a SMTP issue with your provider? Could you try the following? 1. **Verify SMTP Credentials:** Double-check the `smtp_user` and `smtp_pass` in your configuration. 2. **Check "Allow Less Secure Apps" / App Passwords:** Many email providers (like Gmail, Outlook, etc.) block SMTP connections from applications they deem "less secure" or require specific "app passwords" instead of your main account password. Log into your email provider's security settings and look for options to enable less secure apps or generate an app-specific password for Pangolin. 3. **Confirm Sender Permissions:** The error "550 5.7.1 Command rejected" often indicates that the sending account (`smtp_user`) does not have permission to send emails as the `no_reply` address. Ensure that `no-reply@myhost.com.br` is either the same as your `smtp_user` or an alias that your `smtp_user` is authorized to send on behalf of. 4. 5. **Contact Email Provider Support:** If none of the above work, the most direct approach is to contact your email provider's support. Provide them with the exact error message ("550 5.7.1 Command rejected") and your SMTP configuration. They can check their logs for more specific reasons for the rejection. The difference in domains (`myhost.com.br` vs `myhost.net.br`) is generally not an issue for SMTP, as long as the `smtp_host` and credentials are correct for the `myhost.com.br` email service. Let me know if I can help further.
Author
Owner

@victorvs0uz4 commented on GitHub (Jun 14, 2025):

Hello, after talking to my SMTP provider, they identified that my VPS's IP was being blocked on their server (geographic propagation). After unblocking, the sending went perfectly.

Thank you very much :D

@victorvs0uz4 commented on GitHub (Jun 14, 2025): Hello, after talking to my SMTP provider, they identified that my VPS's IP was being blocked on their server (geographic propagation). After unblocking, the sending went perfectly. Thank you very much :D
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#428