<br>Hi John<br>
That was the best reply i ever got for a post on a forum.<br>
Thanks a million.<br>
I'll do a deeper study into all these before i proceed.<br>
Regards<br>
Nabeel<br><div><span class="gmail_quote">On 9/20/05, <b class="gmail_sendername">John Dennis</b> <<a href="mailto:jdennis@redhat.com">jdennis@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 2005-09-20 at 21:58 +0530, Nabeel Moidu wrote:<br>> I would be satisfied if the mailing lists can be maintained seperately<br>> using its own list while the users are stored in the directory server,<br>> but the only issue is when the mail server receives a mail, an ldap
<br>> lookup by the Spam Firewall (We use Barracuda here)  shouldn't result<br>> in it rejecting it as an invalid user since the lists are maintained<br>> seperately.<br>> Can this situation be overcome anyhow?
<br>><br>> And as for the LDAP module you will be releasing , Will it be for<br>> storing the lists completely in the ldap server?Can the list entries<br>> map to the existing user account in the LDAP server?<br>
<br>FWIW, I also maintain cyrus and dovecot at Red Hat.<br><br>I think you may have some concepts confused, let me see if I can<br>explain.<br><br>The MTA and the IMAP server at your site manage what I'll term "local
<br>users". In other words their accounts, mail storage, aliases, etc. are<br>under your control.<br><br>However a mailing list manager such as mailman does not necessarily<br>manage local users, in fact its often the case the members of a mailing
<br>list hosted at your site are mostly foreign users. For instance if your<br>site hosts a mailing list called "announcements" you might have people<br>subscribed to that list from all over the world. It is true that some
<br>sites hosting mailing lists only permit local users to join their lists<br>but that is somewhat orthogonal to the discussion of user and list<br>management at the LDAP level. In summary, the members of a mailing list<br>
hosted at your site are arbitrary email addresses.<br><br>However, what is local to your site with respect to the mailing list is<br>the list email address (e.g. <a href="mailto:annoucements@mycompany.com">annoucements@mycompany.com
</a>). Mail arriving<br>at your site for the mailing list and mail departing your site for the<br>mailing list is only ever as a "list address", individual users who are<br>members of the mailing list are never seen by your MTA (I'm playing a
<br>little fast and loose for simplicity here, but this is essentially a<br>true statement). Your MTA will need to know about the existence of the<br>list address so it can deliver and not reject the list as an unknown<br>
user. This is done by adding the list as an alias. In fact mailman has<br>nice support for postfix, when mailman creates a new list it<br>automatically adds the list alias to postfix's aliases. Mailman is not<br>even aware that postfix is managing its aliases via LDAP, you configure
<br>postfix to use LDAP for its aliases.<br><br>One minor caveat about mailing list aliases, there are several for each<br>mailing list which exist to handle bounces, requests, etc. but you're<br>pretty much shieled from having to know any of this.
<br><br>When your mailing list wants to send messages out to the list it invokes<br>your MTA for every email address that is in the mailing list. Some of<br>those email addresses will be local, some will be foreign. But once
<br>again you don't need to know or want to know that distinction, your MTA<br>handles it automatically. If some of the address happen to be local the<br>MTA will figure it out (postfix can be configured to do this via LDAP
<br>lookup of your local users). If your MTA determines the user is local<br>then it makes a local delivery.<br><br>If you are using IMAP then your MTA will deliver the mail to the IMAP<br>server. Just like your MTA your IMAP may be configured to use LDAP to
<br>look up information about your local users, in fact its probably a good<br>idea if you're usings LDAP for your MTA and other system based local<br>lookups (e.g. nss).<br><br>The key point here is only your MTA and your IMAP server care about
<br>local users. A mailing list is a special case of a local user. Take care<br>to note here I said the mailing list, which as far as your MTA is<br>concerned is a black box. The members of that mailing list have no local
<br>lookups unless a member happens to route locally and only then will it<br>become an MTA/IMAP issue (and at that point the mailing list is no<br>longer in the picture).<br><br>Thus when it comes to mailing lists you don't want to intermingle local
<br>users and list members and by extension the mailing list itself is<br>independently maintained. Local users and mailing lists are really two<br>seperate things.<br><br>On the other hand, if you're setting up virtual users (people who don't
<br>have system accounts only an email account) there are a few extra steps,<br>but essentially its the same thing. For simplicity I've omitted any<br>discussion of virtual domains as well, but fundamentally the concepts<br>
are the same, just one extra level of indirection.<br><br>I hope this explains things. Make sense?<br><br>I expect to post the LDAP support for mailman in the source forge<br>mailman patches site within about a week. Please be aware you will find
<br>an existing LDAP module there, but its quite incomplete and only usuable<br>in limited circumstances.<br><br>To further clarify, when mailman is configured to use LDAP its ldap<br>entries belong to mailman only. It will never lookup up anything outside
<br>of its own ldap tree.<br>--<br>John Dennis <<a href="mailto:jdennis@redhat.com">jdennis@redhat.com</a>><br><br></blockquote></div><br>