On Tue, May 21, 2002 at 11:50:55AM +0200, Przemyslaw Wegrzyn wrote: > > Hello ! > > I have qmail-ldap 20011001a with ldap-control patch set on my server > curently. I'm trying to make SMS notification system, but I've > encountered some difficulties. > > ldapDefaultDotMode = ldapwithprog > > I've tried to use deliveryProgramPath attribute to point to my SMS > script, but then local deliveries don't work - let's assume that's ok. > > Thus I've added deliveryMode = localdelivery. Ok, now it seems to work, > but there's another problem. > If SMS script returns some error, delivery gets deferred. But with > deliveryMode = localdelivery I get e-mail delivered localy on every > deferral !! > > How to avoid this ? Is there any more clever way to do SMS notifications > ? > This is a qmail problem. All commands in the .qmail file (or the virtual ldap .qmail file) are executed until one fails. The only chance would be to move the localdelivery to the end so if your script fails the local delivery will not be run.
To achive this qmail-local.c has to be patched (I will add this to the todolist and try to add it in the next patch). If it is not important if your script fails then you could rewrite your script so that it allways exit(0). -- :wq Claudio
