|
|
メールリレーシステムを切り替える場合は、以下の点を考慮する必要があります。
• メールリレーを切り替える場合は、サーバーを再起動する必要があります。
• クローズドメールリレーシステムの使用中に、以下に示すいずれかのプロパティを変更した場合は、サーバーを再起動する必要があります。
|
%jdk%\bin\keytool -importcert -alias <<SMTP Server name>> -storetype PKCS12
-keystore jdk\lib\security\cacerts
-file <custome_CA_certificate>
where
-importcert - specifies to import the certificate response
-alias - specifies the name of the entry from which to import
-file - specifies the path from which to read the CA response
You must repeat the command for all the CAs.
|
|
認証ユーザー名とパスワードの追加または修正を行った後、is.properties ファイルを保存して暗号化ツールを実行します。これにより、is.properties ファイルで指定したパスワードが暗号化されます。
|
// NOTE: SMTP closed mail configuration requires username and password to send
// e-mails. As storing plain-text password is not recommended, using an appropriate encryption
// technique is recommended in retrieving authentication details from getSMTPUserName(),
// getSMTPPassword() functions.
function getSMTPUserName()
{
var smtpUsername = null;
return smtpUsername;
}
function getSMTPPassword()
{
var smtpPassword = null;
return smtpPassword;
}
//enable authentication
jmail_props.put( "mail.smtp.auth", true);
//enable TLS
jmail_props.put( "mail.smtp.starttls.enable", "true");
Packages.javax.mail.Transport.send(html_msg, getSMTPUserName(), getSMTPPassword());