I have installed ISPconfig with Postfix and dovecot under CentOS release 5.6 X86_64 all services or started and work but when i create a domain and add mail box it doesn't create maildir so i cant login through Squirrelmail Squirrelmail Error: ERROR: Connection dropped by IMAP server. Code: Jul 3 14:50:39 mailbak dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Jul 3 14:50:39 mailbak dovecot: IMAP([email protected]): mail_location: Ambiguous mail location setting, don't know what to do with it: /var/vmail/Mydomain.ir/ghadimi/Maildir (try prefixing it with mbox: or maildir:) Jul 3 14:50:39 mailbak dovecot: IMAP([email protected]): Fatal: Namespace initialization failed Code: [root@mailbak ~]# ls -la /var/vmail/ total 56 drwx------ 7 vmail vmail 4096 Jul 3 03:50 . drwxr-xr-x 29 root root 4096 Jun 12 23:10 .. -rw-r--r-- 1 vmail vmail 33 Jun 12 23:10 .bash_logout -rw-r--r-- 1 vmail vmail 176 Jun 12 23:10 .bash_profile -rw-r--r-- 1 vmail vmail 124 Jun 12 23:10 .bashrc -rw------- 1 vmail vmail 1382 Jun 12 23:10 .mailfilter drwxr-xr-x 2 root root 4096 Jan 11 10:28 mailfilters drwxr-xr-x 4 vmail vmail 4096 Jun 12 23:10 .mozilla Code: [root@mailbak ~]# cat /etc/passwd vmail:x:5000:5000::/var/vmail:/bin/bash getmail:x:5001:5001::/etc/getmail:/bin/bash ispapps:x:5002:5003::/var/www/apps:/bin/bash ispconfig:x:5003:5004::/usr/local/ispconfig:/bin/bash also my ID in ispconfig and ispconfig DB is 5000 and its ok
Did you run Code: /usr/share/squirrelmail/config/conf.pl and tell SquirrelMail that you are using Dovecot (see http://www.howtoforge.com/perfect-server-centos-5.6-x86_64-ispconfig-3-p6 )?
yes i already did it but i cant still login and also i restart both service dovecot and postfix but i have no directory in my /var/vmail i created manually the directory with my domain name and set the permission and owner but it still doesn't create users directory
Jul 4 16:38:12 mailbak dovecot: auth-worker(default): mysql: Connected to localhost (dbispconfig) Jul 4 16:38:13 mailbak dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Jul 4 16:38:13 mailbak dovecot: IMAP([email protected]): mail_location: Ambiguous mail location setting, don't know what to do with it: /var/vmail/Mydomain.ir/ghadimi/Maildir (try prefixing it with mbox: or maildir Jul 4 16:38:13 mailbak dovecot: IMAP([email protected]): Fatal: Namespace initialization failed Jul 4 16:38:14 mailbak dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Jul 4 16:38:14 mailbak dovecot: IMAP([email protected]): mail_location: Ambiguous mail location setting, don't know what to do with it: /var/vmail/Mydomain.ir/ghadimi/Maildir (try prefixing it with mbox: or maildir Jul 4 16:38:14 mailbak dovecot: IMAP([email protected]): Fatal: Namespace initialization failed ##### [root@mailbak ~]# ls -la /var/vmail/Mydomain.ir/ total 8 drwxr-xr-x 2 vmail vmail 4096 Jul 3 03:50 . drwx------ 7 vmail vmail 4096 Jul 3 03:50 ..
Try the commented out line as you advised, but the result is the same also the uid and gid that i have in passwd file and in dovecot.conf are the same my uid and gid is 5000 and its ok
I think the problem is the user query in the dovecot-sql this is my dovecot-sql user and password query is this ok ? driver = mysql connect = host=localhost dbname=dbispconfig user=ispconfig password=35f6417408f11c92dd5f226eef531c70 default_pass_scheme = CRYPT password_query = SELECT password FROM mail_user WHERE email = '%u' AND disable%Ls = 'n' user_query = SELECT email as user, maildir as home, CONCAT(maildir, '/Maildir') as mail, uid, gid, CONCAT('maildir:storage=', floor(quota/1024)) AS quota, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE email = '%u' AND disable%Ls = 'n'
this is dovecot.conf: Code: [root@mailbak etc]# dovecot -n # 1.2.15: /etc/dovecot.conf # OS: Linux 2.6.18-238.12.1.el5 x86_64 CentOS release 5.6 (Final) ext3 log_timestamp: %Y-%m-%d %H:%M:%S listen: * login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login first_valid_uid: 5000 last_valid_uid: 5000 first_valid_gid: 5000 last_valid_gid: 5000 mail_location: maildir:/var/vmail/%d/%n/Maildir mail_executable(default): /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugin_dir(default): /usr/lib/dovecot/imap/ mail_plugin_dir(imap): /usr/lib/dovecot/imap/ mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 lda: postmaster_address: [email protected] mail_plugins: sieve quota mail_plugin_dir: /usr/lib/dovecot/lda auth_socket_path: /var/run/dovecot/auth-master auth default: mechanisms: plain login passdb: driver: pam passdb: driver: sql args: /etc/dovecot-sql.conf userdb: driver: passwd userdb: driver: sql args: /etc/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail plugin: quota: maildir sieve_dir: ~/sieve and dovecot-sql.conf: Code: driver = mysql connect = host=localhost dbname=dbispconfig user=ispconfig password=password default_pass_scheme = CRYPT password_query = SELECT password FROM mail_user WHERE email = '%u' AND disable%Ls = 'n' user_query = SELECT email as user, maildir as home, CONCAT(maildir, '/Maildir') as mail, uid, gid, CONCAT('maildir:storage=', floor(quota/1024)) AS quota, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE email = '%u' AND disable%Ls = 'n'
i have a question ! who make this mail directories ?! postfix ? or dovecot? if postfix makes these directories we have to do some configuration in main.cf but i read at least 3-4 installation of postfix and dovecot but no one change the main.cf
Neither nor. The directories were made by ISPConfig. If the directories were not created on your system, then ISPConfig is not installed properly. Download ispconfig again (the latest version 3.0.3.3), unpack it and run the update.php script. Choose to reconfigure services during update. Alkso you should check if cron is installed on your system and running.