Chris Wilkes wrote:

On Fri, Aug 29, 2003 at 12:36:38PM -0500, Mike Manders wrote:


I've read a few people discussing the possibilities of forwarding emails based on the groupofnames attribute in an ldap group. I've read that the main way of doing mailing list groups is to add multiple instances of 'mailForwardingAddress' to a qmailUser with the mail set to the group email address.

The only problem I have with this is that there are now two email addresses to manage in my ldap directory. This is not necessarily a problem, but it will cause a few conflicts every once in a while. Other than those few posts, I haven't found too much information with regards to this situation.



How about setting up an ezmlm mailing list and including those couple of users in it for members. Have it set so that only you can add people to this group.

This is a possibility, but that seems like it'd have the same problems of email addresses changing. Since their working email address will always be in the ldap 'mail' attribute of their user dn, and an ldap groupofnames member specifies only the dn. By getting the member list from the ldap directory, and then getting their primary 'mail' address specified in their dn, I'd always have a current list of email addresses for group members.



Here is the main problem. Since I'm not able to send the email addresses back for qmail to forward the message off nicely. How should I look at resending this message? Most of the qmail-command examples I see are simply to either send a new message back to original sender(vacation) or to pass a value back to qmail, so that it knows to reject/accept the message.



I'm not sure what you're asking here. Are you trying to have users send out email with that group email address listed in the From? That's primarily a mail client issue.

Chris


The user will send an email to say [EMAIL PROTECTED] This address maps to a ldap entry with objectclass values of 'qmailUser', and 'groupOfNames'. Having deliveryProgramPath set to '/location/grpemail.pl [EMAIL PROTECTED]', and qmailDotMode set to 'ldapwithprog'. The grpemail.pl will search the ldap directory for the email addresses the email group [EMAIL PROTECTED] is mapped to. This works great, but I don't know what to do with the addresses given back by grpemail.pl. I was wondering if I have to use some sort of internal perl mail spool type library, or if I can somehow give these addresses back to qmail to forward the email grpemail.pl has received.

Or to find out if I'm just misguided, and there's an easier way to forward an incoming email to [EMAIL PROTECTED] to all the members specified in the by the 'member' field of the groupOfNames objectClass.

Mike



Reply via email to