On Thu, Apr 23, 2009 at 01:46:00PM -0400, Wietse Venema wrote:

> > We could reserve the special treatment just for the current recipient
> > address (that would trigger loop detection) and deliver everything
> > else indirectly:
> > 
> >     Safe to deliver to "user" indirectly, because "user" is not "foo":
> > 
> >     aliases:
> >         foo:        :include:/some/path
> >         bar:        user
> > 
> >     /some/path
> >         bar
> > 
> >     Must deliver to "user" directly, because "user" is the top-level
> >     recipient:
> > 
> >     aliases:
> >         user:       :include:/some/path
> >         bar:        user
> > 
> >     /some/path
> >         bar
> 
> This makes the meaning of an alias dependent on the context in
> which it is used. Sending to b...@mydestination or sending to the
> same address via a distribution list that includes it.  Of course,
> silently inheriting an owner atribute also changes the meaning of
> an alias.

Yes, but it is not overly invasive, and narrowly addresses the issue of
when it is safe to "indirect".

> Another possibility is to always deliver the addresses in aliases
> indirectly, and to accompany the new queue file's recipient record
> with its expansion history, so that the next delivery agent can
> determine (in the above example) whether to expand "root" or to
> deliver to "root".

A related thought occurred to me, but I wanted to suggest the above
first. The related thought was to mark some recipients passed to
cleanup as "final", causing them to not undergo further expansion when
indirect delivery is performed. This is much more complex than the above
suggestion, but allows even the nested self-refence to be delivered
indirectly.

Storing the full rewriting history seems a bit of an overkill.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to