|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have written a milter, but now I cannot install it.
Following the book <Sendmail milters: a guide for fighting spam>, 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? ! |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
大鸟 wrote:
> I have written a milter, but now I cannot install it. > > Following the book <Sendmail milters: a guide for fighting spam>, 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? > > ! It's only a warning which you can ignore. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Nov 24, 7:42Âpm, Scott Grayban <sgray...@NOSPAM-gmail.com> wrote:
> 大鸟 wrote: > > I have written a milter, but now I cannot install it. > > > Following the book <Sendmail milters: a guide for fighting spam>, 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? > > > ! > > It's only a warning which you can ignore.- Hide quoted text - > > - Show quoted text - But after this configuration, the Sendmail doesn't work:-( |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
In article
<d549471d-9889-4dd5-9c81-8db5ac18cdc5@e10g2000prf.googlegroups.com> "=?GB2312?B?tPPE8Q==?=" <haopengz@gmail.com> writes: >I have written a milter, but now I cannot install it. > >Following the book <Sendmail milters: a guide for fighting spam>, 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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On Nov 25, 12:42Âam, p...@hedeland.org (Per Hedeland) wrote:
> In article > <d549471d-9889-4dd5-9c81-8db5ac18c...@e10g2000prf.googlegroups.com> > > "=?GB2312?B?tPPE8Q==?=" <haope...@gmail.com> writes: > >I have written a milter, but now I cannot install it. > > >Following the book <Sendmail milters: a guide for fighting spam>, 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 > p...@hedeland.org Yes, the initial "I" is missing from my post but it exsits in theconfigure file. I will try your writing tomorrow. thank you:-) |
|
![]() |
| Outils de la discussion | |
|
|