|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: mouss (mlist.only
free.fr)
Date: Tue Jul 03 2007 - 11:13:47 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Simone Felici wrote:
>>
>>
>> you need to read the POLICY README document. but you certainly should
>> use the policy server example distributed with postfix source code
>> instead of reinventing the wheel.
>>
>>
>
>
> I've read about the policy and have understood how it works.
> Have someone an example on how collect the attr values sent from
> postfix to the external program?
Please take the time to read all the post instead of stopping at the
first period. I said
>> but you certainly should use the policy server example DISTRIBUTED
WITH POSTFIX SOURCE CODE ....
>
> [snip]
>
> I've no idea how to grep these infos into variable to use them into
> the perl-script. The script works, 'cause if I set a static
> action="DUNNO", "REJECT", "OK" or wathever, the answer is accepted
> from postfix and he accept or reject the mails. My last problem is to
> pass the "send attr recipient = bar
example.com" to a variable.
>
> A little help?
The example policy server will read the attributes into a hash table (in
perl, this is used as this: $attr{"foo"} = "bar").
>
> I'm really new with perl too, btw someting is working ;)
"Perl By Example" (http://affy.blogspot.com/p5be/index.htm) may help you...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]