If you use a proxy for outbound connections with Cascade CMS, you may encounter log errors such as the following for system-generated emails such as workflow notification emails:

2020-06-24 16:01:31,504 ERROR [SendGridEmail] {User: ..., id: not specified, type: not specified} Could not send  mail Workflow: ... to ... : 
org.apache.http.conn.HttpHostConnectException: Connect to api.sendgrid.com:443 [api.sendgrid.com...] failed: Connection refused (Connection refused)

As of Cascade CMS version 8.16, system-generated emails sent via Sendgrid can support outbound proxies so long as your proxy host and port settings are properly configured in your JAVA_OPTS:

  • in the cascade.sh for Linux/*nix users
  • in the Java tab if running Cascade CMS as a Windows Service
  • in the cascade.bat if running Cascade CMS from the command line in Windows

Add the following parameters to your JAVA_OPTS, substituting the correct values for your outbound proxy host and port:

-Dhttp.proxyHost=example.com
-Dhttp.proxyPort=8080
-Dhttps.proxyHost=example.com
-Dhttps.proxyPort=8080
Did this answer your question?