Disabling SMTP Mail Server Authentication
Code Insight 6.14.2 SP2
To disable SMTP mail server authentication, do the following:
1. | If you email server does not require authentication, use the following email settings: |
emailsender.authentication = false
smtp.password = mail.smtp.auth = false mail.smtp.starttls.enable = false
2. | Also, modify an Apache Tomcat configuration file located as follows: |
<Code Insight_ROOT_DIR>\<version>\tomcat\webapps\palamida\WEB‐INF\classes\application‐context.xml
3. | Comment out the user name and password properties (shown in bold) from the mailSender section. |
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="${smtp.host.name}"/>
<property name="port" value="${smtp.host.port}"/>
<!--
<property name="username" value="${smtp.userName}"/>
<property name="password" value="${smtp.password}"/>
-->
<property name="javaMailProperties">
<props>
<prop key="mail.smtp.host">${smtp.host.name}</prop>
<prop key="mail.smtp.user">${smtp.userName}</prop>
<prop key="mail.smtp.port">${smtp.host.port}</prop>
<prop key="mail.smtp.auth">${mail.smtp.auth}</prop>
<prop key="mail.smtp.starttls.enable">${mail.smtp.starttls.enable}</prop>
</props>
</property>
</bean>