[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: does sendmail work with ldap groups?



On Sat, Oct 16, 1999 at 07:16:31AM +0200, Julio Sanchez wrote:
> Stuart Lynne <sl@fireplug.net> writes:
> 
> > it has a final list of deliverable addresses. It then proceeds to deliver
> > them locally or forwards them to whatever system they should be delivered 
> > to. 
> 
> What my mail500 tries to do is exactly that, it will try to expand the
> list internally as much as possible and will build N lists: one for
> "normal" recipients and one more for every mail group that requires a
> specific envelope sender address.  All routines receive a pointer to a
> recipient list and care no further.  Sometimes that is the main
> recipient list, sometimes it is some mail group recipient list.  It
> cannot be reduced any further.  So the basic logic is sort of there.
> 
> Now, the problem is my mail500 has no concept of what domains are
> locally hosted or, to be precise, what domains are governed by the
> directory we are using (the logic is in sendmail.cf).  So when an
> entry expansion ends in an RFC822 address (not a mailbox account), it
> ends expansion at that point and passes the result to sendmail.  Of
> the list of new recipients, sendmail will deliver locally some,
> forward elsewhere a few others and those in directory domains will be
> passed to mail500 again.  This should be improved by letting mail500
> know more about what is its universe.  We could do away without it if
> we knew for sure there was no inconvenient entry in the directory, but
> I think it would be unnecessarily restrictive.

What I do is simply always believe MX records. Given that I can do the above
in the MTA and the MTA can always determine for each address if the MX
record says that delivery is local I can have exim do all the hard work.

Actually I cheat a bit by having different MX records for the virtual
domains and the deliverable mailbox addresses. The former are considered
local to all MTA's that can handle them and the latter are considered local
only by the specific hosts that will handle local delivery for an address.

But the end result is the MTA does everything it can in a single process
(including local delivery for compatible formats). And mail gets forwarded
only to an outside system for domains we have no control over or to the
correct local delivery host. 


-- 
Stuart Lynne <sl@fireplug.net>                __O 
<http://edge.fireplug.net>                  _-\<,_               604-461-7532
PGP Fingerprint: 28 E2 A0 15 99 62 9A 00   (_)/ (_)   88 EC A3 EE 2D 1C 15 68