The problem is that the mail server hosted locally in DMZ Zone with IP: 172.31.X.X and same network IP for OPENKM.
I want open km to connect to 5555 port over DMZ ip for sending mails without any authentication.
But after checking logs from mail server and catalina.out I found it was making connections to port 25 and RCPT disconnect for wrong authentication.
This port 5555/tcp is open specially for OPENKM.
I have modified the file $TOMCAT_HOME/conf/server.xml file but still it is connecting to port 25.
$TOMCAT_HOME/conf/server.xml configuration:
Code: Select all<Resource name="mail/OpenKM" auth="Container" type="javax.mail.Session"
mail.transport.protocol="smtp"
mail.smtp.auth="false"
mail.smtp.host="172.31.XX.XX"
mail.smtp.user="XXX@XXXX.com"
password="XXXXX"
mail.smtp.from="XXX@XXX.com"
mail.smtp.starttls.enable="false"
mail.port="5555"
mail.smtp.port="5555"
mail.debug="true"
/>