[SOLVED] Self-hosted, use Namecheap (Private Email) SMTP

Hi,

I read the docs, some threads here and some blogs but can’t deal with sending (registration) email.

i want to use Nameheap email service privateemail.com for registration and comments.

Here is my config file:

"mail": {
  "transport": "SMTP",
  "from": "mail@domain.tld",
  "options": {
    "host": "mail.privateemail.com",
    "port": 587,
    "secure": true,
    "auth": {
      "type": "LOGIN",
      "user": "mail@domain.tld",
      "pass": "***"
    }
  }
},

I tried with 465 port, secure: false, without secure, without type…

Trying to register a test member I always got this error: Failed to send magic link email

Any help would be appreciated :slight_smile:
A.

For starters, StartTLS is initially negotiated over an insecure connection, to you should use "secure": false,. Likewise, make sure you use an app-specific password.

IIRC, privateemail.com has previously been discussed on the forum, so try searching for a solution.

Edit: You also have an error in the config: "user": "[mail@domain.tld](mailto:blog@upandclear.org)",

1 Like

Thanks.

I finally made it passing variables in Dockers env.:

      mail__transport: SMTP
      mail__options__host: mail.privateemail.com
      mail__options__port: 465
      mail__options__auth__user: blog@upandclear.org
      mail__options__auth__pass: ***
      mail__from: blog@upandclear.org

And adding an alias “noreply” at Namecheap email dashboard.

Next step is to translate all things related to subscription and email…