Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i need add certain entries in ldap.
for eg: am adding mail.com.ldif file in ldap
which consists of
dn: uid=saurav,ou=solution,dc=linux,dc=com
cn: Manaager
sn: ganguly
uid: saurav
mail: saurav@linux.com
description: Indian Team
telephoneNumber: 012101012
userPassword: password
uidNumber: 1023
gidNumber: 10023
objectClass: person
objectClass: top
objectClass: inetOrgperson
objectClass: posixAccount
In this i had mentioned uid,cn,sn and mail address,password and objectclasses for these attributes.
I need to mention my mailbox location,so that when i send mail from client such as outlook, mail will go to mailserver look ldap directory get the user mailaddress and mailbox location and deliver the mail in that location.
For specifying the mailbox location what is the attribute name that i have to mention?
And tell me objectclass for that atribute.
It's not that simple.
You should find the postfix schema file (for example postfix.schema), copy it under /etc/openldap/schema/ and add the entry for it in slapd.conf under the other schema entries, e.g:
Code:
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/postfix.schema
Then you should use the mail attributes provided by that schema for your users.
***EDIT***
Just saw billymayday's answer about postfix.schema. Follow the link provided and near the end you'll find a postfix.schema file.
In postfix there is a schema called misc.schema but it was not mentioned in slapd.conf file, but it was in schema directory.
In that misc.schema attributes like mailHost are available.
So i added this attribute in slapd.conf like
include /etc/openldap/schema/misc.schema
But still getting the same error.But mailHost attribute is exists in misc.schema file.
Here am integrating postfix with openldap.
In ldap ldif file i will add the user information like
When i send mail from client it must want to get the information from ldap database and the mail must want to deliver to the mailbox location which i mentioned in ldap database.
I need to whether the users must want to exists in mailserver for creating mailbox.
In my setup i simply created the mailbox location without creating the user.
for eg: i didnt create a user called saurav in my mailserver,but i created a mailbox location for the user saurav in
/var/spool/mail/saurav and gave the write permission for this file.
When i send mail from my client it checks the ldap database,get the user information for saurav and delivering error that user unknown in local recipien table.
If i want to create the user in my mailserver then whats the use of ldap database here?
Ok what is the solution for that user account in mailserver,
whether for creating mailbox in mailserver user is required?
if yes then whats the use of LDAP?
plz be detail in your answer
Ok what is the solution for that user account in mailserver,
whether for creating mailbox in mailserver user is required?
if yes then whats the use of LDAP?
plz be detail in your answer
The user must exist in your ldap database, in order to be able to receive mail. Whenever an e-mail arrives, postfix will search ldap database and if it finds that user it will deliver the mail to the specified mailbox, else it discards it.
To add a mail user in ldap, you must give him the appropriate attributes, that it turn depend on specific objectclasses that are defined in specific schema files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.