Its always worth checking errors against this post here:
When I check your -454 error, some trouble shooting options present themselves:
-454: “Unable to connect to DNS server. Check DNS and gateway configuration.”
So, lets check the DNS and gateway. Without those two being configured correctly, the email server host name will not be able to be resolved and you will get an error.
Open PAC Manager and do an inspect of the controller you are trying to send the email from.
It should have the following 4 sections filled out correctly for your network:
My controller is using both interfaces, yours may or may not.
If not, it should be using Ethernet 1.
You will have an IP address and subnet, if you didn’t, you could not connect to the controller at all.
The Gateway and DNS are the two critical ones for using host names in any sort of comm handle in your strategy.
The Gateway and DNS probably should be IP addresses to be safe and sure.
They both must be on the same subnet as the controller.
From there, you must set up the string tables as per the manual:
arrstrServer[0] = "myaccount@speedmail.com"; // User Account
arrstrServer[1] = "mypassword"; // Password
arrstrServer[2] = "smtp.speedmail.com"; // Server. May or may not need 'smtp'.
arrstrServer[3] = "587"; // Port#
arrstrServer[4] = "tls"; // "ssl", "tls", "none"
To be clear, you do not need to whitelist anything in the controller.
The email command connects to the email host name by looking it up via the DNS IP address and the email is sent. That is all you need to get configured correctly.
The only whitelisting that might be required is the PAC Controllers IP address in the IT departments email servers as they are probably not used to getting email send requests from such a device.
They can easily do this since the PAC Controller has a static IP address.