Topic: create_mail_user_MySQL.sh issues
==== Required information ====
- iRedMail version: 0.8.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu Server 12.04 LTS
- Related log if you're reporting an issue: -
====
Hi,
the above-mentioned file is not in the 0.8.1 pkg downloaded. Instead there is a create_mail_user_SQL.sh file which is empty.
so I went to download a copy from your posting in Google Code (http://code.google.com/p/iredmail/sourc … 02ec40ca35) instead.
then tried to run the script with "# sh create_mail_user_MySQL.sh abc.com john.ng apple.lim joshua.ong ...."
E1) a few errors occurred regarding unexpected operator in line 72, 94/96 and a few other lines that are all related to the if...then...else statements. Thought just the extra "; " in the statements, but after removing those "; " still have a list of warning regarding unexpected operators.
I ignored those error and try to load them into the MySQL without any problem. But when I view the mailbox table using phpmyadmin, saw a few more problems.
E2) password field empty. I did changed the values for " DEFAULT_PASSWD='ABC@defg890' " and " USE_DEFAULT_PASSWD='YES' "
E3) initially using the default " STORAGE_BASE_DIRECTORY="/var/vmail/vmail1" ", but the path shown in the table is diff from those account created manually using the iRedAdmin. So need to amend this to " STORAGE_BASE_DIRECTORY="/var/vmail "
E4) " MAILDIR_STYLE='hashed' " not working at all. The path created by the script points to /var/vmail/vmail1/abc.com/john.ng + timestamp in the database table.
E5) referring to the path in E4), when I went into /var/vmail/vmail1/abc.com, I don't see any of the new accounts directory created using the scripts
Hope you create come out with the amended script ASAP, as I have close to 200 accounts to create and sync over to iRedMail using the imapsync script.
If you need help to test the modified script, you can contact me via winson @ aceagape.com
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.