...
Here is an example of how the mail configuration in win32.config
could look like:
Code Block |
---|
|
mail.configuration=mail.smtp.host\="localhost" mail.from\="eidm2@@localhost" mail.user\="" |
...
When encrypted communication is needed, use the mail.smtp.starttls.enable
with value true. Here is an example of win32.config
when connecting with encryption:
Code Block |
---|
|
mail.configuration=mail.smtp.host\="localhost" mail.smtp.port\="465" mail.from\="eidm2@@localhost" mail.user\="user" mail.password\="XXXXXXXX" mail.smtp.auth\="true" mail.smtp.starttls.enable\="true" |
...
The SMTP server issuer certificate can be added to the Java certificate store using the keytool
command. Here are example commands for Windows and Linux installations:
Code Block |
---|
language | text | theme | RDark |
---|
title | Listing 1. Windows |
---|
|
cd %JRE_HOME%\lib\security
set keytool="%JRE_HOME%\bin\keytool"
%keytool% -importcert -keystore cacerts -trustcacerts -alias <any alias e.g. mailserverca> -file <insert issuer certificate filename here> -storepass changeit |
Code Block |
---|
language | text | theme | RDark |
---|
title | Listing 2. Linux |
---|
|
cd $JRE_HOME/lib/security
keytool -importcert -keystore cacerts -trustcacerts -alias <any alias e.g. mailserverca> -file <insert issuer certificate filename here> -storepass changeit |
...