<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: marcos9113</title>
    <description>The latest articles on DEV Community by marcos9113 (@marcos9113).</description>
    <link>https://dev.to/marcos9113</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1088842%2F8ce7165d-43ce-4a79-bfaa-efe92274883a.png</url>
      <title>DEV Community: marcos9113</title>
      <link>https://dev.to/marcos9113</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/marcos9113"/>
    <language>en</language>
    <item>
      <title>Basic Custom Email Configuration on Ghost - Failed to send magic link email</title>
      <dc:creator>marcos9113</dc:creator>
      <pubDate>Wed, 24 May 2023 17:09:32 +0000</pubDate>
      <link>https://dev.to/marcos9113/basic-custom-email-configuration-on-ghost-failed-to-send-magic-link-email-42jo</link>
      <guid>https://dev.to/marcos9113/basic-custom-email-configuration-on-ghost-failed-to-send-magic-link-email-42jo</guid>
      <description>&lt;p&gt;I installed ghost on a droplet on Digital Ocean. I install it directly from the marketplace. I bought a custom domain from Namecheap and also an email. I got the domain working. But when I setup my email. The email is being sent from &lt;a href="mailto:noreply@atharv.vadehra.me"&gt;noreply@atharv.vadehra.me&lt;/a&gt; according to error logs. I have an alias &lt;a href="mailto:noreply@vadehra.me"&gt;noreply@vadehra.me&lt;/a&gt; but the config file is not reading the from attribute. in the JSON file so it is passing through the default( &lt;a href="mailto:noreply@atharv.vadehra.me"&gt;noreply@atharv.vadehra.me&lt;/a&gt; )&lt;/p&gt;

&lt;p&gt;Config File:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
    "mail": {
        "from": "atharv@vadehra.me",
        "transport": "SMTP",
        "options": {
            "host": "mail.privateemail.com",
            "port": 465,
            "secure": true,
            "auth": {
                "user": "atharv@vadehra.me",
                "pass": "******************"
            }
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Error Log:&lt;/p&gt;

&lt;p&gt;“Error: Can’t send mail - all recipients were rejected: 553 5.7.1 : Sender address rejected: not owned by user atharv@vadehra’.'me\n at createMailError (/var/www/ghost/versions/5.47.1/core/server/services/mail/GhostMailer.js:68:12)\n at SMTPConnection._formatError (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:790:19)\n at SMTPConnection._actionRCPT (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:1632:28)\n at SMTPConnection. (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:1585:30)\n at SMTPConnection._processResponse (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:953:20)\n at SMTPConnection._onData (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:755:14)\n at TLSSocket.SMTPConnection._onSocketData (/var/www/ghost/versions/5.47.1/node_modules/nodemailer/lib/smtp-connection/index.js:193:44)\n at TLSSocket.emit (node:events:513:28)\n at addChunk (node:internal/streams/readable:315:12)\n at readableAddChunk (node:internal/streams/readable:289:9)\n at TLSSocket.Readable.push (node:internal/streams/readable:228:10)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)”,“hideStack”:false},“msg”:“Failed to send email. Reason: Can’t send mail - all recipients were rejected: 553 5.7.1 &lt;a href="mailto:noreply@atharv.vadehra.me"&gt;noreply@atharv.vadehra.me&lt;/a&gt;: Sender address rejected: not owned by user &lt;a href="mailto:atharv@atharv.vadehra.me"&gt;atharv@atharv.vadehra.me&lt;/a&gt;.”,“time”:“2023-05-20T18:09:37.811Z”,“v”:0}&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
