Difference between revisions of "HowTos/Mimedefang"

From Scalix Wiki
Jump to: navigation, search
(MIMEDefang + Sendmail on Fedora)
(MIMEDefang + Sendmail on Fedora)
Line 9: Line 9:
 
1) Install the MIMEDefang milter (it is included in FC7 repositories by default):
 
1) Install the MIMEDefang milter (it is included in FC7 repositories by default):
  
yum install mimedefang  (if you want/need to try and install mimedefang without using yum, then visit [http://mimedefang.org MIMEDefang's website] to download and see instructions)
+
yum install mimedefang  (if you want/need to try and install mimedefang without using yum, then visit [http://mimedefang.org MIMEDefang's website] to download and see instructions)
  
  
 
2) start the mimedefang service:
 
2) start the mimedefang service:
  
service mimedefang start
+
service mimedefang start
  
 
(you might want to make that happen on boot up: chkconfig mimedefang on)
 
(you might want to make that happen on boot up: chkconfig mimedefang on)
Line 22: Line 22:
  
 
  define(`MILTER', `1')dnl
 
  define(`MILTER', `1')dnl
 
 
  define(`confMILTER_LOG_LEVEL', `6')dnl
 
  define(`confMILTER_LOG_LEVEL', `6')dnl
 
 
  INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:1m;R:1m;E:5m')dnl
 
  INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:1m;R:1m;E:5m')dnl
  
Line 30: Line 28:
 
4) rebuild the sendmail.cf file:
 
4) rebuild the sendmail.cf file:
  
make -C /etc/mail
+
make -C /etc/mail
 +
 
  
 
5) edit your smtpd.cfg file in /var/opt/scalix/NN/s/sys/ (where NN is first and last character in your hostname):
 
5) edit your smtpd.cfg file in /var/opt/scalix/NN/s/sys/ (where NN is first and last character in your hostname):
  
 
place the following line above the RELAY accept 127.0.0.1 line:
 
place the following line above the RELAY accept 127.0.0.1 line:
SMTPFILTER=TRUE
+
SMTPFILTER=TRUE
  
  
 
6) restart sendmail
 
6) restart sendmail
  
service sendmail restart
+
service sendmail restart
 +
 
  
 
7) restart the smtpd service
 
7) restart the smtpd service
  
omoff -wd 0 smtpd
+
omoff -wd 0 smtpd
omon smtpd
+
omon smtpd

Revision as of 22:19, 24 October 2007

Scalix Wiki -> How-Tos -> Mimedefang

MIMEDefang + Sendmail on Fedora

This describes how to install the MIMEDefang milter and integrate it with Sendmail and Scalix 11 on Fedora Core 7 (haven't tested on any other platforms yet. Note: this does not describe how to modify or otherwise get MIMEDefang running.


1) Install the MIMEDefang milter (it is included in FC7 repositories by default):

yum install mimedefang  (if you want/need to try and install mimedefang without using yum, then visit MIMEDefang's website to download and see instructions)


2) start the mimedefang service:

service mimedefang start

(you might want to make that happen on boot up: chkconfig mimedefang on)


3) edit the sendmail.mc file:

define(`MILTER', `1')dnl
define(`confMILTER_LOG_LEVEL', `6')dnl
INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:1m;R:1m;E:5m')dnl


4) rebuild the sendmail.cf file:

make -C /etc/mail


5) edit your smtpd.cfg file in /var/opt/scalix/NN/s/sys/ (where NN is first and last character in your hostname):

place the following line above the RELAY accept 127.0.0.1 line:

SMTPFILTER=TRUE


6) restart sendmail

service sendmail restart


7) restart the smtpd service

omoff -wd 0 smtpd
omon smtpd