Almost everybody has Gmail, right? But a small amount of those knows, that it also includes free SMTP service, which is the same as other Google products: fast&reliable.
Everything you need is your email and dedicated app password (for security reasons).
You could burn down the paper with this password .
As a result, all your transactional emails should work fine without any additional pain in the ass. For example, now you could invite somebody else as a content contributor to your website.
However, if appears that Ghost only supports non-2FA gmail - so it is not possible to use a personal non-2FA gmail account for Ghost - correct? What are the Google alternatives for using their SMTP server?
I have 2FA on my personal Gmail, and Iām using that to send Ghost transactional emails on a couple of dev setups. (For production, I use mailgun for transactional email or else my own SMTP server.)
You can turn 2FA on pretty easily for a Gmail account. I donāt think it costs anything or needs special account access. Ghost doesnāt actually USE 2FA when it connects to Googleās SMTP server - it uses the app password, itās just that you need to have app passwords available, which requires 2FA.
You certainly donāt have to use Gmail. You could instead configure an outgoing mail server and tell Ghost to use it, or you could set up a mailgun account (needed for newsletters anyway) and tell Ghost to use that. There are options described here:
I think at this point Iāve done all the options listed for transactional email except SES. None of them are terrible to set up, but if you really donāt want to do server setup or any sort, you might also want to give Ghost Pro another look, since they make all that stuff ājust workā.
Thank you for this fast response. Turns out the āserviceā line was preventing Ghost from starting properly - deleting it solved that problem. Looks like email is working now. Interestingly I found several references that included the āserviceā line and several that did not. It might be that mailgun requires the āserviceā line. In any case thank you so much. Mike
Thatās weird, but I canāt figure out the config for production with any of options listed: Gmail SMTP, Amazon SES, tested with Ethereal email as well, but nothing works. I canāt invite another editor / website admin because of this. Tested with 587 port as well as 465. Tested with quotes and without, with line āserviceā and without. Maybe thereās an issue with Nodemailer on the server? We used docker image on AWS EC2, ssh access. Configured as per Ghost documentation with the separate user and permissions.
Hey, the error and info logs are empty or have older messages which are irrelevant (by timestamps). Only old 403 no permission http requests on update from another day. I guess that if there would be a problem between Ghost server and Nodemailer, it would show there. I have an assumption it might be due to restrictive VPC/VPN configuration that our devop guy setup. The EC2 server only open through 22 port and 443 and 80 are thrown through the network gateway so that the load balancer keeps control over the traffic. Can this be a problem? Any other ports have to be seen through outside to make transactional emails to happen? Website is reachable by opening in a web browser.
I also wonder why your config for Gmail SMTP does not work. Tried removing the āserviceā line as Michael_Lavelle suggested, but no luck. 2FA turned on, got the App Password the right way, it shows a 16-[a] password with spaces between 4-letter blocks, tested both with spaces and without. ā(ļæ£ć®ļæ£)ā
I donāt know enough about your setup to tell you where to look for logs.
If you visit your site, do you see the visit logged in info? If not, you might have the wrong logsā¦
You could very well have necessary ports blocked. If you want more help, post mail config details from cobfig.production.json and details about your server setup.
Could also be a proxying bug. Check the browser console for logs also. (F12)
Oh, thanks for the tip! Indeed, I see the initiated POST request with a new stuff member email data to the /ghost/api/admin/invites/ endpoint. It fails with 504 error code gateway timeout. ā¦
Hi All -
This is a bit more advanced than Iām used to for containers. Can someone elaborate on this step for me. Iāve tried several things and they all fail.
First thing I tried was sshāing into the container:
docker run -it --rm ghost:5-alpine /bin/ash
then I saw the config file in there (/var/lib/ghost within the container). I modified that file and nothing changed. Then I stopped and restarted the container, and the modified file returned to its original state (removed the added gmail stuff from above).
I also tried modifying directly from the host system by finding the file (found with find / -name). Located here:
cd /var/lib/docker/overlay2/[docker container stuff]/diff/var/lib/ghost/
Modified the file there, had zero impact on the container behavior. Help appreciated.