Dreamhost E-mail Setup

I am using Dreamhost as my e-mail provider for my domain. When I try to setup the domain for my email addresses, it keeps saying “Connection Timed Out” does anybody know a potential work around for this, or can anyone provide a workaround for this problem?

How am I supposed to add a domain, if it continuously times out on the connection. How am I supposed to use the e-mail functionality of the software if I can’t add an email address. I have everything setup for those e-mail accounts on my server, but can’t seem to get my ERPNext install to validate that.

I have even tried using the IP address for the mail servers in my domain setting screen, but that doens’t work either!

Are you using your local server or using a cloud platform for hosting?

I am using a local server for hosting the ERPNext software, but my email is served by Dreamhost where I have my domains registered.

Check if you can ping dreamhost domain from your server, maybe some network setting needed

I am able to ping the mail server address as well as the IP

This is the Network log in Chrome. Maybe it can shed some light on things? I don’t do development with network access, so I don’t really know what I am looking at here.

Request URL:
Request Method:POST
Status Code:504 Gateway Time-out
Remote Address:
Referrer Policy:no-referrer-when-downgrade
Response Headers
view source
Date:Thu, 27 Jul 2017 04:23:57 GMT
Server:nginx/1.10.3 (Ubuntu)
Request Headers
view source
Accept:application/json, text/javascript, /; q=0.01
Accept-Encoding:gzip, deflate
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Cookie:selling_price_list=Standard%20Selling; io=YKy_ajvIWoUm7-Q0AAAO; user_image=; user_id=vincenzo%40heartlandwoodshop.com; system_user=yes; full_name=Vincenzo%20Fehring; sid=446ac035f7f65e7135a02394be5cf2953c3603690132fe94796d1918
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Form Data
view source
view URL encoded
doc:{“docstatus”:0,“doctype”:“Email Domain”,“name”:“New Email Domain 2",“__islocal”:1,“__unsaved”:1,“owner”:"vincenzo@heartlandwoodshop.com,“attachment_limit”:1,“email_id”:"vincenzo@heartlandwoodshop.com",“domain_name”:“heartlandwoodshop.com”,“email_server”:“mail.heartlandwoodshop.com”,“use_imap”:1,“use_ssl”:1,“smtp_server”:“mail.heartlandwoodshop.com”,“use_tls”:1,“smtp_port”:“465”}

Use the nc command to check if you are able to connect to the hosting site from you erpnext instance console
If you cannot connect it means your ISP / hosting /firewall is blocking the port

I would like to suggest to the community to make a simple php based API available which can be installed on a webhosting and called from local erp installations to send email , in case of port blocking ?

I ended up just shelling out the money for DreamCompute cloud hosting, and that works. I am curious as if it had something to do with the fact that my actual domain wasn’t pointed to the external IP for my server.