|
Xamime Integration with Bynari Postfix |
|
|
|
Bynari Postfix has inbuilt Anti-Virus and Anti-Spam filtering with the bundled amavis package. Spamassassin, Razor and ClamAV primarily make up the components.
In some cases though, more extensive content filtering and control is required. Xamime provides this. Here's how to integrate it into Bynari's postfix.
Becasue the Bynari web interface has the potential to overwrite the config files we need to be a little careful. Ofcourse you will need the Xamime Postfix version pre-installed.
Xamime's postfix settings should be as below...
Server Name/IP : localhost Server Port : 25 HELO Domain : localdomain Run as user : xamime Run as group : postdrop First, use the Bynari web interface to disable the content_filter. (This edits /opt/insight/etc/postfix/main.cf)
Second edit /opt/insight/etc/postfix/master.cf
Comment out the following lines...
#smtp inet n - n - - smtpd #smtp inet n - n - 100 smtpd -o content_filter=dfilt:
Add the following definitions for Xamime...
xamime unix - n n - 10 pipe flags= user=xamime argv=/usr/local/xamime/xamime /usr/local/xamime/xamime.cfg (${sender}) (${recipient})
192.168.1.254:25 inet n - n - - smtpd -o content_filter=xamime 203.43.132.78:25 inet n - n - - smtpd -o content_filter=xamime 127.0.0.1:25 inet n - n - - smtpd -o content_filter=
Not you can be specific as above with what interfaces are filtered through xamime.
Restart bynari and test mail goes through xamime properly.
|