[vchkpw] problem of send mail
hi,list: my system enviroment: RH 7.3 vpopmail-5.3.20 --enable-ldap=y --enable-logging=y --enable-default-domain=xxx --enable-clear-passwd=n openldap-2.0.27 qmail-1.03 sqwebmail-3.5.3 courier-imap-2.0.0 the sending and receiving email in the local domain is normal. but if i send a mail to a email box which is in another domain, two different results occur: if i send it with OE client, it fails: 553 sorry, that domain isn't in my list of allowed rcpthosts ... if i send it with webmail(sqwebmail), it succeed. and i can get this sent mail from that email box. why? and suggestions? thanks advance.
[vchkpw] Thanks
Hi, Jens, Tohru, phatrakom: All the thing is fine now, Thank you very much for your help. :-) RH7.3 qmail 1.0.3 vpopmail-5.3.20 openldap-2.0.27 qmailadmin-1.0.20 sqwebmail-3.5.3 - Original Message - From: Tohru Kobayashi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 7:50 PM Subject: Re: [vchkpw] Re: error:domain already exsits Hello, lixiang, On Fri, 25 Jul 2003 17:31:22 +0800 lixiang [EMAIL PROTECTED] wrote: hi, Rosa: i removed the cdb file, then the problem is solved. thank you . :-) then , everything seems normal, except the pop authentication. if i telnet localhost 110, and input the correct username and password, it reports: err aack, child crashed. my configure parameters: ./configure --enalbe-ldap=y --enable-logging=y redhat 7.3 vpopmail-5.3.20 openldap-2.0.27 qmailadmin-1.0.20 any ideas? I had the same problem with you until I disabled the clear password option. Try ./configure --enable-lday=y --enable-loggin=y --enable-clear-password=n However, I am still interested to have clear password working. Anyone with any suggestions? --- Tohru Koobayashi [EMAIL PROTECTED]
Re: [vchkpw] Re: error:domain already exsits
hi,Jens: i don't want to change qmail-pop3d to courier-pop3d because i want to ensure the combination of qmail+vpopmail feasible. BTW, even i start the slapd with the -s debug parameters, i cann't find any information in the syslog ( /var/log/message.*) .. - Original Message - From: Jens Jahr [EMAIL PROTECTED] To: lixiang [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, July 27, 2003 8:12 PM Subject: Re: [vchkpw] Re: error:domain already exsits Zitat von lixiang [EMAIL PROTECTED]: Hi lixiang, i removed the cdb file, then the problem is solved. thank you . :-) then , everything seems normal, except the pop authentication. if i Fine ;-) telnet localhost 110, and input the correct username and password, it reports: err aack, child crashed. OK, I use courier pop3d which works fine, so you might try this one. One very important parameter is to tell courier to do vchkpw - - auth AUTHMODULES=authcustom authvchkpw So add this line to your courier-pop3d conf-file than it should work. If this doesn't help, have a look at you syslog if there is any LDAP-query and what is the result. So please post your syslog when this error occurs ! Cheers Jens P.S: @LIST OK, next time I will post patches to SF, sorry for that mistake ;-)
[vchkpw] Re: vpopmail+qmail+ldap
Hi,Jens, i installed the ucspi-tcp, so i start qmail-pop3 through tcpserver : --snip (in a single line) exec /usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup mailserver.koal.com /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 --snap it was strange that why i couldn't find any information from syslog ( /var/log/message.*) , i start openldap with slapd -s debug, any suggestions? thanks. - Original Message - From: Jens Jahr [EMAIL PROTECTED] To: lixiang [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 5:57 PM Subject: Re: [vchkpw] Re: error:domain already exsits Zitat von lixiang [EMAIL PROTECTED]: i don't want to change qmail-pop3d to courier-pop3d because i want to ensure the combination of qmail+vpopmail feasible. BTW, even i start the slapd with the -s debug parameters, i cann't find any information in the syslog ( /var/log/message.*) .. Hi lixiang, so it is probably not an LDAP-issue but an qmail-pop3d issue. So check if the qmail-pop3d-user is able to execute LINK_TO/vchkpw. Check if the start-up of qmail-pop3d is set up properly. ( from inetd ) It should be : ( in a single line ) --- snip pop3 stream tcp nowait root /var/qmail/bin/qmail-popup qmail-popup YOUR_FQDN_OF_POP_HOST /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir --- snap Cheers Jens
Re: [vchkpw] error:domain already exsits
hi, Pretchieo: thank you for your help. i deleted the domain in /var/qmail/user/assign and /var/qmail/control/virtualdomains,rcphosts. restart all the qmail services. then i run ./vdominfo, it list no domains. but when i ./vadddomain test.com, it still reports: already exsits. what still make vpopmail think this? - Original Message - From: Pretchie [EMAIL PROTECTED] To: lixiang [EMAIL PROTECTED] Sent: Thursday, July 24, 2003 7:09 PM Subject: Re: [vchkpw] error:domain already exsits Make sure that the domain you have deleted is no longer in the /var/qmail/users/assign and /var/qmail/control/virtualdomains files. --- lixiang [EMAIL PROTECTED] wrote: hi,list: sry, i didn't clearly describe my problem. i use vpopmail-5.3.20, openldap-2.0.27 and enable --ldap=y. i added a domain for example: test.com, it's normal, then i delete this domain, it reports:error: success. it seems strange? and i find that this domain's directory has been deleted in ~vpopmail/domains . but when i add this domain test.com again, then it reports: domain already exsits. if i ./vdeldomain test.com, it then reports: error: Domain does not exist. if i execute ./vdominfo, i can find this domain's info. some ideas ? thanks a lot. Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/
Re: [vchkpw] Re: error:domain already exsits
hi, Rosa: i removed the cdb file, then the problem is solved. thank you . :-) then , everything seems normal, except the pop authentication. if i telnet localhost 110, and input the correct username and password, it reports: err aack, child crashed. my configure parameters: ./configure --enalbe-ldap=y --enable-logging=y redhat 7.3 vpopmail-5.3.20 openldap-2.0.27 qmailadmin-1.0.20 any ideas? - Original Message - From: Sérgio Manuel Rosa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 25, 2003 5:02 PM Subject: [vchkpw] Re: error:domain already exsits Hi, have you cleaned or removed the cdb file in /var/qmail/users ? At the start of my days with qmail and vpopmail I made a lot of mistakes, and one of them, regarding a domain that I removed by hand (a nice rm-rf), I solved by deleting ththat file and them creating all over again. Probably that was not the correct way of doing it, but it worked. Just in case do backup all of your ~vpopmail first. :-) SRosa lixiang writes: hi, Pretchieo: thank you for your help. i deleted the domain in /var/qmail/user/assign and /var/qmail/control/virtualdomains,rcphosts. restart all the qmail services. then i run ./vdominfo, it list no domains. but when i ./vadddomain test.com, it still reports: already exsits. what still make vpopmail think this? - Original Message - From: Pretchie [EMAIL PROTECTED] To: lixiang [EMAIL PROTECTED] Sent: Thursday, July 24, 2003 7:09 PM Subject: Re: [vchkpw] error:domain already exsits Make sure that the domain you have deleted is no longer in the /var/qmail/users/assign and /var/qmail/control/virtualdomains files. --- lixiang [EMAIL PROTECTED] wrote: hi,list: sry, i didn't clearly describe my problem. i use vpopmail-5.3.20, openldap-2.0.27 and enable --ldap=y. i added a domain for example: test.com, it's normal, then i delete this domain, it reports:error: success. it seems strange? and i find that this domain's directory has been deleted in ~vpopmail/domains . but when i add this domain test.com again, then it reports: domain already exsits. if i ./vdeldomain test.com, it then reports: error: Domain does not exist. if i execute ./vdominfo, i can find this domain's info. some ideas ? thanks a lot. Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/
[vchkpw] error:domain already exsits
hi,list: i use vpopmail-5.3.20, openldap-2.0.27 and enable --ldap=y. i added a domain for example: test.com, it's normal, then i delete this domain, it reports:error: success. it seems strange? and i find that this domain's directory has been deleted in ~vpopmail/domains . but when i add this domain test.com again, then it reports: domain already exsits. if i ./vdeldomain test.com, it then reports: error: Domain does not exist. some ideas ? thanks a lot.
[vchkpw] error:domain already exsits
hi,list: sry, i didn't clearly describe my problem. i use vpopmail-5.3.20, openldap-2.0.27 and enable --ldap=y. i added a domain for example: test.com, it's normal, then i delete this domain, it reports:error: success. it seems strange? and i find that this domain's directory has been deleted in ~vpopmail/domains . but when i add this domain test.com again, then it reports: domain already exsits. if i ./vdeldomain test.com, it then reports: error: Domain does not exist. if i execute ./vdominfo, i can find this domain's info. some ideas ? thanks a lot.
Re: [vchkpw] error:domain already exsits
hi, Pretchieo: thank you for your help. i deleted the domain in /var/qmail/user/assign and /var/qmail/control/virtualdomains,rcphosts. restart all the qmail services. then i run ./vdominfo, it list no domains. but when i ./vadddomain test.com, it still reports: already exsits. what still make vpopmail think this? - Original Message - From: Pretchie [EMAIL PROTECTED] To: lixiang [EMAIL PROTECTED] Sent: Thursday, July 24, 2003 7:09 PM Subject: Re: [vchkpw] error:domain already exsits Make sure that the domain you have deleted is no longer in the /var/qmail/users/assign and /var/qmail/control/virtualdomains files. --- lixiang [EMAIL PROTECTED] wrote: hi,list: sry, i didn't clearly describe my problem. i use vpopmail-5.3.20, openldap-2.0.27 and enable --ldap=y. i added a domain for example: test.com, it's normal, then i delete this domain, it reports:error: success. it seems strange? and i find that this domain's directory has been deleted in ~vpopmail/domains . but when i add this domain test.com again, then it reports: domain already exsits. if i ./vdeldomain test.com, it then reports: error: Domain does not exist. if i execute ./vdominfo, i can find this domain's info. some ideas ? thanks a lot. Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/
Re: [vchkpw] error:domain already exsits
hi, Pretchieo: thank you for your help. i deleted the domain in /var/qmail/user/assign and /var/qmail/control/virtualdomains,rcphosts. restart all the qmail services. then i run ./vdominfo, it list no domains. but when i ./vadddomain test.com, it still reports: already exsits. what still make vpopmail think this? - Original Message - From: Pretchie [EMAIL PROTECTED] To: lixiang [EMAIL PROTECTED] Sent: Thursday, July 24, 2003 7:09 PM Subject: Re: [vchkpw] error:domain already exsits Make sure that the domain you have deleted is no longer in the /var/qmail/users/assign and /var/qmail/control/virtualdomains files. --- lixiang [EMAIL PROTECTED] wrote: hi,list: sry, i didn't clearly describe my problem. i use vpopmail-5.3.20, openldap-2.0.27 and enable --ldap=y. i added a domain for example: test.com, it's normal, then i delete this domain, it reports:error: success. it seems strange? and i find that this domain's directory has been deleted in ~vpopmail/domains . but when i add this domain test.com again, then it reports: domain already exsits. if i ./vdeldomain test.com, it then reports: error: Domain does not exist. if i execute ./vdominfo, i can find this domain's info. some ideas ? thanks a lot. Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/
Re: [vchkpw] qmail+vpopmail+openldap+qmailadmin in redhat7.3
hi,Jens: I did guess that you should be off for your business trip or holidays , :-) I think basedn and binddn is the same in my vldap.h and slapd.conf, and if i have the below entry tree in my openldap through ldapbrowser: dc=koal,dc=com | -ou=people | - ou=net.koal.com |-uid=postmaster -uid=test and my slapd.conf: databaseldbm suffix dc=koal,dc=com rootdn cn=root,ou=people,dc=koal,dc=com rootpw x ( here is the same with the password in vldap.h) and my vldap.h: #undef OLD_VLDAP #define VLDAP_SERVER localhost #define VLDAP_PORT LDAP_PORT #define VLDAP_USER cn=root,ou=people,dc=koal,dc=com #define VLDAP_PASSWORD x ( here is the same with the password in slapd.conf) #define MAX_BUFF 500 #ifdef OLD_VLDAP #define VLDAP_BASEDN ou=Subs, o=vpop #else #define VLDAP_BASEDN ou=people,dc=koal,dc=com #endif I test the pop3 authentication : [EMAIL PROTECTED] root]# telnet localhost 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK [EMAIL PROTECTED] user test +OK pass test Error: No such object matched DN: ou=people,dc=koal,dc=com -ERR authorization failed Connection closed by foreign host. and then maillog reports: Jul 16 14:39:29 mailserver vpopmail[1244]: vchkpw-pop3: vpopmail user not found test@:127.0.0.1 if i test the pop3 with a domain that doesn't exsits : [EMAIL PROTECTED] root]# telnet localhost 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK [EMAIL PROTECTED] user [EMAIL PROTECTED] +OK pass test Error: No such object matched DN: ou=people,dc=koal,dc=com -ERR authorization failed then maillog reports: Jul 16 14:42:06 mailserver vpopmail[1261]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]:127.0.0.1 it seems that i should submit the correct and complete email add: [EMAIL PROTECTED] then i test : [EMAIL PROTECTED] root]# telnet localhost 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK [EMAIL PROTECTED] user [EMAIL PROTECTED] +OK pass test -ERR aack, child crashed and then maillog reports nothing about this failed login. it seems that the vchkpw has recognized this [EMAIL PROTECTED] ,but child crashed error is occured. what's happened?
Re: [vchkpw] qmail+vpopmail+openldap+qmailadmin in redhat7.3
Hi, Jens: actually, my rootdn was cn=root,dc=koal,dc=com in both my vldap.h and slapd.conf in the before, and i ensured that the basedn in vldap.h was ou=people,dc=koal,dc=com . i tested what you mentioned just now, this cann't help me . the err acck ,child crashed error remains. if i input a user which doesn't exsit, it will reports err authorization failed. if i input the correct user and password, it will reports err acck, child crashed . i think it has recognized the user and password ,but sth lead to the child crashed error. i have searched the vpopmail mailing list, there were many reports about the same error, and it seems that many reasons will lead to this error, but until now, i still havn't find any valuable solution to me. my configure parameters: ./configure --enalbe-ldap=y --enable-roaming-users=y --enable-logging=y redhat 7.3 vpopmail-5.3.20 openldap-2.0.27 qmailadmin-1.0.20 any suggestions? thanks a lot, :-),
[vchkpw] qmail+vpopmail+openldap+qmailadmin in redhat7.3
hi,all i use qmail-1.0.3 + vpopmail-5.3.20(enable-ldap)+ openldap-2.0.27+ qmailadmin-1.0.20 in my redhat7.3. my ldap entry is below: dc=koal,dc=com | -ou=people | - ou=test.com | -uid=postmaster -uid=user1 -uid=user2 there are two problems: 1. when i test the receiving mail from theserver,italways reports: Error: No such objectmatched DN: "ou=people,dc=koal,dc=com"-ERR authorizationfailed Jens ( thanks a lot! Jens) tell me that the query is executed by the "ou=people,dc=koal,dc=com" ,while it should be the "uid=, ou=test.com,ou=people,dc=koal,dc=com" ? but how i can control which type dn query is executed? 2. add user through qmailadmin ,it always report: Email Account [EMAIL PROTECTED] (test1) could not be added, but this user actually has been added ,and its entry in ldap has also been added. i have recomiled the qmailadmin, and upgrade my qmailadmin-1.0.6 to 1.0.20, but this strange situation remains.. i find that there are many combinations of vpopmail+mysql, but the combination of vpopmail+ldap is few. has anyone succeed for this combination ? thanks a lot .
Re: [vchkpw] RE:Re: [vchkpw] error: segmentation fault and unable to chdir vpopmail/users directory
hi,Jens: Error: No such object matched DN: "ou=people,dc=koal,dc=com" -ERR authorization failed This is a querry to user: "ou=people,dc=koal,dc=com" But as you now know this your Basedn and not a valid user.i know what you mean is that the query is executed by the "ou=people,dc=koal,dc=com" ,while it should be the "uid=, ou=test.com,ou=people,dc=koal,dc=com" ? if so, how i can control which type dn query is executed? and i remember that in the README.ldap in vpopmail, it tell me that modify slapd.conf like:suffix "o=vpop"rootdn "cn=Manager, o=vpop"is it necessary? if i use this default settings for my slapd.conf, what's the influence? and i think the dn that i have in my openldap now seems a little strange: "uid=test, ou=test.com, ou=people, dc=koal, dc=com" , maybe the dn like this " uid=test, ou=people, dc=koal, dc=com" or "uid=test, dc=koal, dc=com" seems more common. but if we set up the basedn" dc=koal,dc=com", and add the virtual domain through vadddomain and add user through vadduser, then the dn like this "uid=test, ou=test.com, ou=people, dc=koal, dc=com" is unavoidable, is there any way to avoid this ? i am not familiar with ldap , :-(, thank you for your help.2. add user through qmailadmin ,it always report: Email Account [EMAIL PROTECTED] (test1) could not be added, but this user actually has been added ,and its entry in ldap has also been added. i have recomiled the qmailadmin, and upgrade my qmailadmin-1.0.6 to 1.0.20, but this strange situation remains.. BTW: if i modify the core.schema, error like below occurs when start slapd: /etc/openldap/schema/core.schema: line 381: AttributeType not found: "mail"- Original Message - From: "Jens Jahr" [EMAIL PROTECTED]To: "lixiang" [EMAIL PROTECTED]Cc: [EMAIL PROTECTED]Sent: Thursday, July 10, 2003 6:54 PMSubject: Re: [vchkpw] RE:Re: [vchkpw] error: segmentation fault and unable to chdir vpopmail/users directory Zitat von lixiang [EMAIL PROTECTED]: Hi lixiang, i used your qmailUser.schema; but make no modification for my core.schema, because the modification you provide make the attributetype error when start slapd. and because i have had the dc=koal,dc=com entry, so my dn.ldif is : dn:ou=people,dc=,dc=cn objectclass: organizationalUnit ou:people Ok, look here: Each entry you add is now a subtree vom "ou=people,dc=,dc=cn" So your domains will be stored: "ou=test1.com,ou=people,dc=,dc=cn" "ou=bla.com,ou=people,dc=,dc=cn" etc. Your users will have entries like: "uid=user1,ou=test1.com,ou=people,dc=,dc=cn" "uid=user567,ou=test1.com,ou=people,dc=,dc=cn" etc. Your basedn is "ou=people,dc=,dc=cn" So you might use vckpw to auth your users! See the problem you have ? Error: No such object matched DN: "ou=people,dc=koal,dc=com" -ERR authorization failed This is a querry to user: "ou=people,dc=koal,dc=com" But as you now know this your Basedn and not a valid user. Everytime you recompile vpopmail, you have to recompile qmailadmin, because it is limked against libvpopmail.a So try your commandline tools: - vaddomain - vadduser - vmoduser - vdeluser If they work, then try to recompile qmailadmin. You should have a base user call postmaster, which has been setup on adding the domain. Get a ldapbrowser like "gq", connect to your ldapserver and you should see something like dc=koal,dc=com | -ou=people | - ou=test1.com | -uid=postmaster -uid=user1 -uid=user156 BTW: I wonder that modifiying you core.schema results in an error, because I just changed a "must"-flag to a "may"-flag. Best regards Jens ldapadd succeed. and now i add/delete domain or users is indeed successful in command line. :-) but i still have 2 problems:1. add user through qmailadmin ,it always report: Email Account [EMAIL PROTECTED] (test1) could not be added, but this user actually has been added ,and its entry in ldap has also been added. 2. i test the send/receive email through OE client and " telnet email-servers'ip 110" , the authentication always error:Error: No such object matched DN: "ou=people,dc=koal,dc=com" -ERR authorization failedi ensure the password is correct for that user. -- Jens Jahr
[vchkpw] RE:Re: [vchkpw] error: segmentation fault and unable to chdir vpopmail/users directory
hi,Jens: thanks a lot! situation get better, but still has problems. i used your qmailUser.schema; but make no modification for my core.schema, because the modification you provide make the attributetype error when start slapd. andbecause i have had the dc=koal,dc=com entry, so my dn.ldif is : dn:ou=people,dc=,dc=cn objectclass: organizationalUnitou:people ldapadd succeed. and now i add/delete domain or users is indeed successful in command line. :-) but i still have 2 problems: 1. add user through qmailadmin ,it always report: Email Account [EMAIL PROTECTED] (test1) could not be added, but this user actually has been added ,and its entry in ldap has also been added. 2. i test the send/receive email through OE client and " telnet email-servers'ip 110" , the authentication always error: Error: No such objectmatched DN: "ou=people,dc=koal,dc=com"-ERR authorization failed i ensure the password is correct for that user. - Original Message - From: "Jens Jahr" [EMAIL PROTECTED] To: "lixiang" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, July 10, 2003 2:09 PM Subject: Re: [vchkpw] error: segmentation fault and unable to chdir vpopmail/users directory Zitat von lixiang [EMAIL PROTECTED]: Hi lixiang, i have installed vpopmail-5.2.1,qmail-1.0.3, qmail-ldap, openldap-2.0.27, qmailadmin-1.0.6 in my Redhat 7.3 box. Please do not mix qmail-ldap and vpopmail-ldap. These are totally different programms that both try to do the same. !! I 'll give you a short step by step way to use vpopmail-ldap: 1) Edit qmailUser.schema --- snip attributetype ( 1.3.6.1.4.1.8868.3.1.2 NAME 'qmailGID' DESC 'qmail group id' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100} SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.8868.3.1.3 NAME 'qmailUID' DESC 'qmail userid' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100} SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.8868.3.1.4 NAME 'qmaildomain' DESC 'qmail Domain' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100} SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.8868.3.1.6 NAME 'mailQuota' DESC 'qmail quota' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100} SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.8868.3.1.7 NAME 'mailMessageStore' DESC 'qmail Store' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100} SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.8868.3.1.8 NAME 'clearPassword' DESC 'qmail Clear Password for APOP' EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{128} SINGLE-VALUE ) objectclass ( 1.3.6.1.4.1.8868.3.1 NAME 'qmailUser' DESC 'qmail local mail recipient' SUP ( top $ person $ organizationalPerson ) MAY ( qmailGID $ qmailUID $ qmaildomain $ mailQuota $ mailMessageStore $ clearPassword $ uid $ name $ sn $ cn ) ) --- snap 2) Modify the definition of "person" in core.schema to : --- snip objectclass ( 2.5.6.6 NAME 'person' DESC 'RFC2256: a person' SUP top STRUCTURAL MAY ( sn $ cn $ userPassword $ telephoneNumber $ seeAlso $ description $ mail $ workphonenumber $ cellphonenumber $ postalAddress $ title $ telexNumber $street $givenName $registeredAddress $cellphone) ) --- snap 3) Edit vldap.h vldap.h --- snip #define VLDAP_SERVER "localhost" #define VLDAP_PORT LDAP_PORT #define VLDAP_USER "cn=root,dc=xx,dc=net" #define VLDAP_PASSWORD "xx" #define MAX_BUFF 500 #define VLDAP_BASEDN "ou=people,dc=xxx,dc=net" --- snap 4) Recompile vpopmail --with-ldap Do not use both mysql and ldap !!! 5) Setup slapd.conf slapd.conf snip include /vmail/etc/openldap/schema/core.schema include /vmail/etc/openldap/schema/qmailUser.schema .. access to attr=userPassword by * auth database bdb suffix "dc=xxx,dc=cn" rootdn "dc=admin,dc=,dc=net" rootpw secret directory /var/openldap index objectclass pres,eq index cn,sn,uid eq, 6) Start slapd 7) Edit dn.ldif snip dn: dc=xxx,dc=net objectclass: organization o: ynst dn:ou=people,dc=,dc=cn objectclass: organizationalUnit ou:people snip 8) Add base DN - ldapadd -x -w admin -D 'cn=admin,dc=,dc=cn' -f /tmp/dn.ldif adding new entry "dc=,dc=cn" adding new entry "ou=people,dc=,dc=cn" -- 9) Test it ldapsearch -x -w admin -D 'cn=admin,dc=,dc=cn' -b 'dc=,dc=cn' 10) Now you should be able to add domains and users using either qmailadmin oder commandline. Note: LDAP support
[vchkpw] error: segmentation fault and unable to chdir vpopmail/users directory
hi,all: i have installed vpopmail-5.2.1,qmail-1.0.3, qmail-ldap, openldap-2.0.27, qmailadmin-1.0.6 in my Redhat 7.3 box. sth seems strange: all the work was finishedby root user. when i added the first domain xxx.com ,succeed then i added the users through qmailadmin, qmailadmin reported: xxx could not be added. but actually, this user has been added to the system. if i added user through vadduser in command line, it reported: Error: Unable to chdir vpopmail/users directory, and the user actually was not be added. if i added another domain through vadddomain, it reported: segmentation fault. but the domain has been added. then i deleted this domain through vdeldomain, succeed. and then i added this domain through vadddomain again, it reported : Unable to chdir to vpopmail/users directory. and the domain still has been added. but if i want to manager this domain through qmailadmin, i couldn't login. then i repeated the del and add this domain, it always repeat this fact. i am so confused about these facts, and i have read the README.ldap and INSTALL and FAQ, i also have read the archive in the vpopmail website. get no solution ,and the response from the archive is slow. so i seek for help in the mailinglist. another question, i find that there are many combinations of vpopmail+mysql, but the combination of vpopmail+ldap is few. has anyone succeed for this combination ? thanks a lot .