跳至论坛內容
iRedMail 开源邮件服务解决方案
支持 Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, FreeBSD, OpenBSD
您尚未登陆。 请选择登陆或是注册一个新账号。
热门主题 尚未回复的主题
iRedMail 技术交流 QQ 群:296792359。
Spider Email Archiver:由 iRedMail 团队开发的轻量级电子邮件归档软件。
搜索选项
ZhangHuangbin 写道:/var/log/dovecot/ 目录下其它 log 文件里有什么相关的错误信息?
(From var/log/dovecot/imap.log)
80 Sep 20 18:54:54 jsdnhk dovecot: imap-login: Login: user=<postmaster@mail.jsdnhk.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2302, secured, session=<p3tTzpxZMKd/AAAB>
81 Sep 20 18:54:54 jsdnhk dovecot: imap(postmaster@mail.jsdnhk.com): Error: chdir(/var/vmail/vmail1/mail.jsdnhk.com/p/o/s/postmaster//) failed: Permission denied (euid=2000(<unknown>) egid =2000(<unknown>) missing +x perm: /var/vmail, dir owned by 5000:5000 mode=0700)
82 Sep 20 18:54:54 jsdnhk dovecot: imap(postmaster@mail.jsdnhk.com): Error: chdir(/var/vmail/vmail1/mail.jsdnhk.com/p/o/s/postmaster/) failed: Permission denied
83 Sep 20 18:54:54 jsdnhk dovecot: imap(postmaster@mail.jsdnhk.com): Error: User initialization failed: Namespace '': stat(/var/vmail/vmail1/mail.jsdnhk.com/p/o/s/postmaster//Maildir) fail ed: Permission denied (euid=2000(<unknown>) egid=2000(<unknown>) missing +x perm: /var/vmail, dir owned by 5000:5000 mode=0700)
dovecot 设定
[root@jsdnhk postfix]# doveconf -n
# 2.2.28 (bed8434): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.17 (e179378)
# OS: Linux 3.10.0-693.el7.x86_64 x86_64 CentOS Linux release 7.4.1708 (Core)
auth_master_user_separator = *
auth_mechanisms = PLAIN LOGIN
dict {
acl = mysql:/etc/dovecot/dovecot-share-folder.conf
quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
}
first_valid_uid = 2000
last_valid_uid = 2000
listen = *
mail_gid = 2000
mail_location = maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/
mail_plugins = quota mailbox_alias acl mail_log notify
mail_uid = 2000
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
namespace {
inbox = yes
location =
mailbox Archive {
auto = no
special_use = \Archive
}
mailbox Archives {
auto = no
special_use = \Archive
}
mailbox "Deleted Messages" {
auto = no
special_use = \Trash
}
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Junk {
auto = subscribe
special_use = \Junk
}
mailbox "Junk E-mail" {
auto = no
special_use = \Junk
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox "Sent Items" {
auto = no
special_use = \Sent
}
mailbox "Sent Messages" {
auto = no
special_use = \Sent
}
mailbox Spam {
auto = no
special_use = \Junk
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
prefix =
separator = /
type = private
}
namespace {
list = children
location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%Ld/%%Ln
prefix = Shared/%%u/
separator = /
subscriptions = yes
type = shared
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
passdb {
args = /etc/dovecot/dovecot-master-users
driver = passwd-file
master = yes
}
plugin {
acl = vfile
acl_shared_dict = proxy::acl
mail_log_events = delete undelete expunge mailbox_delete mailbox_rename
mail_log_fields = uid box msgid size from subject
mailbox_alias_new = Sent Messages
mailbox_alias_new2 = Sent Items
mailbox_alias_old = Sent
mailbox_alias_old2 = Sent
quota = dict:user::proxy::quotadict
quota_grace = 10%%
quota_rule = *:storage=1G
quota_warning = storage=100%% quota-warning 100 %u
quota_warning2 = storage=95%% quota-warning 95 %u
quota_warning3 = storage=90%% quota-warning 90 %u
quota_warning4 = storage=85%% quota-warning 85 %u
sieve = %Lh/sieve/dovecot.sieve
sieve_before = /var/vmail/sieve/dovecot.sieve
sieve_dir = %Lh/sieve
sieve_global_dir = /var/vmail/sieve
sieve_max_redirects = 30
}
protocols = pop3 imap sieve lmtp
service auth {
unix_listener /var/spool/postfix/private/dovecot-auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-master {
group = vmail
mode = 0666
user = vmail
}
unix_listener auth-userdb {
group = vmail
mode = 0660
user = vmail
}
}
service dict {
unix_listener dict {
group = vmail
mode = 0660
user = vmail
}
}
service imap-login {
process_limit = 500
service_count = 1
}
service lmtp {
executable = lmtp -L
inet_listener lmtp {
address = 127.0.0.1
port = 24
}
process_min_avail = 5
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
user = vmail
}
service managesieve-login {
inet_listener sieve {
address = 127.0.0.1
port = 4190
}
}
service pop3-login {
service_count = 1
}
service quota-warning {
executable = script /usr/local/bin/dovecot-quota-warning.sh
unix_listener quota-warning {
group = vmail
mode = 0660
user = vmail
}
}
ssl = required
ssl_cert = </etc/pki/tls/certs/iRedMail.crt
ssl_cipher_list = ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5
ssl_dh_parameters_length = 2048
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
ssl_protocols = !SSLv2 !SSLv3
syslog_facility = local5
userdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
protocol lda {
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_plugins = quota mailbox_alias acl mail_log notify sieve
postmaster_address = root
}
protocol lmtp {
lmtp_save_to_detail_mailbox = yes
mail_plugins = quota sieve
postmaster_address = postmaster
recipient_delimiter = +
}
protocol imap {
imap_client_workarounds = tb-extra-mailbox-sep
mail_max_userip_connections = 30
mail_plugins = quota mailbox_alias acl mail_log notify imap_quota imap_acl
}
protocol pop3 {
mail_max_userip_connections = 30
mail_plugins = quota mailbox_alias acl mail_log notify
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_uidl_format = %08Xu%08Xv
}
刚安装完 iRedmail 就不能登入,iRedmail Admin 能正常登入,一用roundcube 就不能正常登入。
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:CentOS 7
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 7
- 与您的问题相关的日志信息:
(From var/log/maillog)
Sep 20 18:19:37 jsdnhk clamd[1312]: SelfCheck: Database status OK.
279 Sep 20 18:21:06 jsdnhk postfix/anvil[2048]: statistics: max connection rate 6/60s for (submission:138.19.130.106) at Sep 20 18:17:46
280 Sep 20 18:21:06 jsdnhk postfix/anvil[2048]: statistics: max connection count 2 for (submission:138.19.130.106) at Sep 20 18:16:48
281 Sep 20 18:21:06 jsdnhk postfix/anvil[2048]: statistics: max cache size 1 at Sep 20 18:16:48
282 Sep 20 18:29:37 jsdnhk clamd[1312]: SelfCheck: Database status OK.
283 Sep 20 18:39:37 jsdnhk clamd[1312]: SelfCheck: Database status OK.
284 Sep 20 18:49:37 jsdnhk clamd[1312]: SelfCheck: Database status OK.
285 Sep 20 18:54:54 jsdnhk roundcube: <ad2d51r8> IMAP Error: Login failed for postmaster@mail.jsdnhk.com from 192.168.2.4. LOGIN: Internal error occurred. Refer to server log for more information. in /var/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_imap.php on line 196 (POST /mail/?_task=login&_action=login)
(From var/log/dovecot/dovecot.log)
69 Sep 20 18:54:54 jsdnhk dovecot: imap: Error: Invalid user settings. Refer to server log for more information.
====
搜索到的文章数 [ 3 ]
页面生成时间 0.006 秒, 共执行查询 74 条