Mailing List Archive

senders
How can I get an LDAP lookup to return a colon-seperated list oppose to a
comma-seperated list.

thanks,

Aaron
Re: senders [ In reply to ]
On Jul 22 Aaron Anderson wrote:

>How can I get an LDAP lookup to return a colon-seperated list oppose to a
>comma-seperated list.

${sg{<ldap query>}{,}{:}} ?
Re: senders [ In reply to ]
My original query is:

senders = ${lookup
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}

and I get the errors:
LDAP attr loop echoMailRoutingAddress:cypher_key@hotmail.com
LDAP attr loop echoMailRoutingAddress:encrypted@echostar.ca
search ended by ldap_result yielding 101
LDAP search: returning: cypher_key@hotmail.com, encrypted@echostar.ca
lookup yielded: cypher_key@hotmail.com, encrypted@echostar.ca
cypher_key@hotmail.com in cypher_key@hotmail.com,
encrypted@echostar.ca? no (end of list)
ldap_list director: sender match failure

I changed it to:

${sg{lookup
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}

and I now get:

ldap_list director: failed to expand "${sg{lookup
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}"
missing or misplaced { or }

I've counted the brackets and a search of newsgroup leads me to
believe that it's a whitespace issue or something else other than {}
problems. Any ideas?

thanks,


Aaron

Quoting Matt Bernstein <mb@dcs.qmul.ac.uk>:

> On Jul 22 Aaron Anderson wrote:
>
> >How can I get an LDAP lookup to return a colon-seperated list
> oppose to a
> >comma-seperated list.
>
> ${sg{<ldap query>}{,}{:}} ?
>
>


-------------------------------------------------
Secure Webmail sent through: webmail.echostar.ca
Re: senders [ In reply to ]
On Tue, 23 Jul 2002, Aaron Anderson wrote:

> I changed it to:
>
> ${sg{lookup
> ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}

Try ${lookup instead of {lookup.

--
Philip Hazel University of Cambridge Computing Service,
ph10@cus.cam.ac.uk Cambridge, England. Phone: +44 1223 334714.
Re: senders [ In reply to ]
I changed it to the following:

${sg{${lookup
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}}

and I get : missing or misplaced { or }.

I also tried

${sg ${lookup
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}

and I get : missing or misplaced { or }.

I also tried

${sg ${lookup
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}

and I get : missing or misplaced { or }.


What am I missing here??

Aaron

Quoting Philip Hazel <ph10@cus.cam.ac.uk>:

> On Tue, 23 Jul 2002, Aaron Anderson wrote:
>
> > I changed it to:
> >
> > ${sg{lookup
> >
>
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}
>
> Try ${lookup instead of {lookup.
>
> --
> Philip Hazel University of Cambridge Computing
> Service,
> ph10@cus.cam.ac.uk Cambridge, England. Phone: +44 1223
> 334714.
>
>


-------------------------------------------------
Secure Webmail sent through: webmail.echostar.ca
Re: senders [ In reply to ]
On Tue, 23 Jul 2002, Aaron Anderson wrote:

> I changed it to the following:
>
> ${sg{${lookup
> ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}}
>
> and I get : missing or misplaced { or }.

Let me analize that...

${sg{
${lookup ldap
{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,
o=top?echoMailRoutingAddress}
}

There's a } missing here, to terminate the first argument of ${sg.

{,}{:}}}

There are too many }'s at the end. Try moving one } from the end to just
before {,}.

> ${sg ${lookupldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}
^
^
That one is missing a { there.

> ${sg ${lookup
> ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}

So is that one.

--
Philip Hazel University of Cambridge Computing Service,
ph10@cus.cam.ac.uk Cambridge, England. Phone: +44 1223 334714.
Re: senders [ In reply to ]
Ok.....I can't get sg to work so I thought I would start from scratch.

Here is the base query that I am running:
senders = ${lookup
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}

I run "exim -t -f cypher_key@hotmail.com -d9" and ere is a sniplet of
the log:

calling ldap_list director
search_open: ldap "NULL"
search_find: file="NULL"
key="ldap:///echoMailList=testlist,dc=echostar.ca,ou=vdomains,o=top?echoMailRoutingAddress"
partial=-1
LRU list:
7/etc/aliases
End
internal_search_find: file="NULL"
type=ldap
key="ldap:///echoMailList=testlist,dc=echostar.ca,ou=vdomains,o=top?echoMailRoutingAddress"
database lookup required for
ldap:///echoMailList=testlist,dc=echostar.ca,ou=vdomains,o=top?echoMailRoutingAddress
LDAP parameters: user=NULL pass=NULL size=0 time=0
perform_ldap_search: ldap URL
="ldap:///echoMailList=testlist,dc=echostar.ca,ou=vdomains,o=top?echoMailRoutingAddress"
server=NULL port=0 sizelimit=0 timelimit=0
Re-using cached connection to LDAP server NULL:389
Start search
ldap_result loop
LDAP entry loop
LDAP attr loop echoMailRoutingAddress:cypher_key@hotmail.com
LDAP attr loop echoMailRoutingAddress:encrypted@echostar.ca
search ended by ldap_result yielding 101
LDAP search: returning: cypher_key@hotmail.com, encrypted@echostar.ca
lookup yielded: cypher_key@hotmail.com, encrypted@echostar.ca
cypher_key@hotmail.com in cypher_key@hotmail.com,
encrypted@echostar.ca? no (end of list)
ldap_list director: sender match failure

Obviously I am pulling the proper information from the directory. The
lookup is yielding the 2 email addresses and the senders address is in
that list, however it is failing to match it.

How do I get Exim to realise that the senders address is in the
returned list?

thanks,

Aaron



Quoting Philip Hazel <ph10@cus.cam.ac.uk>:

> On Tue, 23 Jul 2002, Aaron Anderson wrote:
>
> > I changed it to the following:
> >
> > ${sg{${lookup
> >
>
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}}
> >
> > and I get : missing or misplaced { or }.
>
> Let me analize that...
>
> ${sg{
> ${lookup ldap
>
> {ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,
> o=top?echoMailRoutingAddress}
> }
>
> There's a } missing here, to terminate the first argument of
> ${sg.
>
> {,}{:}}}
>
> There are too many }'s at the end. Try moving one } from the
> end to just
> before {,}.
>
> > ${sg
>
${lookupldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}
> ^
> ^
> That one is missing a { there.
>
> > ${sg ${lookup
> >
>
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}
>
> So is that one.
>
> --
> Philip Hazel University of Cambridge Computing
> Service,
> ph10@cus.cam.ac.uk Cambridge, England. Phone: +44 1223
> 334714.
>
>


-------------------------------------------------
Secure Webmail sent through: webmail.echostar.ca
Re: FIXED - senders! [ In reply to ]
I was able to fix it. The query is:

senders = ${sg{${lookup
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}}{,}{:}}

Thanks for all your help!

Aaron

Quoting Aaron Anderson <aaron@echostar.ca>:

> Ok.....I can't get sg to work so I thought I would start from
> scratch.
>
> Here is the base query that I am running:
> senders = ${lookup
>
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}
>
> I run "exim -t -f cypher_key@hotmail.com -d9" and ere is a
> sniplet of
> the log:
>
> calling ldap_list director
> search_open: ldap "NULL"
> search_find: file="NULL"
>
key="ldap:///echoMailList=testlist,dc=echostar.ca,ou=vdomains,o=top?echoMailRoutingAddress"
> partial=-1
> LRU list:
> 7/etc/aliases
> End
> internal_search_find: file="NULL"
> type=ldap
>
key="ldap:///echoMailList=testlist,dc=echostar.ca,ou=vdomains,o=top?echoMailRoutingAddress"
> database lookup required for
>
ldap:///echoMailList=testlist,dc=echostar.ca,ou=vdomains,o=top?echoMailRoutingAddress
> LDAP parameters: user=NULL pass=NULL size=0 time=0
> perform_ldap_search: ldap URL
>
="ldap:///echoMailList=testlist,dc=echostar.ca,ou=vdomains,o=top?echoMailRoutingAddress"
> server=NULL port=0 sizelimit=0 timelimit=0
> Re-using cached connection to LDAP server NULL:389
> Start search
> ldap_result loop
> LDAP entry loop
> LDAP attr loop echoMailRoutingAddress:cypher_key@hotmail.com
> LDAP attr loop echoMailRoutingAddress:encrypted@echostar.ca
> search ended by ldap_result yielding 101
> LDAP search: returning: cypher_key@hotmail.com,
> encrypted@echostar.ca
> lookup yielded: cypher_key@hotmail.com, encrypted@echostar.ca
> cypher_key@hotmail.com in cypher_key@hotmail.com,
> encrypted@echostar.ca? no (end of list)
> ldap_list director: sender match failure
>
> Obviously I am pulling the proper information from the
> directory. The
> lookup is yielding the 2 email addresses and the senders
> address is in
> that list, however it is failing to match it.
>
> How do I get Exim to realise that the senders address is in
> the
> returned list?
>
> thanks,
>
> Aaron
>
>
>
> Quoting Philip Hazel <ph10@cus.cam.ac.uk>:
>
> > On Tue, 23 Jul 2002, Aaron Anderson wrote:
> >
> > > I changed it to the following:
> > >
> > > ${sg{${lookup
> > >
> >
>
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}}
> > >
> > > and I get : missing or misplaced { or }.
> >
> > Let me analize that...
> >
> > ${sg{
> > ${lookup ldap
> >
> >
> {ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,
> > o=top?echoMailRoutingAddress}
> > }
> >
> > There's a } missing here, to terminate the first argument
> of
> > ${sg.
> >
> > {,}{:}}}
> >
> > There are too many }'s at the end. Try moving one } from
> the
> > end to just
> > before {,}.
> >
> > > ${sg
> >
>
${lookupldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}
> > ^
> > ^
> > That one is missing a { there.
> >
> > > ${sg ${lookup
> > >
> >
>
ldap{ldap:///echoMailList=${local_part},dc=${domain},ou=vdomains,o=top?echoMailRoutingAddress}}{,}{:}}
> >
> > So is that one.
> >
> > --
> > Philip Hazel University of Cambridge Computing
> > Service,
> > ph10@cus.cam.ac.uk Cambridge, England. Phone: +44 1223
> > 334714.
> >
> >
>
>
> -------------------------------------------------
> Secure Webmail sent through: webmail.echostar.ca
>


-------------------------------------------------
Secure Webmail sent through: webmail.echostar.ca