From: D. Stussy on
"Andrzej Adam Filip" <anfi(a)onet.eu> wrote in message
news:3stlt834bj+A3P(a)brandon.huge.strangled.net...
> DM <nospam(a)nospam.net> wrote:
> > we expected that, when the ldap server fails, sendmail would return a
> > 4xx TEMPFAIL at the SMTP dialog, but unfortunately it returns "User
> > Unknown" !
> >
> > So, I use "tempfail" in the FEATURE ldap_routing :
> > FEATURE(`ldap_routing',null,`ldap -1 -T<TMPF> -v mailRoutingAddress -k
> >
(&(|(objectClass=uPerson)(objectClass=uService)(objectClass=uEtuPerson))(|(
mailLocalAddress=%0)
> > (mail=%0)))',`bounce',,`tempfail')
> >
> >
> > but it seems that the tempfail has no effect :
> >
> > Mar 23 10:56:02 smtp03 sm-mta[21846]: o2N9qrZ0021846: SYSERR(root):
> > ldap_init/ldap_bind failed to pcpdm.univ-lille1.fr in map ldapmra:
> > Unknown error 325
> > Mar 23 10:56:02 smtp03 sm-mta[21846]: o2N9qrZ0021846:
> > <vadid-address(a)univ-lille1.fr>... User unknown
> >
> > Could you help me ?
>
> I think you have "miss placed" tempfail argument
> It should be *SIXTH* not *FIFTH* argument.

By my count, it is the sixth argument. The feature name is the first.


From: Andrzej Adam Filip on
"D. Stussy" <spam+newsgroups(a)bde-arc.ampr.org> wrote:
> "Andrzej Adam Filip" <anfi(a)onet.eu> wrote in message
> news:3stlt834bj+A3P(a)brandon.huge.strangled.net...
>> DM <nospam(a)nospam.net> wrote:
>> > we expected that, when the ldap server fails, sendmail would return a
>> > 4xx TEMPFAIL at the SMTP dialog, but unfortunately it returns "User
>> > Unknown" !
>> >
>> > So, I use "tempfail" in the FEATURE ldap_routing :
>> > FEATURE(`ldap_routing',null,`ldap -1 -T<TMPF> -v mailRoutingAddress -k
>> >
> (&(|(objectClass=uPerson)(objectClass=uService)(objectClass=uEtuPerson))(|(
> mailLocalAddress=%0)
>> > (mail=%0)))',`bounce',,`tempfail')
>> >
>> >
>> > but it seems that the tempfail has no effect :
>> >
>> > Mar 23 10:56:02 smtp03 sm-mta[21846]: o2N9qrZ0021846: SYSERR(root):
>> > ldap_init/ldap_bind failed to pcpdm.univ-lille1.fr in map ldapmra:
>> > Unknown error 325
>> > Mar 23 10:56:02 smtp03 sm-mta[21846]: o2N9qrZ0021846:
>> > <vadid-address(a)univ-lille1.fr>... User unknown
>> >
>> > Could you help me ?
>>
>> I think you have "miss placed" tempfail argument
>> It should be *SIXTH* not *FIFTH* argument.
>
> By my count, it is the sixth argument. The feature name is the first.

In my count "feature name" was argument zero.
More detailed version:
news:fcs14ocgnv+A3Q(a)gloria.huge.strangled.net

--
Open-Sendmail: http://open-sendmail.sourceforge.net/
There's nothing remarkable about it. All one has to do is hit the right
keys at the right time and the instrument plays itself.
-- J. S. Bach
From: DM on
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andrzej Adam Filip a &eacute;crit&nbsp;:
<blockquote cite="mid:fcs14ocgnv+A3Q(a)gloria.huge.strangled.net"
type="cite">
<pre wrap="">Andrzej Adam Filip <a class="moz-txt-link-rfc2396E" href="mailto:anfi(a)onet.eu">&lt;anfi(a)onet.eu&gt;</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">DM <a class="moz-txt-link-rfc2396E" href="mailto:nospam(a)nospam.net">&lt;nospam(a)nospam.net&gt;</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">we expected that, when the ldap server fails, sendmail would return a
4xx TEMPFAIL at the SMTP dialog, but unfortunately it returns "User
Unknown" !

So, I use "tempfail" in the FEATURE ldap_routing :
FEATURE(`ldap_routing',null,`ldap -1 -T&lt;TMPF&gt; -v mailRoutingAddress -k
(&amp;(|(objectClass=uPerson)(objectClass=uService)(objectClass=uEtuPerson))(|(mailLocalAddress=%0)
(mail=%0)))',`bounce',,`tempfail')


but it seems that the tempfail has no effect :

Mar 23 10:56:02 smtp03 sm-mta[21846]: o2N9qrZ0021846: SYSERR(root):
ldap_init/ldap_bind failed to pcpdm.univ-lille1.fr in map ldapmra:
Unknown error 325
Mar 23 10:56:02 smtp03 sm-mta[21846]: o2N9qrZ0021846:
<a class="moz-txt-link-rfc2396E" href="mailto:vadid-address(a)univ-lille1.fr">&lt;vadid-address(a)univ-lille1.fr&gt;</a>... User unknown

Could you help me ?
</pre>
</blockquote>
<pre wrap="">I think you have "miss placed" tempfail argument
It should be *SIXTH* not *FIFTH* argument.

P.S.
Thank you for debug "hint" in another part of the thread.
I has shown me "the light" ;-)
</pre>
</blockquote>
<pre wrap=""><!---->
To be very precise: Instead of using
FEATURE(`ldap_routing',null,`ldap ...',`bounce',,`tempfail')
I suggested using
FEATURE(`ldap_routing',null,`ldap ...',`bounce',`',`',`tempfail')


&lt;quote src="cf/README" version="sendmail-8.14.3"&gt;
FEATURE(`ldap_routing', &lt;mailHost&gt;, &lt;mailRoutingAddress&gt;, &lt;bounce&gt;,
&lt;detail&gt;, &lt;nodomain&gt;, &lt;tempfail&gt;)
&lt;/quote&gt;

</pre>
</blockquote>
<br>
Thanks very much, it's running correctly with :<br>
&nbsp; FEATURE(`ldpap_routing',`null',`ldap
....',`bounce',`',`',`tempfail')dnl<br>
<br>
Regards<br>
Dominique
</body>
</html>