1

Topic: Trying to add a new mail user - error msg

Hi there,

Today I've installed iRedMail with iRedAdmin and I love it but it won't allow me to add a new mail user account:

msg=%7B%27info%27%3A+%27storageBaseDirectory%3A+attribute+type+undefined%27%2C+%27desc%27%3A+%27Undefined+attribute+type%27%7D

I'm running iRedAdmin 0.1.2 on a CentOS machine.

Here's my config file:

#---------------------------------------------------------------------
# This file is part of iRedAdmin-OSE, which is official web-based admin
# panel (Open Source Edition) for iRedMail.
#
# iRedMail is an open source mail server solution for Red Hat(R)
# Enterprise Linux, CentOS, Debian and Ubuntu.
#
# iRedAdmin-OSE is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# iRedAdmin-OSE is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
#---------------------------------------------------------------------

[general]
# Site webmaster's mail address.
webmaster = **hidden**

# Debug mode: True, False.
# Warning: Do *NOT* enable debug in product server.
debug = False

# Default skin.
skin = default

# Default language.
lang = en_US

# Database backend: ldap.
backend = ldap

# Base directory used to store all mail data.
# You can find it via command:
#   $ sudo postconf virtual_mailbox_base
storage_base_directory = /var/vmail

# Mailbox type: maildir, mbox.
# maildir is recommend for better performance.
mailbox_type = maildir

# Hashed maildir: True, False.
# Example:
#   - hashed: domain.ltd/u/us/use/username-2009.09.04.12.05.33/
#   - non-hashed: domain.ltd/username-2009.09.04.12.05.33/
# hashed maildir is RECOMMEND for better performance.
hashed_maildir = True

# Default quota size (in MB). 0 means unlimited.
default_quota = 1024

# Default mta transport.
# Warning: Please DO use 'dovecot' as transport for iRedMail.
mtaTransport = dovecot

# Show user login date instead of created date: True, False.
# Note: iRedAdmin open source edition doesn't support this feature now.
show_login_date = False

# Min/Max password length.
#   - min_passwd_length: 0 means unlimited, but at least 1 character
#                        is required.
#   - max_passwd_length: 0 means unlimited.
min_passwd_length = 6
max_passwd_length = 0

[iredadmin]
# Database used to store iRedAdmin data. e.g. sessions, log.
# NOTE: currently, only mysql dbn is supported.
dbn = mysql
host = localhost
port = 3306
db = iredadmin
user = iredadmin
passwd = **hidden**

[ldap]
# Settings used for LDAP backend.

# LDAP server uri.
# Warning: LDAPS is not supported yet.
uri = ldap://127.0.0.1:389

# LDAP protocol version. 3 (LDAP v3) is recommend.
protocol_version = 3

# Trace level of LDAP operations: 0, 2, [...], 255.
# 0 is recommend for production use.
trace_level = 0

# LDAP suffix.
# basedn: dn which contains virtual domains.
# domainadmin_dn: dn which contains virtual domain admins.
basedn = o=domains,dc=prozor,dc=nl
domainadmin_dn = o=domainAdmins,dc=prozor,dc=nl

# Bind dn and password.
# Note:
#   - bind dn should have write privilege in LDAP.
#   - bind pw is plain text, not encryped/hashed.
bind_dn = cn=vmailadmin,dc=prozor,dc=nl
bind_pw = **hidden**

# Default password scheme: SSHA, PLAIN.
# SSHA is recommended.
default_pw_scheme = SSHA

Thanks,

Kevinsky

----

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

2

Re: Trying to add a new mail user - error msg

What's your iRedMail version?

3 (edited by Kevinsky 2010-04-12 01:14:44)

Re: Trying to add a new mail user - error msg

Hi,

I've used this tutorial - http://www.howtoforge.com/iredmail-buil … centos-5.x - so I think it's iRedMail-0.4.0.

Edit: crap, it's an older version. Do you think that this is the issue?

4

Re: Trying to add a new mail user - error msg

Yes. Use iRedMail-0.5.1 instead, iRedAdmin is builtin in 0.5.1.

5

Re: Trying to add a new mail user - error msg

Alright, thanks so far, will post the results after installing 0.5.1.

6

Re: Trying to add a new mail user - error msg

Works perfect, thanks!!!

7

Re: Trying to add a new mail user - error msg

ZhangHuangbin wrote:

Yes. Use iRedMail-0.5.1 instead, iRedAdmin is builtin in 0.5.1.

I use 0.5.1 iRedMail and i've upgraded from 0.1.1 version of iRedAdmin to 0.1.2 (7 days ago - just copied all new files aver 0.1.1 version and updated simlink). Everything worked fine!...but yesterday I've started to translate iRedAdmin to romanian...and now I get same error as in this topic!
(even after copied 0.1.2 version of iRedAdmin over again!).
As I noticed ..there is no upgrade procedure of iRedAdmin..just fresh install? (I mean...is there anything more to do beside replace 0.1.1 with 0.1.2 files?)

8

Re: Trying to add a new mail user - error msg

dhagiu wrote:

but yesterday I've started to translate iRedAdmin to romanian...and now I get same error as in this topic!

Don't forget to execute below command after you translate PO file:

# cd /path/to/iRedAdmin-x.y.z/i18n/
# sh translation.sh all

If you just want to translate romanian, you can replace 'all' by the language code - same as the directory name you used. e.g. zh_CN.

9

Re: Trying to add a new mail user - error msg

ZhangHuangbin wrote:
dhagiu wrote:

but yesterday I've started to translate iRedAdmin to romanian...and now I get same error as in this topic!

Don't forget to execute below command after you translate PO file:

# cd /path/to/iRedAdmin-x.y.z/i18n/
# sh translation.sh all

If you just want to translate romanian, you can replace 'all' by the language code - same as the directory name you used. e.g. zh_CN.

The translated version is working great..but I still get msg=%7B%27info%27%3A+%27objectClass%3A+value+%233+invalid+per+syntax%27%2C+%27desc%27%3A+%27Invalid+syntax%27%7D when I create a new user (no error on creation of new domain or admin). So for now...I create users directly in phpldapadmin: )

10

Re: Trying to add a new mail user - error msg

I guess you didn't include amavisd ldap schema file in openldap.

11

Re: Trying to add a new mail user - error msg

ZhangHuangbin wrote:

I guess you didn't include amavisd ldap schema file in openldap.

..witch is new for version 1.2 of iRedAdmin...(I shoul have seen that)

* Add objectClass=amavisAccount for mail user by default.
* Add enabledService: sieve, sievesecured. Used for Dovecot-1.2.

Shoul I upgrade to dovecote 1.2? (since in Centos 5.4 the default is still 1.1?)

12

Re: Trying to add a new mail user - error msg

dhagiu wrote:

Shoul I upgrade to dovecote 1.2? (since in Centos 5.4 the default is still 1.1?)

No.

These values are used to support Dovecot-1.2, not means you have to update dovecot.