Milter

From Wikislax
Revision as of 22:32, 6 December 2017 by Wikislax (talk | contribs) (Created page with "{{RightTOC}} == What is Milter ? == The Milter (mail filter) interface of the sendmail program affords calling plugins to filter bounce or modify mails while they are being...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

What is Milter ?

The Milter (mail filter) interface of the sendmail program affords calling plugins to filter bounce or modify mails while they are being received. Sendmail must have been compiled with the Milter DEFINE. Milter must be installed before MIMEDefang, as MIMEDefang needs the libmilter library.

Installing Milter

Build libmilter, libsm, and verify that mailstats, makemap, and smrsh are already in place :

# /etc/rc.d/rc.sendmail stop
# cd /usr/local/sendmail-*
# cd libmilter
# sh Build
# sh Build install
# cd ..
# mv /usr/lib/libmilter.a /usr/local/lib64
# cd libsm
# sh Build
# sh Build install
# cd ..
# cp obj.Linux*/libsm/libsm.a /usr/local/lib64
# cd mailstats
# sh Build
# sh Build install
# cd ..
# cd makemap
# sh Build
# sh Build install
# cd ..
# cd smrsh
# sh Build
# sh Build install
# cd ..

Install headers and libraries for MIMEDefang. The name of the Linux directory will actually depend on your specific installation :

# mkdir -p /usr/local/include/sendmail
# cp -R include/* /usr/local/include/sendmail/
# cp -R sendmail/*.h /usr/local/include/sendmail/
# cp obj.Linux.4.4.19.x86_64/*/*.a /usr/local/lib64/


ClamAV Main Page MIMEDefang