• Subscription emails are marked as SPAM

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #27707  by kalatchev
 
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
Code: Select all
EHLO hostname
but if you don’t take special actions, OpenKM will send it as
Code: Select all
EHLO <your ip address>
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
Code: Select all
mail.smtp.localhost="your_host_name"
attribute to the tag Resource name="mail/OpenKM" in your server.xml in /config folder (see documntation for more info). Restart Tomcat. That is.

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.
 #27708  by jllort
 
I think, really is not OpenKM problem is problem on mail server you're using and how are using it. Last years, caused by the increase of spam the rules in webservers are highers. Good practice is not using postfix OS webserver ( that normally will be identified by mail server receivers as spam candidate, is better use normal mail account, and configure it as is explained here http://wiki.openkm.com/index.php/Tomcat ... figuration

By default openkm come without non confgured mail server. We set server pointing to localhost in server.xml but is not our intention to set default configuration there. Probably will be better comment all xml lines, will be more clear and you have'nt got the problem, at least not exactly the same. We will study it. Any suggestion is wellcome.
 #27712  by kalatchev
 
jllort wrote:is not using postfix OS webserver ( that normally will be identified by mail server receivers as spam candidate, is better use normal mail account
That is what I do. I use normal mail account, provided to me from hosting company. They hosts my web site, not the OpenKM, which I run on my own server. No postfix on my server. It's about how OpenKM makes session with mail server (remote one), and what is sent with EHLO command.
jllort wrote:By default openkm come without non confgured mail server
I think it's OK. The problem is the missing attribute mail.smtp.localhost which simply instructs what to put in EHLO command when it is identifying to mail server. It's not related where the server is, which is set in mail.smtp.host. The meaning of mail.smtp.localhost is something like "My name is Peter" (similar to shell hostname), and if it isn't set, on linux (CentOS 6) server doesn't know his name is Peter, but identify itself to SMTP with its IP address.

Once again - OpenKM server and mail server are completely different machines, the first one is my owm (OpenKM) and the second belongs to and is maintained by other people. But if I miss mail.smtp.localhost attribute, during session with remote SMTP server, OpenKM sends EHLO aaa.bbb.ccc.ddd (my IP address) instead of EHLO openkm.example.com and the first one is caught by the spam filter (see the filter mentioned in my first posting).

I can send sessions from catalina.out - both with and without attribute mail.smtp.localhost.
 #27728  by jllort
 
Yes please, send us the log file to see differences and we will update the wiki documentation with it.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.