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-...@univ-lille1.fr>... User unknown
Could you help me ?
Thanks in advance
Dominique <-dot-> Marant <-at-> univ-lille1 <-dot-> fr
1) Could you post *all* log entries generated by the message? [o2N9qrZ0021846]
2) Do you use LDAP to fill classes in sendmail.cf?
[ http://www.sendmail.org/m4/ldap.html#classes ]
3) Could you post debug output produced by the command below?
[ execute it as root ]
echo '3,0 vadid-...@univ-lille1.fr' | sendmail -d60.5 -d38.99 -bt
--
[pl>en Andrew] Andrzej Adam Filip : an...@onet.eu : Andrze...@gmail.com
Despite the best efforts of a quantum bigfoot drive (yes I know everyone
told me they suck, now I know they were right) 2.1.109ac1 is now available
-- Alan Cox announcing Linux 2.1.109ac1
DM <nos...@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-...@univ-lille1.fr>... User unknown Could you help me ?1) Could you post *all* log entries generated by the message? [o2N9qrZ0021846] 2) Do you use LDAP to fill classes in sendmail.cf? [ http://www.sendmail.org/m4/ldap.html#classes ] 3) Could you post debug output produced by the command below? [ execute it as root ] echo '3,0 vadid-...@univ-lille1.fr' | sendmail -d60.5 -d38.99 -bt
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" ;-)
--
[pl>en Andrew] Andrzej Adam Filip : an...@onet.eu : Andrze...@gmail.com
History teaches us that men and nations behave wisely once they have
exhausted all other alternatives.
-- Abba Eban
To be very precise: Instead of using
FEATURE(`ldap_routing',null,`ldap ...',`bounce',,`tempfail')
I suggested using
FEATURE(`ldap_routing',null,`ldap ...',`bounce',`',`',`tempfail')
<quote src="cf/README" version="sendmail-8.14.3">
FEATURE(`ldap_routing', <mailHost>, <mailRoutingAddress>, <bounce>,
<detail>, <nodomain>, <tempfail>)
</quote>
--
Open-Sendmail: http://open-sendmail.sourceforge.net/
Excess on occasion is exhilarating. It prevents moderation from
acquiring the deadening effect of a habit.
-- W. Somerset Maugham
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:fcs14oc...@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
Andrzej Adam Filip <an...@onet.eu> wrote: