# From address doesn't match a Sender Identy - SendGrid transactional mails

**URL:** <https://forum.ghost.org/t/from-address-doesnt-match-a-sender-identy-sendgrid-transactional-mails/46944>\
**Category:** Using Ghost\
**Created:** [April 28, 2024, 7:57pm UTC](https://forum.ghost.org/t/from-address-doesnt-match-a-sender-identy-sendgrid-transactional-mails/46944 "2024-04-28T19:57:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skyslycer](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/skyslycer/32/30155_2.png) [@Skyslycer](https://forum.ghost.org/u/Skyslycer)\
**Post date:** [April 28, 2024, 7:57pm UTC](https://forum.ghost.org/t/from-address-doesnt-match-a-sender-identy-sendgrid-transactional-mails/46944/1 "2024-04-28T19:57:08Z")

</div>

I wanted to set up transactional (not bulk, no need to say that in the comments) mails using SendGrid as I have in the past. So I created a new Sender Identity and verified it. Then tried sending an email through that using cURL, which worked flawlessly. Now I threw all that into the config.production.js:

```auto
{
  "url": "https://blog.mysite.com",
  "server": {
      "port": 2368,
      "host": "0.0.0.0"
    },
    "database": {
      "client": "mysql",
      "connection": {
          "host": "db",
          "user": "root",
          "password": "password",
          "database": "ghost",
          "charset": "utf8"
      }
    },
    "mail": {
      "from": "blog@noreply.mysite.com",
      "transport": "SMTP",
      "options": {
        "host": "smtp.sendgrid.net",
        "port": 587,
        "secureConnection": false,
        "auth": {
          "user": "apikey",
          "pass": "SG.thekey"
        }
      }
    },
  "logging": {
      "transports": [
            "file",
            "stdout"
          ]
    },
  "process": "systemd",
  "paths": {
      "contentPath": "/var/lib/ghost/content"
    }
}

```

Obviously with [mysite.com](http://mysite.com) and SG.thekey replaced with the actual values.

Now I’m confused, why would Ghost throw this error (or SendGrid in particular) when sending the magic link mail?

```auto
[2024-04-28 19:50:25] ERROR "POST /members/api/send-magic-link/" 500 767ms

Failed to send email. Reason: Message failed: 550 The from address does not match a verified Sender Identity. Mail cannot be sent until this error is resolved. Visit https://sendgrid.com/docs/for-developers/sending-email/sender-identity/ to see the Sender Identity requirements.

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

```

It works with cURL, but the same from mail doesn’t work with Ghost. So I’m thinking maybe Ghost sets the from address to something else or similar.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Nikhil\_Kapur](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/nikhil_kapur/32/31185_2.png) [@Nikhil\_Kapur](https://forum.ghost.org/u/Nikhil_Kapur)\
**Post date:** [July 10, 2024, 4:05am UTC](https://forum.ghost.org/t/from-address-doesnt-match-a-sender-identy-sendgrid-transactional-mails/46944/2 "2024-07-10T04:05:50Z")

</div>

Hi, were you able to resolve this? Facing the same issue.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [July 10, 2024, 9:58am UTC](https://forum.ghost.org/t/from-address-doesnt-match-a-sender-identy-sendgrid-transactional-mails/46944/3 "2024-07-10T09:58:40Z")

</div>

You need to make sure that sendgrid is expecting the from address Ghost is using. If they’re mismatched, SendGrid throws this error, which Ghost is logging from you. It should be using the outgoing email set in the config file. [Configuration - Adapt your publication to suit your needs](https://ghost.org/docs/config/#mail)
