# Ghost Breaks After Adding EMail Configuration

**URL:** <https://forum.ghost.org/t/ghost-breaks-after-adding-email-configuration/16061>\
**Category:** Installation\
**Created:** [July 23, 2020, 7:15pm UTC](https://forum.ghost.org/t/ghost-breaks-after-adding-email-configuration/16061 "2020-07-23T19:15:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KLEPTOROTH](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kleptoroth/32/9033_2.png) [@KLEPTOROTH](https://forum.ghost.org/u/KLEPTOROTH)\
**Post date:** [July 23, 2020, 7:15pm UTC](https://forum.ghost.org/t/ghost-breaks-after-adding-email-configuration/16061/1 "2020-07-23T19:15:20Z")

</div>

I’ve been trying to get ghost to send email for hours now. First I got a permissions error (even though I’m the owner) then after redeploying the container several times that resolved itself. Now when i run the following command:  
ghost config --mail SMTP --mailservice Gmail --mailuser [user@place.com](mailto:user@place.com) --mailpass password --mailhost [smtp.gmail.com](http://smtp.gmail.com) --mailport 465  
and restart the docker container, the web interface completely stops working.  
I’m running the docker image from:  
[Docker](http://registry.hub.docker.com/amd64/ghost)  
On vSphere Integrated Containers.  
At this point I’m lost as to why this is happening. I don’t see any issues with the config above, and certainly nothing that should completely break the web server.  
I get err\_connection\_refused in the browser.  
Anyone have any ideas??  
Thank you!  
Edit: I just tested deleting the volume I set for persistent storage of /var/lib/ghost/content, then only ran the following commands:  
ghost config url http:// my.website  
ghost config --mail SMTP --mailservice Gmail --mailuser user@domain --mailpass password --mailhost smtp. gmail. com --mailport 465  
(extra spaces are in the commands since I can only have 3 links in the post)

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [July 24, 2020, 3:27pm UTC](https://forum.ghost.org/t/ghost-breaks-after-adding-email-configuration/16061/2 "2020-07-24T15:27:56Z")

</div>

If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you:

- What’s your URL?
- What version of Ghost are you using?
- What configuration?
- What browser?
- What errors or information do you see in the console?
- What steps could someone else take to reproduce the issue you’re having?

Thanks! 😊
