10-07-2017 04:21 AM
I'm having a issue with the mailer, i'v tried gmail and also our exchange server and cannot get a connection. keeps saying it cannot connect to host. I know the server has internet as its been allowed through our firewall in whitelist, any idea's at all or tricks?
10-09-2017 12:34 AM
Hello @j-servers, could you please post the exact error message? If it looks something like this "Connection could not be established with host smtp.example.com [php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known #0]", it could be a DNS problem.
There are some known problems with Docker and DNS when you have more than one name server configured in your system. Also if you have none, Docker defaults to Google's DNS server which could be blocked from your network. If this is your problem, this article could help https://robinwinslow.uk/2016/06/23/fix-docker-networking-dns/
10-10-2017 11:31 PM - edited 10-10-2017 11:37 PM
03-30-2018 10:00 AM
04-02-2018 06:27 AM
04-03-2018 05:32 AM
The issue was also discussed here: https://community.ubnt.com/t5/UCRM/Connection-could-not-be-established-with-host-smtp-gmail-com-php/...
04-03-2018 11:13 AM
04-04-2018 01:19 AM
@Capm that's strange. Can you please verify the connectivity from the container?
First, enter the container with:
sudo docker exec -ti ucrm_web_app_1 sh
where ucrm_web_app_1 is the name of the main UCRM container. If yours has different name, you can list them with: sudo docker ps
Once you are in the container, try to ping the mail server domain and IP.