Comments on Postfix Virtual Hosting With LDAP Backend And With Dovecot As IMAP/POP3 Server On Ubuntu Trusty Tahr 14.04

Postfix Virtual Hosting With LDAP Backend And With Dovecot As IMAP/POP3 Server On Ubuntu Trusty Tahr 14.04 Here we we use an LDAP backend for both the MTA (Postfix) and POP3/IMAP server (Dovecot), and a web based management interface.

8 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: lightjail

Hello,
thank you for this HowTo. I have tested on Ubuntu 14.04.1 (64bit) >> not runnig.
Please check the path information. There are some errors:
Page 2:
cp /usr/src/phamm-0.5.17/schema/phamm.schema /etc/ldap/schema.
cp /usr/src/phamm-0.5.17/schema/contrib/perversia.net.schema /etc/ldap/schema. 
 Please check syntax  base.ldif (code-box)

dn: o=hosting,dc=example,dc=tldobjectClass: organizationalUnit
objectClass: top
o: hosting
description: Hosting Organization

# Read only account
dn: cn=phamm,o=hosting,dc=example,dc=tld
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: phamm
userPassword: {MD5}M267sheb6qc0Ck8WIPOvQA==
description: Read only account

After import with ldapmodify -a -D cn=admin,dc=example,dc=tld -W -f base.ldif
Error:
ldap_add: Server is unwilling to perform (53)
        additional info: no global superior knowledge
 
Is this correct? 

 dn: o=hosting,dc=example,dc=tld
objectClass: organizationalUnit
objectClass: top
o: hosting
description: Hosting Organization

# Read only account
dn: cn=phamm,o=hosting,dc=example,dc=tld
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: phamm
userPassword: {MD5}M267sheb6qc0Ck8WIPOvQA==
description: Read only account

After this:
adding new entry "o=hosting,dc=example,dc=tld"
ldap_add: Object class violation (65)
        additional info: object class 'organizationalUnit' requires attribute 'ou' 
Page 5:
Apache Docroot:
/var/www/ ??? perhaps /var/www/html (I´m not sure)
 Page 7
Base-System ist Perfect Server. There are pureftp installed!? Why do they want to install proftpd? These are two programs for the same service (FTP).
Please excuse my bad english.
 

By:

The typo's have been removed and corrected.

Well I assumed if someone installs a base system, they would not install ftp software since this guide covers it.

 If you need help, use the messaging system.

 Regards,

 Miguel

By: J_Kruis

there are still 3 typos on page 2

the dot at the end of the two lines should by deleted.   Page 2:     cp /usr/src/phamm-0.6.4/schema/phamm.schema /etc/ldap/schema cp /usr/src/phamm-0.6.4/schema/contrib/perversia.net.schema /etc/ldap/schema    and apt should by apt-get

 apt-get install slapd ldap-utils

By: patmarmat

Thank you for the guideline provided.

 

however this guideline aswell as the others provided for PHAMM aren't working.

Not only it is impossible to have the base.ldif version as described cannot being included, it needs to being adjusted as followed:

dn: o=hosting,dc=example,dc=tld

o: hosting description: Hosting Organization

objectClass: organization

objectClass: top

# Read only account

 

dn: cn=phamm,o=hosting,dc=example,dc=tld

objectClass: simpleSecurityObject

objectClass: organizationalRole

cn: phamm

userPassword: {MD5}Uv67nQ8+4ca2bDRMu5tuyYIA==

description: Read only account

 

also the schema cannot being imported into the LDAP unless the dc=example,dc=tld is included.

 

After walking through the entire document and installation of the exact same version used I finally could start the Phamm GUI.

Logged in with the admin user as have being set, tried to add a domain with password.

this results into the the error Error: LDAP Error: Invalid DN syntax (Code 34)

which is freaking frustrating.

 

Isn't there a preinstalled version which can be downloaded in an iso or image?

 

Thank you in advance,

 

Patrick

By: JSBTech

Thankyou for updating this to the newest version of Dovecot and Postfix. Just in time for my server migration at that =)

Im stuck at uploading the base DN to the database.

ldapmodify -a -D cn=admin,dc=example,dc=tld -W -f base.ldif

Enter LDAP Password:ldap_bind: Invalid credentials (49)

This install is stock besides changes in this How to. Only one pass has been configured. Any thoughts?

By: JSBTech

Reply wouldn't work so started a new thread.

I ended up missing a few dc=example,dc=tlds that needed to be edited which later caused my ldap_bind: Invalid credentials (49) Error. After a redo, I was able to complete the HowTo. I am, however, at a loss of what to input to login to phamm. Nothing seems to work.

Will create a backup image and try again from the beginning.

By: Leandro

After applying the olcAccess modifications, I can't simply locate any of the LDAP objects that I've added. If I restore to the original one, I can list all of them

By: Saumya

 Can you please post the official method to modify acls?