HI,

Having problem with an alias containing a command, error message =
permision denied

Need to setup a [EMAIL PROTECTED] alias as

"|/usr/local/bin/ldap_query"

where ldap_query(1) feteches the latest list of all email addresses.
My simple test of

$cat /var/qmail/alias/.qmail-test
|/home/medi/ldap/foo

where foo(1) is defined as

#!/usr/bin/perl

open(OUT, "> /tmp/foo.out") || die $!;
while(<>)
{
        print OUT;
}
close(OUT);

Is failing with an error message in /var/log/maillog saying

Feb 13 18:54:21 samba qmail: 982119261.837833 delivery 11917: deferral:
/bin/sh:_/home/medi/l/foo:_Permission_denied/

Anyone know how to solve this problem or generally how can I tap into
LDAP for such usage.

Thanks


--
=======================================================================
Medi Montaseri, [EMAIL PROTECTED], 408-450-7114
Prepass Inc, IT/Operations, Software Eng.
=======================================================================



Reply via email to