Peter,

> In any case, I am using the milter setup, using the old amavis-milter.c
> helper program, but if it resolves the issue, I will change to the
> new milter from Petr.

The old amavis-milter.c can't pass more information to amavisd
than a sender address and a list of recipients. It is a limitation
of that protocol. To get beyond that, Petr Rehor's helper program
with its support for the new AM.PDP protocol is needed.
See README.protocol - arbitrary pairs: attribute name / value
can be added to the list of pairs passed in each direction.

> Is there a howto for the new milter setup? Would it be a big change on
> your part to make it possible?
> I'll be gone for a few days, but I am willing to test this setup after
> Dec. 18th, when I am back again.

On the amavisd side, subroutine preprocess_policy_query would need
to be extended to recognize additional attribute passed from the  
amavisd-milter, come to a decision that this mail is coming from
an authenticated client, and switch policy bank accordingly.
It's about 10 lines of code, I can do it unless somebody else
does it first.

The main task is to decide what kind of additional information
would be useful for amavisd-milter to add to its list of attributes
passed to amavisd. I could be either some raw information like
'user used SASL to authenticate', and let amavisd decide what to do
with it, or alternatively, let amavisd-milter digest all its knowledge
about client IP address and his authentication, and pass on an already
digested attribute to amavisd, e.g. just a policy name:
  policy_bank=AUTHENTICATED-CLIENT

Which approach is better is probably a matter of discussion with
Petr Rehor and amavisd-milter mailing list. Passing just a policy name
over the protocol is less work and no additional configuration parameters
for me, and more for Petr. And vice versa.

  Mark

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to