Re: [CentOS] Error dovecot restart

2012-06-11 Thread Muhammad A. Fatahna
 man touch
 man chmod
 man chown

file has ready, chmod use 755 and chown use vmail, this below :

[root@mail ~]# ls -la /etc/dovecot*
-rwxr-xr-x 1 vmail vmail 42989 Jun 11 17:08 /etc/dovecot.conf
-rwxr-xr-x 1 vmail vmail   181 Jun 11 15:27 /etc/dovecot-sql.conf
[root@mail ~]#

[root@mail ~]# ls -la /var/log/dovecot.log
-rwxr-xr-x 1 vmail vmail 1180 Jun 11 16:42 /var/log/dovecot.log
[root@mail ~]#

there is something wrong on my configuration

-- 
http://mafatahna.web.id
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Error dovecot restart

2012-06-11 Thread Helmut Drodofsky
I think there are not enough write permissions.

I have build a directory:
/var/log/dovecot
with user and group permissions for the dovecot user: drwxr-xr-x

and the log file:
/var/log/dovecot/dovecot.log
with user and group permissions for the dovecot user: -rw-r--r--

Viele Grüße
Helmut Drodofsky

Internet XS Service GmbH
Heßbrühlstraße 15
70565 Stuttgart

Geschäftsführung
Dr.-Ing. Roswitha Hahn-Drodofsky
HRB 21091 Stuttgart
USt.ID: DE190582774
Tel. 0711 781941 0
Fax: 0711 781941 79
Mail: i...@internet-xs.de
www.internet-xs.de



Am 11.06.2012 12:25, schrieb Muhammad A. Fatahna:
 man touch
 man chmod
 man chown
 file has ready, chmod use 755 and chown use vmail, this below :

 [root@mail ~]# ls -la /etc/dovecot*
 -rwxr-xr-x 1 vmail vmail 42989 Jun 11 17:08 /etc/dovecot.conf
 -rwxr-xr-x 1 vmail vmail   181 Jun 11 15:27 /etc/dovecot-sql.conf
 [root@mail ~]#

 [root@mail ~]# ls -la /var/log/dovecot.log
 -rwxr-xr-x 1 vmail vmail 1180 Jun 11 16:42 /var/log/dovecot.log
 [root@mail ~]#

 there is something wrong on my configuration


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Error dovecot restart

2012-06-11 Thread Shiv. Nath
On 6/11/12 10:05 AM, Muhammad A. Fatahna wrote:
 Dear all,

 i have a problem when install dovecot on CentOS 5, below my configuration

 [root@mail home]# vim /etc/dovecot-sql.conf
 driver = mysql
 connect = host = localhost dbname=postfix user=mail password=password
 default_pass_scheme = PLAIN
 password_query = SELECT password FROM mailbox WHERE username = '%u'

 [root@mail home]# vim /etc/dovecot.conf
 log_path = /var/log/dovecot.log
 auth_username_format = %Lu

 passdb sql {
 args = /etc/dovecot-sql.conf
 }

 userdb static {
 args = uid=501 gid=501 home=/home/vmail/%d/%n
 }

 [root@mail home]# service dovecot restart
 Stopping Dovecot Imap: [FAILED]
 Starting Dovecot Imap: Error: Can't write to log directory /var/log:
 Permission denied
 Fatal: Invalid configuration in /etc/dovecot.conf
 [FAILED]

 i have try searching but i don't see step fix it,

Hi, it seems that you want to read user  pass info from the MySQL DBMS.
Problem 1 seems to be permission issue, since it cannot write.
Problem 2 is misconfiguration related mysql with dovecot. SEE RED TEXT
because it is working, i have the following in /etc/dovecot.conf and 
/etc/dovecot-sql.conf, that concern to authentication. Either you have 
not provided the full information or cross check your configuration. 
configuration is missing that i feel.


* /etc/dovecot.conf*
 passdb sql {
  args = etc/dovecot-sql.conf
}

 userdb sql {
  args = /etc/dovecot-sql.conf
 }

*## Authentication processes*

auth_username_chars = 
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
auth default {
mechanisms = plain login

passdb sql {
 args = /usr/local/etc/dovecot-sql.conf
   }

userdb sql {
 args = /usr/local/etc/dovecot-sql.conf
}
*

 /etc/dovecot-sql.conf*

driver = mysql
connect = host=localhost dbname=postfix user=postfix password=your_pass_word
default_pass_scheme = MD5
password_query = SELECT password FROM mailbox WHERE username = '%u'
*user_query *= SELECT maildir, 125 AS uid, 125 AS gid, 
CONCAT('*:messages=1:bytes=', quota) AS quota_rule FROM mailbox 
WHERE username = '%u' AND active = '1'




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Error dovecot restart

2012-06-11 Thread Muhammad A. Fatahna
thank you very much for information, i wil check again. If have
problem i will ask again :D

-- 
http://mafatahna.web.id
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos