Kohei Nozaki's blog 

Disabling SpamAssassin on James


Posted on Friday Feb 06, 2015 at 03:00PM in Technology


I’m using revision number 1657019 in the SVN trunk of James3. I see an error in james-server.log at every receiving of emails as follows:

INFO  14:41:51,912 | james.mailetcontext | Error communicating with spamd on localhost:783 Exception: java.net.ConnectException: Connection refused

It seems like that James is trying to connect to local SpamAssassin instance, but I have no SpamAssassin instance on my server yet so I simply deleted following definition from mailetcontainer.xml.

<mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
  <spamdHost>localhost</spamdHost>
  <spamdPort>783</spamdPort>
</mailet>

Now the exception disappeared.



No one has commented yet.

Leave a Comment

HTML Syntax: NOT allowed