Solved

sendmail Milter

Posted on 2002-05-13
6
380 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
as logs exchange 2010 7 58
managed Distribution list in postfix 2 23
Delayed Email Deliveries 5 75
Exchange server send email to yahoo delay 9 47
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

751 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