>> Then I want to have something like the following inside /etc/exim/filter1
>>
>> >group = ${lookup ldapm {ldap://localhost:389/ou=people,dc=testdomain,dc=com?ou?(mail=${local_part})}{$value}
>> >
>> >if $group is "marketing" then save /dev/null endif
>
>You can't invent your own variables in a filter.
Is there a way to store the results of the lookup into some kind of variable so that it can be used multiple times in the exim filter without multiple ldap lookups?