Solved

sendmail Milter

Posted on 2002-05-13
6
368 Views
Last Modified: 2013-12-17
Dear experts

I have installed sendmail 8.12.3 on Sun 8 system. It seems to be fine in the sending functions.

Does any know any the email blocking ? As far as I learn that the Milter function in sendmail can do the email blocking.

Please advise the setup / configuration changes in 8.12.3 ? e.g sendmail.cf or m4 etc.

Thanks in advance

Edmund
0
Comment
Question by:edmundli
  • 2
  • 2
6 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 7007661
The libmilter support in sendmail is merely a mechanism for hooking external filters into sendmail without requiring a modification to sendmail. Basically libmilter defines a communication mechanism and API for attaching a filter to an existing sendmail installation. There are quite a few libmilter filters available and you can find links to a number of them via http://www.milter.org/.
0
 

Author Comment

by:edmundli
ID: 7008226
I have a look of this before.

Can you send give some steps in order to make the milder works ?

e.g. mc or sendmail.cf changes

Edmund
0
 

Author Comment

by:edmundli
ID: 7049519
Hello,

Any feedback ?
Edmund
0
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 7049606
Oops, I missed a notification...

To have a sendmail that includes libmilter support you need to be using sendmail 8.12.3 (which you are) and have:

APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')

in your sendmail-8.12.3/devtools/Site/site.config.m4 file. Then build sendmail in the usual manner. The libmilter interface is then built with:

> cd sendmail-8.12.3/libmilter
> ./Build
# ./Build install

You'll usually need a number of the header files and perhaps some of the libs from the build of sendmail available. I also find that it's nice to have the cf hierarchy available outside of the sendmail sources and that can be done with:

> cd sendmail-8.12.3
# cp -r cf /usr/share/sendmail-cf
# mkdir -p /usr/local/include/sendmail
# cp -r include/* sendmail/*.h /usr/local/include/sendmail
# mkdir -p /usr/local/lib
# cp obj.???/*/*.a /usr/local/lib

replacing obj.??? with the directory that the build of sendmail produced.

Another email virus filter system that can use spamassassin for spam filtering that looks really good to me (and happens not to use libmilter) is MailScanner (http://www.sng.ecs.soton.ac.uk/mailscanner/index.html). In some ways I think it might be preferrable to a libmilter approach in that it's behaviour if the filter has problems is more to my liking.

The problem with a libmilter approach is what happens if the filter package chokes. One approach is to simply pass the mail through unfiltered, which is what the good filters do. That's probably fine if all you are doing is spam checking. But if you are also doing virus filtering it would be better to have the mail queued up until the filter can be restarted or fixed, whatever. The MailScanner approach is nice because it places incomming mail in one queue and the filter moves it to a delivery queue. If something happens to the filter the mail is still in the input put and can be processed later.
0

Featured Post

Make managing Office 365 email signatures a breeze

Are you using Office 365? Having trouble trying to set up email signatures for your users? Getting stressed out managing multiple signatures? Need an easier way to manage? We have a solution for you, try the most-user friendly and powerful signature management tool on the market.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Automapping, a wonderful feature with Exchange 2010 (SP2 onwards I believe), allows additional/Shared mailboxes that a user has access to be automatically mapped on Outlook client, simplifying the process by adding them while Outlook launches. Ho…
New-MailboxSearch Powershell Command and step by step approach to Search and Extract Emails form Exchange 2013 Journaling server.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now