Re: (Fwd) Re: [Exim] System wide filter

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Dermot Paikkos
Datum:  
To: Yann Golanski
CC: exim-users
Betreff: Re: (Fwd) Re: [Exim] System wide filter
> Did I say bf? my mistake... it should be -bF for system filters.
> However, a quick look a the doc would have told you that.

Yes I had tried both bf & bF.
>
> exim -d 9 -bF filter < message should give you all the variable
> expended and you can trace through it.

Now that was useful. Debug 9. I see what's happening now. The
test mode is taking my login as the rcpt which means ${local_part}
is not equal to "test" and therefore normal delivery will occur. I need
to use something like the -f option which would make the recipient
test@???. However if I simply change test to root and run
exim -d 9 -bF test < testmail i get:

Filter: start of processing
Condition is false: error_message
Condition is true: ${local_part} contains root
Fail text "banned by postmaster"
Filter processing ended:
Filtering ended with the "fail" command.
Filter: end of processing

Which is what I want. So thank you Yann, you have helped.

> The following is from the vanilla configuration file:

In which case I've got to disagree with you that's not the manual. It
s the example config. So RTFM isn't accurate. but I should have
seen something so bold.

> ######################################################################
> #                      DIRECTORS CONFIGURATION                       #
> #             Specifies how local addresses are handled              #
> ######################################################################
> #                          ORDER DOES MATTER                         #
> #   A local address is passed to each in turn until it is accepted.  #
> ######################################################################


> Chapter 44 is called "Intermittently connected hosts". I don't think
> you mean that one, or if you do I really don't get your question.

We are using different manuals, 41 in "Intermittently connected
hosts" and 44 "system-wide message filtering".

> There is a whole file on filters exim-3.22/doc/filter.txt that will
> answer all of your basic question in it. Please, do read it.

Read it.
> > Thanx for the flame. The question is "does the order of directors
> > matter?" Sorry if i have skipped over it in the docs.
>
> As for a flame, I am not against answering questions and providing help.
> I was a new users as well. However, PLAESE read the documentation and
> don't ask questions that have the answer in BOLD in the configuration
> file!

I do and continue to read the manual (and indeed have the
forthcoming book on the top of my xmas list). But have a look. See if
you can find somewhere in the MANUAL that says the order matters.
I couldn't find it.
Thanx for taking the time though.




~~
Dermot Paikkos * dermot@???
Network Administrator @ Science Photo Library
Phone: 0207 432 1100 * Fax: 0207 286 8668