Print this page

How can I configure Email to Case to communicate via a proxy?

Knowledge Article Number 000025286
Description How can I configure Email to Case Agent to communicate via a proxy ?
Resolution

To configure Email-to-case Agent to communicate via a proxy, follow the instructions below:

Modify the Email to Case command line as follow, specifying the proxy host and proxy port as illustrated (the host and port are fictitious):

This is the original email2case.bat file: (this is a batch file and you can either run it by double clicking or run it from a command prompt)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

echo Email To Case Agent v1.08

java -jar  -Xmx256M Email2Case.jar sfdcConfig.txt log4j.properties

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is the modified version that would allow Email-to-case Agent to communicate via a proxy:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

echo Email To Case Agent v1.08

java -Dhttps.proxyHost=Customer_proxy_server_address.com -Dhttps.proxyPort=8080 -jar -Xmx256M Email2Case.jar sfdcConfig.txt log4j.properties
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

If you wish to use a local proxy for debugging change the endpoint in the sfdcConfig.txt file from: (changing the https to http )

<url>https://www.salesforce.com/services/Soap/u/9.0</url

OR

<url>https://www.salesforce.com/services/Soap/u/7.0</url>

to:

<url>http://www.salesforce.com/services/Soap/u/9.0</url>

OR

<url>http://www.salesforce.com/services/Soap/u/7.0</url>

and use the following command line option to start the email2case agent:

echo Email To Case Agent v1.08
java -Dhttps.proxyHost=Customer_proxy_server_address.com -Dhttps.proxyPort=8080 -jar -Xmx256M Email2Case.jar sfdcConfig.txt log4j.properties

See the attached example email2case.bat file (zipped).





Attachments
Name Type Size
email2case.zip
0KB

promote demote