On Fri, Sep 28, 2001 at 09:01:04AM +0200, Christoph Neukirch wrote:
> hi again,
>
> thanks for your first help.
> and sorry, in my /var/qmail/alias/.qmail
>
> |preline /usr/local/maildeliver/wrapper.pl "$USER" "$EXTENSTION" "$SENDER"
> "$RECIPIENT" "$MATCH"
>
This doesn't help too much. /var/qmail/alias/.qmail is only for
[EMAIL PROTECTED] try .qmail-default instead. But if you have a ldap entry
for your users you do not need a ~alias/.qmail-default.
>
> ldap now:
>
> objectClass : top
> person
> qmailUser
> sn : Christoph Neukirch
> cn : Christoph Neukirch
> uid : [EMAIL PROTECTED]
> mail : [EMAIL PROTECTED]
> mailMessageStore : gamesurf/bully
> userPassword : {crypt}Eq78.HtBNN/n6
> mailHost : test.gamesurf.de
> deliveryProgramPath : /usr/local/maildeliver/wrapper.pl
> qmailDotMode : ldapwithprog
> deliveryMode : normal
> accountStatus : nopop
>
Seems OK.
>
> log with debugoutput:
>
Beautified a bit:
Sep 28 08:57:01 mail1 qmail: 1001660221.725306 delivery 1: deferral:
mailaddr:[EMAIL PROTECTED]/
ldapfilter:_'(|([EMAIL PROTECTED])([EMAIL PROTECTED]))'/
ldap_lookup:_init_successful,_set_option_successful,_bind_successful/
ldap_lookup:_search_for_(|([EMAIL PROTECTED])([EMAIL PROTECTED]))_succeeded/
ldap_get_userinfo:_qmailUID:_508_(default)/
ldap_get_userinfo:_qmailGID:_508_(default)/
ldap_get_userinfo:_uid:[EMAIL PROTECTED](from_server)/
ldap_get_userinfo:_accountStatus:_nopop_(from_server)/
ldap_get_userinfo:_mailHost:_test.gamesurf.de_(from_server)/
ldap_get_userinfo:_mailMessageStore_&_homeDirectory:_/
homeDirectory=undefined/
mailMessageStore=gamesurf/bully_(from_server)/
_using_/var/qmail/maildirs/_as_prefix/
homeDirectory=(null_pointer)_&_mailMessageStore=/var/qmail/maildirs//gamesurf/bully/
ldap_get_extrainfo:_mailQuota:__nothing_found/
ldap_get_extrainfo:_mailForwardingAddress:__nothing_found/
ldap_get_extrainfo:_deliveryProgramPath:__/usr/local/maildeliver/wrapper.pl/
ldap_get_extrainfo:_deliveryMode:__normal/
ldap_get_extrainfo:_mailReplyText:__nothing_found/
ldap_get_extrainfo:_qmailDotMode:__ldapwithprog/
found:_user='[EMAIL PROTECTED]'_uid=508_gid=508_homedir='(null_pointer)'_
mms='/var/qmail/maildirs//gamesurf/bully'_host='test.gamesurf.de'_status=1/
QMAILQUOTA:_/
QMAILDELIVERYPROGRAM:_/usr/local/maildeliver/wrapper.pl/
QMAILMODE:_normal/
QMAILDOTMODE:_ldapwithprog/
LDAP_lookup_succeeded/
executing_'[EMAIL PROTECTED]
/var/qmail/maildirs//gamesurf/bully_bully___test.gamesurf.de_
[EMAIL PROTECTED]/'_under_uid=508,_gid=508/
Unable_to_switch_to_/var/qmail/maildirs//gamesurf/bully:_file_does_not_exist._(LDAP_ERR_#2.2.4)/
>
> it finds the deliverprogram, but wants to deliver local to maildir. i dont
> have an idea why.
>
> hope this helps anyone to can help me.
>
qmail-local does not try to make a local delivery. It tries to switch to
the homedirectory of the user. In your case:
/var/qmail/maildirs//gamesurf/bully and this dir does not exist.
It's in the nature of qmail-local to switch to the users $HOME dir and
this is good so.
Sollution:
Set mailMessageStore to a existing directory or use homeDirectory and
mailMessageStore together.
--
:wq Claudio
tail -23 QLDAPINSTALL