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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-30-2009, 05:59 AM
|
#1
|
LQ Newbie
Registered: Sep 2009
Location: India
Posts: 20
Rep:
|
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.
|
|
|
12-30-2009, 10:05 AM
|
#2
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep: 
|
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.
|
|
|
12-30-2009, 11:41 PM
|
#3
|
LQ Newbie
Registered: Sep 2009
Location: India
Posts: 20
Original Poster
Rep:
|
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
|
|
|
12-31-2009, 12:56 PM
|
#4
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep: 
|
If you do a netstat -plan do you see something listening on port 9999 on localhost?
|
|
|
01-03-2010, 11:52 PM
|
#5
|
LQ Newbie
Registered: Sep 2009
Location: India
Posts: 20
Original Poster
Rep:
|
I followed the ReadMe file steps from Milter lib.
Now, All is well.
Thanx
|
|
|
All times are GMT -5. The time now is 11:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|