# Ghost 6 + Docker mail\_\_from variable won't work

**URL:** <https://forum.ghost.org/t/ghost-6-docker-mail-from-variable-wont-work/60047>\
**Category:** Self-hosting\
**Created:** [September 8, 2025, 7:32am UTC](https://forum.ghost.org/t/ghost-6-docker-mail-from-variable-wont-work/60047 "2025-09-08T07:32:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BetanKore](https://avatars.discourse-cdn.com/v4/letter/b/e19b73/32.png) [@BetanKore](https://forum.ghost.org/u/BetanKore)\
**Post date:** [September 8, 2025, 7:32am UTC](https://forum.ghost.org/t/ghost-6-docker-mail-from-variable-wont-work/60047/1 "2025-09-08T07:32:54Z")

</div>

When I set the mail\_\_from variable of the .env file using the official docker-compose guide; nothing happens. The default from address is [noreply@mydomain.com](mailto:noreply@mydomain.com) and I want to change it to [norespuesta@mydomain.com](mailto:norespuesta@mydomain.com) (same thing but in spanish).

The rest of the variables do work as I was able to set up my SMTP provider.

I also tried editing the _config.production.json_ to no avail.

These are the .env variables I am using:

```auto
mail__transport=SMTP
mail__from="'My Blog' <norespuesta@jose-garcia.net>"
mail __options__ host=provider.com
mail __options__ port=465
mail __options__ secure=true mail __options__ auth__user=user
mail __options__ auth__pass=pass

```

And this is the _config.production.json_

```auto

{
  "url": "http://localhost:2368",
  "server": {
    "port": 2368,
    "host": "::"
  },
  "mail": {
    "transport": "SMTP",
    "from": "norespuesta@jose-garcia.net",
    "options": {
      "host": "in-v3.mailjet.com",
      "port": 465,
      "secure": true,
      "auth": {
        "user": "user",
        "pass": "pass"
      }
    }
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "systemd",
  "security": {
    "staffDeviceVerification": true
  },
  "paths": {
    "contentPath": "/var/lib/ghost/content"
  }
}

```
