[Exim] LDAP-based mailing lists

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Matthew Palmer
Dátum:  
Címzett: exim-users
Tárgy: [Exim] LDAP-based mailing lists
I'm trying to set up a way of mailing *every* user with an account on the
system without needing to set up a regular mailing list (a la listar,
mailman, majordomo, etc) because accounts come and go fairly regularly. I
have all user data stored in LDAP, with mail attributes to indicate
preferred destination addresses.

What I'd like to be able to do is send mail to an address, say
'all_users@???' and have it propagate out to all users with
'mail' attributes.

I think what I want is an aliasing director which checks to see if the To:
address is all_users@... and if it is do an LDAP search which returns all
the mail attributes.

This is the theory. The practical side is completely beyond me. I've tried
reading through the manual, especially part 9, but it's all a bit much for
this tired old brain to handle. I'm thinking something like

user_mailing_list:
  driver = smartuser
  local_parts = all_users
  rewrite = false
  new_address = ${lookup ldapm \
    ldap://ldap/baseDN?mail?sub?(objectclass=user)}


The problem with doing something like this is that an ldapm lookup returns
mail=address pairs - lots of them. I've looked at ${extract} but it doesn't
mention returning multiple values.

Does ${extract} work the way I want it to in the presence of multiple values
with the same key?


--
-----------------------------------------------------------------------
#include <disclaimer.h>
Matthew Palmer
mjp16@???