* [gentoo-user] Virtual Mailserver using Postfix, OpenLDAP, and Courier
@ 2006-09-15 15:09 bijayant kumar
0 siblings, 0 replies; only message in thread
From: bijayant kumar @ 2006-09-15 15:09 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 3255 bytes --]
Hi,
I am trying to configure Virtual Mailserver using Postfix, OpenLDAP, and Courier. I am following this site :
http://www.crt.realtors.org/projects/email-redir/paper-html/implementation.html
Now the problem is i have to create another domain under my main domain.
My base.ldif file is :--
dn: dc=kavach,dc=blr
dc: kavach
objectClass: top
objectClass: domain
dn: ou=Hosts,dc=kavach,dc=blr
ou: Hosts
objectClass: top
objectClass: organizationalUnit
dn: ou=People,dc=kavach,dc=blr
ou: People
objectClass: top
objectClass: organizationalUnit
dn: ou=Group,dc=kavach,dc=blr
ou: Group
objectClass: top
objectClass: organizationalUnit
My group.ldif file :--
dn: cn=root,ou=Group,dc=kavach,dc=blr
objectClass: posixGroup
objectClass: top
cn: root
gidNumber: 0
dn: cn=bijayant,ou=Group,dc=kavach,dc=blr
objectClass: posixGroup
objectClass: top
cn: bijayant
userPassword: {crypt}x
gidNumber: 1000
My hosts.ldif file :---
dn: cn=bijayant.kavach.blr,ou=Hosts,dc=kavach,dc=blr
objectClass: top
objectClass: ipHost
objectClass: device
ipHostNumber: 127.0.0.1
cn: bijayant.kavach.blr
cn: bijayant
cn: localhost
Now i want to add another domain under my original kavach.blr domain. I have done in this way:
dn: o=kavach.net,ou=People,dc=kavach,dc=blr
o: kavach.net
objectClass: top
objectClass: organization
Am i doing right. I am not sure coz it didnt give me any error.
Now when i have tried to add the user under the new domain thatis under the kavach.net than it gives me an error :
bijayant ~ # ldapadd -x -D "cn=Manager,dc=kavach,dc=blr" -W -f /root/useradd.ldif
Enter LDAP Password:
adding new entry "uid=sumitk,ou=People,dc=kavach,dc=blr"
ldap_add: Internal (implementation specific) error (80)
additional info: no structuralObjectClass operational attribute
My useradd.ldif file is :--
dn: uid=sumitk,ou=People,dc=kavach,dc=blr
uid: sumitk
cn: sumitk
sn: kumar
virtualdomain: kavach.net
gn: sumitk
gecos: sumitk
homeDirectory: /home/vmail/
displayName: sumitk
#mail: sumitk@kavach.net
qmailUID: 1006
qmailGID: 1006
accountStatus: active
userPassword: {SSHA}JClFwjb1ba0vQMZFHxlJDb+q7W+WQRvD
mailbox: kavach.net/sumitk
maildrop: sumitk@kavach.net
mailMessageStore: /home/vmail/kavach.net/sumitk/
objectClass: top
objectClass: organization
objectClass: CourierMailAccount
objectClass: CourierMailAlias
objectClass: CourierDomainAlias
objectClass: qmailUser
objectClass: organizationalUnit
objectClass: person
objectClass: organizationalPerson
objectClass: organizationalRole
objectClass: posixAccount
objectClass: posixGroup
objectClass: inetOrgPerson
One main thing i have included all the schema which are neccessary.
I have included these schemas:--
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/qmail.schema
include /etc/openldap/schema/authldap.schema
Please help me regarding this. I am trying this from several days,but no luck till now. Please please help me. I will be very thankful to you all...
Thanks and Regards
Bijayant Kumar
Send instant messages to your online friends http://uk.messenger.yahoo.com
[-- Attachment #2: Type: text/html, Size: 3941 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-15 15:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-15 15:09 [gentoo-user] Virtual Mailserver using Postfix, OpenLDAP, and Courier bijayant kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox