Hi Gordon!
Gordon Messmer schrieb:
Well, the current version of courier runs filters in alphabetical order,
and will stop filtering if given a response code that begins with the
digit 0. With that in mind, if you want to whitelist users, you can
create a new filter that evaluates the sender's information and uses a
'0XX' code when you want to skip processing.
I start wondering, if I am using something other than the people here ;)
Looking at cdfilter.C of version 0.56.0 (this is the latest version,
isn't it?) I don't think that filters are executed in in alphabetical
order, but in the order of the directory entries in the filter directories.
But that's nothing I do care about. The problem is just, that I cannot
find out if a message has been received authenticated without the hack
of checking the first Received header. (Bernd Wurst and Sam wrote about
the u line in the control file, but I never got such a line there with
the latest version 0.56.0 of courier.)
Checking if a sender address is a local address is not a solution, as
sender addresses can be forged in the general case.
I asked about frameworks because I expected that you'd be using either
pythonfilter or Courier::Filter. ;) As far as I know, both will let you
process filters in order and provide simple ways to whitelist senders.
Well ... as said, I do not want/need to whitelist senders, but need to
ignore filters for messages that are received on port 587 instead of
port 25 (because this are the mails received authenticated by customers).
Matthias