--- In milter-greylist@yahoogroups.com, Emmanuel Dreyfus <manu@n...> wrote: > > On Mon, Dec 12, 2005 at 03:48:02AM -0000, Ugo Bellavance wrote: > > > You can patch the milter to replace tempfail by success... > > > > Yes... thanks. But I'm not much of a programmer and I don't really > > want to mess anything up. Would it be possible to implement this as a > > parameter in a future release? > > Sure, if someone does it. Since you desire the feature, you seem to be > the right person for implementing it. And that's a good opportunity to > learn about programming. > > Quickly hacking it is not difficult, edit miller-greylist.c, and replace > SMFIS_TEMPFAIL by SMFIS_SUCCESS. You can even do a nicer hack by not changing > the occurence after the malloc failure (when you are out of memory, you > temporarily reject until things get better). > > The next step is to add a configuration option, which is a bit more complex, > but after all you just have to replicate what is already done for other > options, such as noaccessdb. You have to edit the following files, duplicate > the lines where you have noaccessdb and replace noaccessdb by learnmode: > conf_lex.l conf_yacc.y conf.c conf.h > > The remaining part is straightforward: replace your SMFIS_SUCCESS change by > if (conf.c_learnmode) > return SMFIS_SUCCESS; > else > return SMFIS_TEMPFAIL; > > After this, be nice and add this new option to the man page (greylist.conf.5), > and contribute the result. Hi, did all that, but getting this error when compiling: [root@mta1 milter-greylist-2.0.2]# make gcc -g -O2 -Wall -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -c -o milter-greylist.o milter-greylist.c milter-greylist.c: In function `mlfi_envrcpt': milter-greylist.c:413: error: `SMFIS_SUCCESS' undeclared (first use in this function) milter-greylist.c:413: error: (Each undeclared identifier is reported only once milter-greylist.c:413: error: for each function it appears in.) milter-greylist.c: In function `mlfi_eom': milter-greylist.c:439: error: `SMFIS_SUCCESS' undeclared (first use in this function) I don't know where is defined oter "SMFIS_". Or is it SMFIS_CONTINUE? I can provide my code if needed. Regards, > > -- > Emmanuel Dreyfus > manu@n... >
Message
Re: Multiple MX questions
2005-12-12 by Ugo Bellavance
Attachments
- No local attachments were found for this message.