Subscription emails are marked as SPAM
PostPosted:Sat Feb 01, 2014 3:38 am
Hi there,
Recently I had a problem with subscription emails. My hosting company, who run mail server, has a spam filter, which marks mails from OpenKM as a SPAM. Technically, it’s because of rule RCVD_NUMERIC_HELO, at least in my case. Another four hours of my life gone away just to dig such a trivial question! OMG! The problem is how OpenKM run a session with SMTP server, especially how it sends the EHLO command. EHLO command should be sent as
Have to say that this problem occurs only on linux servers (CentOS 6 in my case), on Windows EHLO is sent with computer name correctly (Tested with Windows 7 x64).
Hope this will save somebody’s four hours
P.S.
It's good idea to include this info in wiki.
Recently I had a problem with subscription emails. My hosting company, who run mail server, has a spam filter, which marks mails from OpenKM as a SPAM. Technically, it’s because of rule RCVD_NUMERIC_HELO, at least in my case. Another four hours of my life gone away just to dig such a trivial question! OMG! The problem is how OpenKM run a session with SMTP server, especially how it sends the EHLO command. EHLO command should be sent as
Code: Select all
but if you don’t take special actions, OpenKM will send it asEHLO hostnameCode: Select all
which will fail to go through most spam filters. Even if you have your hostname set at OS level. Unfortunately, there isn’t any information about that in documentation. So, if you have such a problem, you must add EHLO <your ip address>Code: Select all
attribute to the tag Resource name="mail/OpenKM" in your server.xml in /config folder (see documntation for more info). Restart Tomcat. That is. mail.smtp.localhost="your_host_name"Have to say that this problem occurs only on linux servers (CentOS 6 in my case), on Windows EHLO is sent with computer name correctly (Tested with Windows 7 x64).
Hope this will save somebody’s four hours
P.S.
It's good idea to include this info in wiki.