If you're doing SMS for EVERY user then you can put your script
in a file in /var/qmail/control. For instance:

$ cat /var/qmail/control/defaultdelivery
| /var/qmail/bin/sms_deliver.pl
$ cat /var/qmail/rc
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"
$ 

you could create your own attribs (smsnotify for instance) and check
within your delivery script wether the user should be notified or not.

regards,

-oscar

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
> ?
> 
> -=Czaj-nick=-
> 
> 
> 
> 
> 
> 
> 

-- 
pgp fingerprint: BC64 2E7A CAEF 39E1 9544  80CA F7D5 784D FB46 16C1

Reply via email to