LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-30-2009, 05:59 AM   #1
mannoj
LQ Newbie
 
Registered: Sep 2009
Location: India
Posts: 20

Rep: Reputation: 1
Milter


Hi,

I wrote the milter application (milter.c).
I compiled it and it run successfully(./milter).

But how to configure it with sendmail?
Where should I kept it? plz, specify location.


Thank you.
 
Old 12-30-2009, 10:05 AM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Well, it depends on the milter to some degree but for most general purposes you can review this:

http://www.sendmail.org/m4/adding_mailfilters.html

Additionally most milters aren't a single file, they're a multitude of files that perform various operations on the mail as its coming in or during processing at some point.

Knowing what milter you're trying to install and use would be useful information.
 
Old 12-30-2009, 11:41 PM   #3
mannoj
LQ Newbie
 
Registered: Sep 2009
Location: India
Posts: 20

Original Poster
Rep: Reputation: 1
milter executable file location

Hi,

I wrote simple milter contain only main function.

I want to know that "what is next?".

I made executable and kept it in /usr/sbin.

Following changes in sendmail.mc:

dnl INPUT_MAIL_FILTER(`KMilter', `S=inet:9999@localhost')dnl
dnl define(`confINPUT_MAIL_FILTER', `KMilter')dnl

then also facing the error:

Dec 31 04:02:04 localhost sendmail[29712]: nBUMW4LG029712: Milter (KMilter): error connecting to filter: Connection refused by localhost
Dec 31 04:02:04 localhost sendmail[29712]: nBUMW4LG029712: Milter (KMilter): to error state

Last edited by mannoj; 12-30-2009 at 11:42 PM. Reason: Spelling mistake
 
Old 12-31-2009, 12:56 PM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
If you do a netstat -plan do you see something listening on port 9999 on localhost?
 
Old 01-03-2010, 11:52 PM   #5
mannoj
LQ Newbie
 
Registered: Sep 2009
Location: India
Posts: 20

Original Poster
Rep: Reputation: 1
I followed the ReadMe file steps from Milter lib.
Now, All is well.

Thanx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with milter dimm_coder Programming 1 12-30-2009 05:56 AM
Starting spf-milter: spf-milter: Milter for 'spf-milter' not found in /etc/mail/sendm Niceman2005 Linux - Software 1 07-06-2009 03:07 AM
bm-milter and sendmail Ammad Linux - Networking 1 11-23-2006 09:40 AM
milter Ammad Linux - Networking 1 11-19-2006 04:43 PM
sendmail+milter roopunix Linux - Networking 1 07-29-2005 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration