Michael Michael
    Michael Michael
    Michael Synametrics Support
        Michael Michael

From: Michael
Date: 10/14/19 10:51 AM
Topic: Michael
Type: General Discussions
Post a follow up

Hello,

 

    I am running Xeams 7.0 and trying to configure the spam learner email since the old xeams footer is now disabled. (I know I could re-enable it, but I'd like to use the learner email).

 

I have the DNS and MX record for spam.xxxxxxxx.com setup to go directly to Xeams. (xxxxxxxx.com uses a different outbound server)

I have the spam learner email set to spam@spam.xxxxxxxx.com

 

I have worked through the issues of getting the email to be delivered to Xeams. I can now look in the SMTP log for Xeams and see the message come in, but I do not see any indication that the message is being marked as junk looking at the Message Repository. I can not find a log to indicate what happens with this message after being received. I am getting no NDR and I see nowhere in the logs that reference the message after being received.

 

How can I confirm this is working, and if it isn't why isn't xeams picking up on the Spam Learner Email?

 

Thanks,

Michael.

Top

From: Michael
Date: 10/14/19 10:53 AM
Topic: Michael
Type: General Discussions
Post a follow up

Not sure why the subject is my name. My apologies. Please change to "Issue with Spam Learner"

Also, FYI: I have of course restarted Xeams since the configuration change.

Top

From: Synametrics Support
Date: 10/14/19 11:25 AM
Topic: Michael
Type: General Discussions
Post a follow up

Try the following steps:

  • Locate logconfig.xml file in the $INSTALL_DIR. On Windows, this should be something like C:\Xeams\logconfig.xml.
  • Open this file in any editor, such as Notepad
  • This file has two sections:
    Appenders - represented by an appender node.
    Categories - represented by a category node
  • The goal is to add a new appender and a new category using the templates you see below

Code snippet for a new Appender

    <appender name="SPAM_LEARNER" class="org.apache.log4j.RollingFileAppender">
        <param name="File" value="logs/SpamLearner.log" />
        <param name="Append" value="true" />
        <param name="MaxFileSize" value="5MB" />    
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d %-5p %c{2} - %m%n"/>
        </layout>
    </appender>

Change the name of the file (in red above) if you like.

Code snippet for a new Category

    <category name="SpamLearner" additivity="false">
      <priority value="DEBUG" />
      <appender-ref ref="SPAM_LEARNER"/>           
    </category>

Once done, save the file and restart Xeams. This will create a new file called SpamLearner.log in the $INSTALL_DIR\logs\ folder and will contain entries when Xeams learns from an incoming email.

 

 

 

 

 

 

 

Top

From: Michael
Date: 10/14/19 12:10 PM
Topic: Michael
Type: General Discussions
Post a follow up

Good deal... Made those updates and from the log - it seems to be working. Thanks!

 

Maybe this should trigger the Junk icon in the Message Repository (and add this above code to default config) in future versions as I know many companies use a forwarder to teach their spam filter and this would help them with the setup and verification of this with Xeams.

 

Hopefully this will also get indexed in the search engines for others as I could not find any info on this...

 

Thanks again,

Michael.

Top