I’ve got ghost running on a digitalocean droplet under Ubuntu, and I’m struggling to get transactional emails working.
Setup: I’m trying to use my regular mail hosting platform, fastmail. digitalocean by default blocks the standard outgoing SMTP connections, but I’m using Fastmail’s SMTP proxy that allows connection on any port.
while i think the port 443 is incredibly odd for an smtp server, you likely have the secure tag value set to true instead of false and the requiretls option missing. try this block
The 443 port is due to DigitalOcean’s blocking of standard outgoing SMTP ports (25, 465, and 587). That swaks test script I have works without issue for any ports except 25, 465, and 587. I picked 443 since I know it isn’t blocked. I’ve tried a variety of ports in my config file, with no change.
Most of my other servers that use that same authentication are set to using implicit TLS on port 465.
I’m pretty sure my config.production.json matches that working swaks script, which is why I’m surprised.
I tried your example, and it doesn’t work, on 567 even swaks can’t connect because of DigitalOcean’s block. If I change that to any other port, I just get timeouts.
Anyone else here using fastmail’s proxy server with self-hosted ghost?
The receiving mail server would need to accept connections on port 443 as well though. I doubt that they do that. Standard SMTP ports are usually 25, 465, 587, or 2525 – the latter recently still worked at DigitalOcean.
Yes, I refer you to both Fastmail’s documentation and the swaks script above: Fastmail’s SMTP proxy accepts traffic on any port (to get around problem’s like DigitalOcean’s port blocking), and the swaks script I list above (which works fine as written).
I can also try this with pretty much any port except 25, 465, and 587 with swaks and it works fine. So the issue is in the configuration and execution, not the concept. Changing the port to 2525 doesn’t change anything, I just get a timeout.
What I’m looking to do, and this setup works fine with swaks:
SMTPS
Implicit TLS (this normally would be on port 465)
Using a port other than 25, 465, and 58
And if that doesn’t work, debug this, since all I can really get is a “timeout” message.
For completeness for anyone else in this situation (working around virtual hosting blocking normal SMTP ports using the fastmail proxy), this is the final configuration that is working: