Using Xeams as Spam firewall

3
14790

FirewallXeams is a user friendly, free multi-platform mail server supporting SMTP, IMAP and POP3. It incorporates a powerful junk/ spam filtering engine that eliminates almost 99% of the junk mail.

Xeams Spam filter email engine is developed using Java. Other open source software like Apache Tomcat– A web server used for the administrator console and Derby Apache which provides an embedded JDBC, a relational database that is used for reporting purposes is also used.

Xeams is freely available to use and supports multiple platforms and multiple email servers, in fact all mail servers which have smart-host functionality. Xeams can work in 3 modes: Standalone server, Hybrid mode and Spam firewall. You can download Xeams from

http://www.xeams.com/Download.htm

Supported OS:

The OS supported by Xeams are

Windows – 2000, 2003, 2008, 2012, XP, Vista, or a newer version. Linux – any distribution, UNIX – Solaris, HP-UX, AIX, BSD, Mac OSx

Specs used for this walk through

OS 2008 R2.
RAM: – 2GB memory
Disk Space: -200 GB

No of IP:

Two IPs are used for Spam Firewall mode:

Exchange server 2013 with Multi role i.e. CAS and Mail Box role

Spam firewall:

In this mode Xeams sits in front of another email server, i.e. Microsoft Exchange or any other SMTP server. Every in-coming email filters through Xeams and only good messages are forwarded to the actual Exchange email server. Your users connect to the Exchange email server via email client and webmail to fetch and send email.

Firewall
Network Diagram – Spam Firewall

 

Figure 2
In this walk through we’ll see Xeams in the Spam firewall configuration on a Windows machine and its co-existence with Exchange 2013. Xeams installation is pretty simple, just a two click installation wizard asking installation path and the ‘Finish’ button

 NOTE: – This walk though concentrates ONLY on the configuration part that is necessary for Xeams Spam Firewall mode.

 After installation, the default browsers opens http://localhost:5272 OR http://SMTP-Server-IP:5272 web administration console and asks the user to set the Xeams admin password.

Figure 3

After login to the web console go to Server Configuration menu, click Server configuration.

1] Under Basic configuration, for Server Type select Spam firewall. The working mode Xeams will perform. Click Save

Figure 4

2] Under the Server Configuration menu set

‘SMTP Configuration’ –> ‘Basic Configuration’

Bind To: This is the IP through which outgoing emails will be send. Set ‘A’ and ‘PTR’ record on this IP.

Figure 5

In the Relaying Tab enable ‘Close Relay’ and mention the IP of the Exchange server and click SAVE

Figure 6

2] Under Server Configuration menu SMTP Proxy Configuration, check Enable SMTP Proxy, this enables to and fro emails passing between Exchange and Xeams.

MX record must be set on this IP

 Figure 7

 2] Advance Configuration enable Multi-Domain if the Exchange mail server is authorize to receive email for multiple domains i.e. providing email service for multiple domains.

 Figure 8

 Smtp HELO FQDN must have ‘A’ record configured on SMTP server IP.

 Configuring the Exchange server to use Xeams as Spam filter firewall.

 Login in to the Exchange server ECP with administrative privileges.

 1] Under Mail-Flow configuration click on Send connector. Highlight available Send connector and edit its configuration OR add a new Send connector enabling Route mail through smart host and enter the Xeams SMTP server IP

 2] In the same way make changes in ‘receive connector’ to accept emails from Xeams server IP’s (Both IPs)

 Figure 9

Figure 10

Xeams has multiple functionality that can be used as per requirement, it also gives you granular control over SPAM filter configuration like filtering email subject, attachment filter and email size, IP and domain whitelist/blacklist. All these settings can be fine-tuned using regular expression as well.

Previous articleA Tribute to Edgar D’Souza
Next articleCross-Platform: Fact or Fiction?
The author is a Windows Expert with 11 years of experience in “Exchange mailserver versions 2003, 2007, 2010 and 2013” and Active Directory. Mail Security, Exchange and AD Architecture design, Hosted exchange architecture. Working with ESDS fully managed datacenter. Readers may reach him for further queries on his email ID : mithil@esds.co.in