1 (edited by thanhnv 2012-07-06 21:38:32)

Topic: Vmail location path wrong after install iredadmin pro.

==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
====
Centos 64 bit / postfix-2.6.6-2.3.el6.x86_64 / dovecot-2.0.18-1_134.el6.x86_64 / mysql-5.1.61-1.el6_2.1.x86_64 /
iRedAdmin-Pro-MySQL-1.4.0

I have just installed iredadmin pro, but error with vmail location path.   
if create users by postfixadmin, user can send / receive mails but i create users by iredadmin pro i send  but can't recieve .

Please help !
Thanks !

----

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

2 (edited by thanhnv 2012-07-06 21:28:26)

Re: Vmail location path wrong after install iredadmin pro.

In /home/vmail/vmail1/:
[root@tvbh vmail1]# ls
domain.com  test02  test04  test06@domain.com  test08
test01                   test03  test05  test07@domain.com
-- with : users: test02, test04, test05. test03 : created by iredadmin pro-mysql: can't receive e-mail
test06@domain.com , test07@domain.com : created by postfixadmin: both user work fine.

File: /var/www/iredadmin/libs/settings.py
###################################
# Maildir related.
#

#It's RECOMMEND for better performance. Samples:
# - hashed: domain.ltd/u/s/e/username-2009.09.04.12.05.33/
# - non-hashed: domain.ltd/username-2009.09.04.12.05.33/
MAILDIR_HASHED = False

# Prepend domain name in path. Samples:
# - with domain name: domain.ltd/username/
# - without: username/
MAILDIR_PREPEND_DOMAIN = False

# Append timestamp in path. Samples:
# - with timestamp: domain.ltd/username-2010.12.20.13.13.33/
# - without timestamp: domain.ltd/username/
MAILDIR_APPEND_TIMESTAMP = False


#######################################

File: setting.ini

storage_base_directory = /home/vmail/vmail1

3

Re: Vmail location path wrong after install iredadmin pro.

http://www.iredmail.org/forum/topic2991 … -mail.html <-- the same problem,

4

Re: Vmail location path wrong after install iredadmin pro.

1: What do you expect?
2: Maildir of users created by iRedAdmin-Pro were created by Dovecot, that means POP3/IMAP services are OK for these users.
3: Any related log in Dovecot log files (/var/log/dovecot.log and /var/log/sieve.log) and Postfix log file (/var/log/maillog)?

5

Re: Vmail location path wrong after install iredadmin pro.

Yes, POP3 and IMAP services are ok, Send is ok. but can not receive.
/var/log/dovecot.log:

Jul 07 20:02:02 imap(ttt@abc.com.vn): Debug: Namespace : type=private, prefix=,                                                  sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir://home                                                 /vmail/abc.com.vn/ttt//Maildir/:INDEX=//home/vmail/abc.com.vn/ttt//Maildir/
Jul 07 20:02:02 imap(ttt@abc.com.vn): Debug: maildir++: root=//home/vmail/abc.co                                                 m.vn/ttt//Maildir, index=, control=, inbox=//home/vmail/abc.com.vn/ttt//Maildir,                                                  alt=
Jul 07 20:02:02 imap(ttt@abc.com.vn): Debug: Namespace : type=shared, prefix=Sha                                                 red/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=m                                                 aildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/Shared/%u
Jul 07 20:02:02 imap(ttt@abc.com.vn): Debug: shared: root=/var/run/dovecot, inde                                                 x=, control=, inbox=, alt=
Jul 07 20:02:02 imap(ttt@abc.com.vn): Debug: Namespace : Using permissions from                                                  //home/vmail/abc.com.vn/ttt//Maildir: mode=0700 gid=-1
Jul 07 20:02:02 imap(ttt@abc.com.vn): Info: Disconnected: Logged out bytes=233/8

/var/log/maillog

Jul  7 20:04:51 tvbh postfix/pipe[25320]: 84AC038093E: to=<test2@abc.com.vn>, relay=dovecot, delay=2221, delays=2221/0.03/0/0.1, dsn=4.3.0, status=deferred (temporary failure)
Jul  7 20:04:51 tvbh postfix/pipe[25333]: 1D017380946: to=<test2@abc.com.vn>, relay=dovecot, delay=2120, delays=2119/0.03/0/0.09, dsn=4.3.0, status=deferred (temporary failure)
Jul  7 20:04:51 tvbh postfix/pipe[25332]: 24AC6380947: to=<test3@abc.com.vn>, relay=dovecot, delay=957, delays=956/0.02/0/0.14, dsn=4.3.0, status=deferred (temporary failure)
Jul  7 20:04:51 tvbh postfix/pipe[25335]: A1628380945: to=<test2@abc.com.vn>, relay=dovecot, delay=2375, delays=2375/0.04/0/0.2, dsn=4.3.0, status=deferred (temporary failure)

Please help !

6

Re: Vmail location path wrong after install iredadmin pro.

As it shows:

location=maildir://home/vmail/abc.com.vn/ttt//Maildir/

The maildir path is /home/vmail/abc.com.vn/ttt/Maildir/, but is it what you expect?

Could you please show me the maildir path show in iRedAdmin-Pro? It's shown in user profile page, under tab "Advanced".

Also, could you please show us output of below SQL commands:

mysql> USE vmail;
mysql> SELECT storagebasedirectory, storagenode, maildir FROM mailbox WHERE username='your_user@domain.ltd';

And, show me content of /etc/dovecot/dovecot-mysql.conf.

7

Re: Vmail location path wrong after install iredadmin pro.

I have just reinstalled , it works fine, but now I have a problem with Save Changes of Profile of alias.
I can not Add new members in a profile of alias. When I click Save Changes button, current member is  remove and Add new members don't effect.

Need help !

8

Re: Vmail location path wrong after install iredadmin pro.

If you want to assign non existing mail users as alias member, they will be discarded automatically. Do these alias members exist as mail users?

9

Re: Vmail location path wrong after install iredadmin pro.

yes, these alias members exist as mail users.
But when I edit account profile and add this account to member of mail aliases  and save changes, it's ok . then  I try to edit profile of this  alias ,click save changes button, members of this alias is empty.

10

Re: Vmail location path wrong after install iredadmin pro.

I create mail accounts/ mail account alias by *.csv file. so iredmai does not understand the account mail was existed or not. 
Please help me, change some thing code  so i can add new members in alias (that email account exist or not).

11

Re: Vmail location path wrong after install iredadmin pro.

ZhangHuangbin wrote:

If you want to assign non existing mail users as alias member, they will be discarded automatically. Do these alias members exist as mail users?

They are mail users, but in mysql they are not in alias table. How to change any codes to make they can work with alias ?