How to enable anti-spam filtering in AXIGEN using the milter implementation of BitDefender Mail Protection for Enterprises

Article updated on 30 March, 2007

Description

How to enable anti-spam filtering in AXIGEN using the milter implementation of BitDefender Mail Protection for Enterprises

Resolution

1. Configuring the BitDefender MPE product


In the installation process of the product make sure to select it to integrate with Sendmail-milter. Then, check the milter socket existance:

netstat -lpn | grep bdmilterd
The command should output a result like the one below:

unix  2      [ ACC ]     STREAM     LISTENING     10827    4600/bdmilterd      /var/run/BitDefender//bdmilterd.sock
The permissions for the milter socket should also be checked:

ls -l /var/run/BitDefender/bdmilterd.sock
Note that AXIGEN must be able to access and write on the respective socket. An example on how to do this is to first add the bitdefender user to the axigen group:

usermod -g axigen bitdefender
Restart the bd daemon:
/etc/init.d/bd restart
Then, change the ownership for the milter socket:
chmod g+w /var/run/BitDefender/bdmilterd.sock

2. Configuring the AXIGEN Filtering Module


To set the milter socket in the aximilter configuration file, edit /etc/opt/axigen/aximilter.conf. Locate the line containing the milterSocket address and edit this to match the spam filters socket address

milterSocket "/var/run/BitDefender/bdmilterd.sock"
Save the settings and start aximilter

/etc/init.d/aximilter start
Note that if aximilter was already running when the changes were implemented to the configuration file, a restart of the process will be necessary for the new settings to take effect:

/etc/init.d/aximilter restart

3. Activating the filter in AXIGEN


To activate the aximilter filter at the "Server" context  click the "Filters" tab. Go to the "Active Filters" tab and click the "Add new filter" button. Set the priority of the filter according to your particular needs (for more information about the priority consult the manual). Make sure you select "Socket" as filter type and then in the list above the "aximilter" you have created earlier.
Next click the "Add" button to activate the filter and "Commit" to make the new settings take effect. To make the new changes permanent you should click Commands -> Save config.

Note that there is no need to restart Axigen for the filter to load. It will be used direcly.

Applies to

Releases: Filtering Module 1.1.X, Mail Server 3.0.X
OS: Linux, Windows, FreeBSD, MAC, OpenBSD, NetBSD, Solaris
Distros: RPM based distros, RPM based distros with gcc4, Slackware, Debian, Ubuntu, Gentoo, FreeBSD 5.4, NetBSD 3.0, OpenBSD 3.8, MAC, Windows, OpenBSD 3.9, Solaris 10 x86, FreeBSD 6.1


Rate this article

1
2
3
4
5
(Best)

Comments

Enter your name: *
Your email address: *
Comments: *
Enter the code below:
  captcha
Fields marked with * are required