hello everybody,
I have the same problem on a server running Qmail with ldap patch 20021201a.
In my configuration I use only a virtual user to deliver mail in maildirs using qmailscanner and spamassassin.
the default  maildirs deliver program is qmail default program.
I need for higher control for some account to use maildrop

my control files is
~control/ldapdefaultdotmode
ldaponly

my ldap ldiff likes for this users contains these attributes

dn: cn= , ou= , dc= ,dc=
mailMessageStore:
givenName:
sn:
userPassword::
mailAlternateAddress:
mail:
objectClass: top
objectClass: inetOrgPerson
objectClass: qmailUser
objectClass: person
uid:
accountStatus: active
cn:
description:
mailQuota:
deliveryProgramPath: maildrop -u uid
deliveryMode: normal
qmailDotMode: ldapwithprog


maildrop is compiled with direct ldap support.
my maildropldap.config

hostname xxx.xxx.xxx.xxx
basedn dc=xxxxxx,dc=xxxx
filter &(&(objectclass=qMailUser)(accountStatus=active))
binddn uid=xxxxxxx,dc=xxxxx,dc=xxxx
bindpw xxxxxx
timeout 5
search_method user
default_uidnumber 510
default_gidnumber 552
mail_attr mail
uid_attr uid
uidnumber_attr uidnumber
gidnumber_attr gidnumber
maildir_attr mailMessageStore
homedirectory_attr mailMessageStore
quota_attr mailQuota

maildrop 1.5.2 was compiled with:
./configure  --disable-tempdir --without-db --enable-syslog=1 --enable-maildrop-uid=vmail --enable-maildrop-gid=vmail --enable-smallmsg=65536 --enable-global-timeout=400 --enable-restrict-trusted=1 --enable-trusted-users='vmail' --enable-trusted-groups='vmail' --enable-maildirquota --with-trashquota --enable-maildropldap  --with-ldapconfig=/etc/maildropldap.config

I try to deliver a mail message directly with a command line action

cat msg | maildrop -d alberto

i got:  maildrop: You are not a trusted user
or :maildrop: Invalid user specified

ldap log file
Mar 11 20:57:55 server slapd[29871]: daemon: conn=21624 fd=10 connection from IP=xxx.xxx.xxx.xxx:44685 (IP=0.0.0.0:389) accepted.
Mar 11 20:57:56 server slapd[6657]: conn=21624 op=0 BIND dn="UID=XXXXX,DC=XXXXXX,DC=XXX" method=128
Mar 11 20:57:56 server slapd[6657]: conn=21624 op=0 RESULT tag=97 err=49 text=
Mar 11 20:57:56 server slapd[29871]: conn=-1 fd=10 closed

how can I setup maildrop without ldap authentication since its command line mode is
maildrop [ option ... ] [ -d user ] [ arg ... ]   ?





On Mon, 2003-03-10 at 20:46, Bastian Winkler wrote:
hello,

try using the package courier-maildrop on your debian-system. it should
read the variables exported by qmail-ldap (like $HOME, $SENDER) and
should find the $HOME/.mailfilter file. it works really fine with
virtual users and you need no additional ldap-lookups.

buz


On Mon, 2003-03-10 at 09:49, Szabo Nandor wrote:
> Helo! 
> 
> I'm using qmail-ldap, and sqwebmail on debian woody system. 
> 
> 1.
> When I use system users with own home directories, everithyng works fine, 
> deliveries, filters and autoresponses. I set up maildrop as delivery agent.
> # cat $HOME/.qmail ->
> |/usr/local/bin/maildrop 
> 
> I can edit filters with sqwebmail,
> # cat $HOME/.Maildir/maildirfilterconfig ->
> MAILDIRFILTER=../.mailfilter
> MAILDIR=./Maildir
> Sqwebmail generated the $HOME/.mailfilter file correctly. 
> 
> 2.
> When I use virtual users from LDAP entries, I add
> "deleveryprogrampath: /usr/local/bin/maildrop /popusers/USER/.mailfilter" to 
> USER entry.
> Deliveries, filters ok, but autoresponses don't work. 
> 
> 3.
> I want to add maildrop globally. 
> 
>  - install maildrop with ldap support:
> ./configure --enable-maildropldap --with-dapconfig=/etc/maildropldap.config 
> 
>  - put qmail-start "|/usr/local/bin/maildrop" to qmail startup script. 
> 
>  - create the /etc/maildropldap.config file 
> 
> PROBLEM: maildrop DOSN'T find the user HOMEDIRECTORY, and the .mailfilter 
> file. 
> 
> # cat /etc/maildropldap.config ->
> search_method           mail
> default_uidnumber       1006
> default_gidnumber       1006
> mail_attr               mail
> uid_attr                uid
> #uidnumber_attr         uidnumber
> #gidnumber_attr         gidnumber
> maildir_attr            mailmessagestore
> homedirectory_attr      mailmessagestore
> quota_attr              mailquota 
> 
> the virtual user LDAP entry:
> objectclass=person
> objectclass=qmailUser
> [EMAIL PROTECTED]
> uid=nszabo
> mailhost=anna2.panaphone.hu
> mailmessagestore=/popusers/nszabo
> mailquota=10000000S,1000C
> deliverymode=normal
> accountstatus=activ 
> 
> maildrop try to use the global virtual user (alias) home directories 
> (/var/qmail/alias) and mailfilter file!!!!!! 
> 
> #tail /var/log/qmail/qmail-send/current -> 
> maildrop:_Changing_to_/var/qmail/alias/Message_start_at_0_bytes,_envelope_se 
> nder=alias/maildrop:_Attempting_.mailfilter/maildrop:_Delivering_to_/var/spo 
> ol/mail/alias//usr/local/bin/maildrop:_Unable_to_open_mailbox./ 
> 
> Why maildrop can't find the home directories? 
> 
> Thank's 
> 
> Szabo Nandor 
> 
----------------------------------------
Alberto Passariello
      Byte Works Sistemi S.r.l.
Cisco Systems partner Premier certified
           Viale Liegi 44,
             00198 Roma

Tel: +39 6 863.863.22
Fax: +39 6 863.863.23
Email: [EMAIL PROTECTED]
-----------------------------------------------

Reply via email to