Help! How to intall my milter??

Help! How to intall my milter??

am 24.11.2007 11:29:17 von haopengz

I have written a milter, but now I cannot install it.

Following the book , I
add the following lines of codes to the sendmail.mc file.

" NPUT_MAIL_FILTER(`ourmilter ́, `S=3Dunix:/var/run/ourmilter.sock =CC=
=81)
define(`confINPUT_MAIL_FILTERS ́, `ourmilter ́)"

However, when I use the command: $sudo make sendmail.cf
the screen will display error: Warning: excess arguments to builtin
`define' ignored


What is the meaning? And how to solve it?

Help!

Re: Help! How to intall my milter??

am 24.11.2007 12:42:24 von Scott Grayban

大鸟 wrote:
> I have written a milter, but now I cannot install it.
>
> Following the book , I
> add the following lines of codes to the sendmail.mc file.
>
> " NPUT_MAIL_FILTER(`ourmilter ́, `S=unix:/var/run/ourmilter.sock ́)
> define(`confINPUT_MAIL_FILTERS ́, `ourmilter ́)"
>
> However, when I use the command: $sudo make sendmail.cf
> the screen will display error: Warning: excess arguments to builtin
> `define' ignored
>
>
> What is the meaning? And how to solve it?
>
> Help!

It's only a warning which you can ignore.

Re: Help! How to intall my milter??

am 24.11.2007 13:17:56 von haopengz

On Nov 24, 7:42 pm, Scott Grayban wrote:
> 大鸟 wrote:
> > I have written a milter, but now I cannot install it.
>
> > Following the book , I
> > add  the following lines of codes to the sendmail.mc file.
>
> > " NPUT_MAIL_FILTER(`ourmilter ́, `S=3Dunix:/var/run/ourmilter.sock =
́)
> > define(`confINPUT_MAIL_FILTERS ́, `ourmilter ́)"
>
> > However, when I use the command: $sudo make sendmail.cf
> > the screen will display error:  Warning: excess arguments to builti=
n
> > `define' ignored
>
> > What is the meaning?  And how to solve it?
>
> > Help!
>
> It's only a warning which you can ignore.- Hide quoted text -
>
> - Show quoted text -

But after this configuration, the Sendmail doesn't work:-(

Re: Help! How to intall my milter??

am 24.11.2007 17:42:07 von per

In article

"=?GB2312?B?tPPE8Q==?=" writes:
>I have written a milter, but now I cannot install it.
>
>Following the book , I
>add the following lines of codes to the sendmail.mc file.
>
>" NPUT_MAIL_FILTER(`ourmilter ́, `S=unix:/var/run/ourmilter.sock ́)
>define(`confINPUT_MAIL_FILTERS ́, `ourmilter ́)"
>
>However, when I use the command: $sudo make sendmail.cf
>the screen will display error: Warning: excess arguments to builtin
>`define' ignored

Well, your INPUT_MAIL_FILTER() macro is obviously missing the initial
'I', but I guess that may be from sloppy cut'n'paste. And you should not
have the confINPUT_MAIL_FILTERS define(), that is done by
INPUT_MAIL_FILTER() - either use MAIL_FILTER() + define() or only
INPUT_MAIL_FILTER(). But the real problem is that your closing quotes is
som "garbage" character(s) - I guess it's utf-8 for some character that
resembles an apostrophe, but it has to be the real thing (ascii 39
decimal) - like this:

INPUT_MAIL_FILTER(`ourmilter', `S=unix:/var/run/ourmilter.sock')

--Per Hedeland
per@hedeland.org

Re: Help! How to intall my milter??

am 25.11.2007 16:18:20 von haopengz

On Nov 25, 12:42 am, p...@hedeland.org (Per Hedeland) wrote:
> In article
>
>
> "=3D?GB2312?B?tPPE8Q==?=3D" writes:
> >I have written a milter, but now I cannot install it.
>
> >Following the book , I
> >add  the following lines of codes to the sendmail.mc file.
>
> >" NPUT_MAIL_FILTER(`ourmilter ́, `S=3Dunix:/var/run/ourmilter.sock =
́)
> >define(`confINPUT_MAIL_FILTERS ́, `ourmilter ́)"
>
> >However, when I use the command: $sudo make sendmail.cf
> >the screen will display error:  Warning: excess arguments to builtin=

> >`define' ignored
>
> Well, your INPUT_MAIL_FILTER() macro is obviously missing the initial
> 'I', but I guess that may be from sloppy cut'n'paste. And you should not
> have the confINPUT_MAIL_FILTERS define(), that is done by
> INPUT_MAIL_FILTER() - either use MAIL_FILTER() + define() or only
> INPUT_MAIL_FILTER(). But the real problem is that your closing quotes is
> som "garbage" character(s) - I guess it's utf-8 for some character that
> resembles an apostrophe, but it has to be the real thing (ascii 39
> decimal) - like this:
>
> INPUT_MAIL_FILTER(`ourmilter', `S=3Dunix:/var/run/ourmilter.sock')
>
> --Per Hedeland
> p...@hedeland.org

Yes, the initial "I" is missing from my post:) but it exsits in the
configure file.
I will try your writing tomorrow. thank you:-)