1

Topic: [SOLVED] Problem with create_new_user_OpenLDAP.sh, iRedMail-0.7.2

I have domain example.com. I use command "sh create_new_user_OpenLDAP.sh example.com user1 user2" to create usrer but It storageed "/var/vmail/exmaple.com/user1" and ".../user2", I create user as iredadmin "/var/vmail/vmail1/example.com/user1" and ".../user2. I want create use by "sh create_new_user_OpenLDAP.sh example.com user1 user2" as I use iredadmin, is all storage "/var/vmail/vmail1".

Thanks!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [SOLVED] Problem with create_new_user_OpenLDAP.sh, iRedMail-0.7.2

You should change file create_mail_user_OpenLDAP.sh, change STORAGE_BASE_DIRECTORY to '/var/vmail/vmail1':

STORAGE_BASE_DIRECTORY="/var/vmail/vmail1"

3 (edited by minhneo 2011-07-12 12:05:09)

Re: [SOLVED] Problem with create_new_user_OpenLDAP.sh, iRedMail-0.7.2

I changed "STORAGE_BASE_DIRECTORY=/var/vmail/vmail1", LDAP_SUFFIX="dc=example,dc=com", BINDN, BINPWD but It is incorrectly. I use iRedMail-0.6.0 no problem. I have more one problem, now I not access address http://server.example.com/mail or webmail, access https://server.example.com/iredadmin and http://server.example.com/phpldapadmin is ok. OMG

4

Re: [SOLVED] Problem with create_new_user_OpenLDAP.sh, iRedMail-0.7.2

please help me!

5

Re: [SOLVED] Problem with create_new_user_OpenLDAP.sh, iRedMail-0.7.2

add_new_user()
{
    USERNAME="$(echo $1 | tr [A-Z] [a-z])"
    MAIL="$( echo $2 | tr [A-Z] [a-z])"

    # Create template LDIF file for this new user and add it.
    # If you do *NOT* want to keep rootpw in script, use '-W' instead of
    # '-w "${BINDPW}".

    maildir="vmail1/$( hash_domain ${DOMAIN_NAME})/$( hash_maildir ${USERNAME} )"


I added "vmail1" on maildir. It's succeeded.

6

Re: [SOLVED] Problem with create_new_user_OpenLDAP.sh, iRedMail-0.7.2

minhneo wrote:

I changed "STORAGE_BASE_DIRECTORY=/var/vmail/vmail1", LDAP_SUFFIX="dc=example,dc=com", BINDN, BINPWD but It is incorrectly. I use iRedMail-0.6.0 no problem.

Fixed, try this:
http://code.google.com/p/iredmail/sourc … 98c611f391

minhneo wrote:

I have more one problem, now I not access address http://server.example.com/mail or webmail, access https://server.example.com/iredadmin and http://server.example.com/phpldapadmin is ok. OMG

Did you change any config files?

7

Re: [SOLVED] Problem with create_new_user_OpenLDAP.sh, iRedMail-0.7.2

Thank ZhangHuangbin. all is ok.