Re: [exim] extract email from tls_peerdn ?

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Nicolas KOWALSKI
日付:  
To: exim-users
題目: Re: [exim] extract email from tls_peerdn ?
On Fri, Oct 28, 2011 at 03:14:12PM +0300, Lena@??? wrote:
> > For example, with my certificate, the SSL peer debug shows:
> > /C=FR/ST=Ille-et-Vilaine/O=Home/OU=Computing/CN=Nicolas KOWALSKI/emailAddress=niko@???
> >
> > I currently extract the emailAddress using a double extract, first by
> > choosing the last field (separated by /), then a simple extract using
> > emailAddress as key.
> >
> > ${extract{emailAddress}{${extract{-1}{/}{${tls_peerdn}}}}}
> >
> > Obviously, this will fail if the /-separated last field is not the
> > emailAddress.
>
> ${extract{emailAddress}{$sg{$tls_peerdn}{/}{ }}}


Thanks for your help Lena, I will try your solution.

--
Nicolas