|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Aliasing (alias_maps) not working on an edge server
From: Magnus Bäck (magnus
dsek.lth.se)
Date: Wed Aug 02 2006 - 17:13:21 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wednesday, August 02, 2006 at 23:59 CEST,
Rob Tanner <rtanner
linfield.edu> wrote:
> Magnus Bäck said the following on 08/02/2006 01:55 PM:
>
> > You don't have to modify mydestination. You can use virtual
> > rewriting to rewrite the recipients that must be delivered
> > locally to a local domain.
> >
> > yourscript
linfield.edu yourscript
localhost
> >
> > (Assuming localhost.$mydomain is listed in mydestination.)
>
> Yikes. I probably have 2 to 3 thousand course section lists and some
> 500 new ones get added every semester. Will something as simple as
> this virtual remap work:
>
> classtag_server_host = ldap.linfield.edu
> classtag_search_base = ou=classlists,o=linfield.edu
> classtag_query_filter = (uid=%s)
> classtag_result_attribute = mailRoutingAddress
>
> where mailRoutingAddress is an ldap attribute of the value
> <listname>
localhost.linfield.edu. Sticking that attribute in the LDAP
> entry that defines the list is simple. Am I correct is assuming that
> will work, or do I need to research virtual rewriting a bit more.
That would almost do (almost because your uid attribute probably isn't a
complete mailaddress, but %s will be), but you can make it even simpler
for yourself:
classtag_server_host = ldap.linfield.edu
classtag_search_base = ou=classlists,o=linfield.edu
classtag_query_filter = (uid=%u)
classtag_result_attribute = uid
classtag_result_format = %s
localhost.linfield.edu
classtag_domain = linfield.edu
That way you don't have to add any data to your LDAP directory.
--
Magnus Bäck
magnus
dsek.lth.se
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]