我是到Maildir 里面找cur 和new 两个目录直接清空了。。。不知道对否!

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
====


邮箱里有一用户密码被盗 造成此邮箱发送大量垃圾邮件,几万封怎么删除掉!

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
====

??????

张工,帮忙看下,"dovecot -n" 和 "postconf -n" 的输出已经贴出来了。。。

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
message_size_limit = 25728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = cnit.com
myhostname = mail.cnit.com
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
myorigin = mail.cnit.com
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
recipient_bcc_maps = proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_user.cf, proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_domain.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:ldap:/etc/postfix/ldap/relay_domains.cf
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sender_bcc_maps = proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_user.cf, proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_domain.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:127.0.0.1:10031
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = ./dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ldap/sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
tls_random_source = dev:/dev/urandom
transport_maps = proxy:ldap:/etc/postfix/ldap/transport_maps_user.cf, proxy:ldap:/etc/postfix/ldap/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:ldap:/etc/postfix/ldap/virtual_alias_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_members_maps.cf, proxy:ldap:/etc/postfix/ldap/catchall_maps.cf
virtual_gid_maps = static:500
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_maps.cf
virtual_minimum_uid = 500
virtual_transport = dovecot
virtual_uid_maps = static:500

贴出来了,麻烦张工看下  这是dovecot 的  下帖是postconf的

# 2.0.18: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-279.el6.x86_64 x86_64 CentOS release 6.3 (Final)
auth_default_realm = cnit.com
auth_mechanisms = PLAIN LOGIN
dict {
  acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  expire = db:/var/lib/dovecot/expire/expire.db
  quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
}
last_valid_uid = 500
listen = *
log_path = /var/log/dovecot.log
mail_gid = 500
mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
mail_uid = 500
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 ihave
namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u
  prefix = Shared/%%u/
  separator = /
  subscriptions = yes
  type = shared
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
plugin {
  acl = vfile
  acl_shared_dict = proxy::acl
  auth_socket_path = /var/run/dovecot/auth-master
  autocreate = INBOX
  autocreate2 = Sent
  autocreate3 = Trash
  autocreate4 = Drafts
  autocreate5 = Junk
  autosubscribe = INBOX
  autosubscribe2 = Sent
  autosubscribe3 = Trash
  autosubscribe4 = Drafts
  autosubscribe5 = Junk
  expire = Trash 7 Trash/* 7 Junk 30
  expire_dict = proxy::expire
  quota = dict:user::proxy::quotadict
  quota_rule = *:storage=1G
  quota_warning = storage=85%% quota-warning 85 %u
  quota_warning2 = storage=90%% quota-warning 90 %u
  quota_warning3 = storage=95%% quota-warning 95 %u
  sieve = /%Lh/sieve/dovecot.sieve
  sieve_dir = /%Lh/sieve
  sieve_global_dir = /var/vmail/sieve
  sieve_global_path = /var/vmail/sieve/dovecot.sieve
}
protocols = pop3 imap sieve
service auth {
  unix_listener /var/spool/postfix/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 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_CA.pem
ssl_key = </etc/pki/tls/private/iRedMail.key
userdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  lda_mailbox_autocreate = yes
  log_path = /var/log/sieve.log
  mail_plugins = quota sieve autocreate
  postmaster_address = root
}
protocol imap {
  imap_client_workarounds = tb-extra-mailbox-sep
  mail_plugins = quota imap_quota autocreate
}
protocol pop3 {
  mail_plugins = quota
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  pop3_uidl_format = %08Xu%08Xv
}

- iRedMail 版本号:8
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:centos 6.5
- 与您的问题相关的日志信息:

Nov  6 14:53:00 mail postfix/smtpd[9528]: connect from unknown[220.181.15.114]
Nov  6 14:53:00 mail policyd: connection from: 127.0.0.1 port: 51507 slots: 0 of 2044 used
Nov  6 14:53:00 mail policyd: rcpt=15, whitelist_sender=update, host=220.181.15.114 (unknown), from=dis@126.com, to=x-du@cil.cn, size=0
Nov  6 14:53:00 mail postfix/smtpd[9528]: 799FF100ABB: client=unknown[220.181.15.114]
Nov  6 14:53:00 mail postfix/cleanup[9532]: 799FF100ABB: message-id=<2014110615034437197048@126.com>
Nov  6 14:53:00 mail postfix/qmgr[1534]: 799FF100ABB: from=<dis@126.com>, size=4473, nrcpt=1 (queue active)
Nov  6 14:53:00 mail postfix/smtpd[9528]: disconnect from unknown[220.181.15.114]
Nov  6 14:53:04 mail postfix/smtpd[9538]: connect from mail.cnit.com[127.0.0.1]
Nov  6 14:53:04 mail postfix/smtpd[9538]: 16FE3100ADA: client=mail.cnit.com[127.0.0.1]
Nov  6 14:53:04 mail postfix/cleanup[9532]: 16FE3100ADA: message-id=<2014110615034437197048@126.com>
Nov  6 14:53:04 mail postfix/qmgr[1534]: 16FE3100ADA: from=<dis@126.com>, size=5013, nrcpt=1 (queue active)
Nov  6 14:53:04 mail postfix/smtpd[9538]: disconnect from mail.cnit.com[127.0.0.1]
Nov  6 14:53:04 mail postfix/qmgr[1534]: warning: connect to transport private/dovecot,dovecot: No such file or directory
Nov  6 14:53:04 mail amavis[8950]: (08950-01) Passed CLEAN, LOCAL [220.181.15.114] [59.46.202.33] <dis@126.com> -> <x-du@cil.cn>, Message-ID: <2014110615034437197048@126.com>, mail_id: FOnjU51Ppj-0, Hits: -96.126, size: 4473, queued_as: 16FE3100ADA, dkim_id=@126.com, 3550 ms
Nov  6 14:53:04 mail postfix/smtp[9533]: 799FF100ABB: to=<x-du@cil.cn>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.8, delays=0.15/0/0.01/3.6, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 16FE3100ADA)
Nov  6 14:53:04 mail postfix/qmgr[1534]: 799FF100ABB: removed
Nov  6 14:53:04 mail postfix/error[9547]: 16FE3100ADA: to=<x-du@cil.cn>, relay=none, delay=0.14, delays=0.06/0.01/0/0.07, dsn=4.3.0, status=deferred (mail transport unavailable)

====


在系统里添加了一个新域名,添加用户后可以发送邮件,但是收不到,旧域名正常好用!!!
在iredadmin-pro里面查看邮件记录 收发都是正常的,收的邮件发的邮件都有。可是为什么登录WEBMAIL 或者OUTLOOK什么都没有呢。。
更新了日志文件 好像是这样   status=deferred (mail transport unavailable)

请问,我都需要如何设置新域名呢     .cil.cn是新域名 cnit.com是原有域名 在POSTFIX里面myhostname是cnit.com.有些不明白新域名是如何操作呢

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.8.5
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:centos 6.3
- 与您的问题相关的日志信息:
====


发送国外邮件全部返回一封这样的邮件,包括给国内企业版163用户发送也同样有提示,根据163企业的回复是被当做垃圾邮件了,但是我查询所有的反垃圾联盟都没有我家的信息,我如何来操作解决这问题。做IP反向解析吗?

Subject: Undelivered Mail Returned to Sender

This is the mail system at host mail.longg.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<etabi-staff@pows.co.jp>: host pows.co.jp[219.95.219.53]
    said: 550 5.7.1 <e-ticket@longg.com>... Command rejected (in reply to
    MAIL FROM command)

已解决,谢谢

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
====

已经解决,谢谢张工,可以关闭此帖了

ps:当时已经解决,只是未收到论坛的解决方法

???
这么久未回复

==== ==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.8.3
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:centOS6.3
- 与您的问题相关的日志信息:
====

HELO标识里面的地址是什么意思,我发现那里的邮箱发来邮件都大概10多分钟才能收到 ,不太懂HELO这个意思
谢谢 帮忙解释下 好吗
-------------
追加 :
  查看日志发现在黑名单HELO标识里面的地址发来的邮件在被几次拒绝后 就 Pass CLEAN了。。然后收到邮件就是延迟大概10多分钟

请问张工  这是怎么回事呢
-------------
日志图片:

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.83
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):openldap
- 使用的 Linux/BSD 发行版名称及版本号:centos6.3
- 与您的问题相关的日志信息:
====

我安装的0.8.3版本 然后现在想更换服务器  重新安装0.8.5版   0.8.3的数据可以直接使用吗? 按照WIKI的迁移操作就可以吗?

iRedAdmin-Pro 里面才有白名单黑名单,需要购买许可的

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本: 0.8.3
- 使用的 Linux/BSD 发行版名称及版本号: centos6.3
- 与您的问题相关的日志信息:
====



昨天收到一封root邮件:
Cron <root@mail> /usr/share/spamassassin/sa-update.cron 2>&1 | tee -a /var/log/sa-update.log
channel: SHA1 verification failed, channel failed

更新失败了,怎么处理?

我也感觉是过滤很多次,有的时候一封新邮件地址发来的信件还会延迟10分钟以上才能收到
弄了好久也没搞明白

cbbc 写道:
lwydata 写道:

要用 phpmyadmin 操作 vmail 庫內的alias表

我也从这个提问中了解到相关的资料!!!

http://www.iredmail.com/bbs/topic2391-iredmail.html

但是现在打不开,请问LWYDATA达人那里有详细的教啊,希望能指导!感谢!


专业版的才有界面操作,你要是只建立没有特殊权限的邮件列表就进入这个地址httpS://your_server/phpldapadmin/操作alias表建立group就行了,特殊权限就得在alias里慢慢领会了

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本: 0.8.3
- 使用的 Linux/BSD 发行版名称及版本号: CentOS6.3
- 与您的问题相关的日志信息:
====
MESSAGES:

只有默认的一个小时限制
Mar 17 09:05:40 mail ソ<28>fail2ban.actions: WARNING [dovecot-iredmail] Ban 195.98.79.171
Mar 17 09:46:26 mail ソ<28>fail2ban.actions: WARNING [dovecot-iredmail] Ban 74.92.75.162
Mar 17 10:05:41 mail ソ<28>fail2ban.actions: WARNING [dovecot-iredmail] Unban 195.98.79.171
Mar 17 10:46:27 mail ソ<28>fail2ban.actions: WARNING [dovecot-iredmail] Unban 74.92.75.162
Mar 17 13:53:55 mail ソ<28>fail2ban.actions: WARNING [postfix-iredmail] Ban 14.222.46.129
Mar 17 14:53:56 mail ソ<28>fail2ban.actions: WARNING [postfix-iredmail] Unban 14.222.46.129

这是我设置后正常的10个小时
Mar 24 19:56:12 mail ソ<28>fail2ban.actions: WARNING [ssh-iredmail] Ban 14.102.108.242
Mar 25 05:56:13 mail ソ<28>fail2ban.actions: WARNING [ssh-iredmail] Unban 14.102.108.242
怎么只有ssh-iredmail好用,为什么呢?

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本:0.8.3
- 使用的 Linux/BSD 发行版名称及版本号:CentOS6.3
- 与您的问题相关的日志信息:
====
这些是什么意思 ,我查看邮件收信时间确实比较长
iredapd.log:

2013-03-24 22:59:41 INFO [211.151.190.228] b3.service@zhaopinmail.com -> recruit@longbeyond.ccom, DUNNO
2013-03-24 23:12:46 INFO [211.151.190.38] b4.service@zhaopinmail.com -> recruit@longbeyond.ccom, DUNNO
2013-03-25 07:43:44 INFO [211.151.190.231] b1.service@zhaopinmail.com -> recruit@longbeyond.ccom, DUNNO

opemLDAP启动OK了,
现在问题是 我迁移后除了LDAP能登陆以外,其他的都登陆不上,
WIKI这段还是没太懂,就是迁移新服务器密码也要一致吗?

IMPORTANT NOTE: If you're restoring LDIF data (exported on an old iRedMail server) to a new iRedMail server, you MUST login to phpLDAPadmin on new iRedMail server and reset passwords of below two DNs. Because they're hard-coded in many config files. For example, /etc/postfix/ldap/*.cf, /etc/dovecot/dovecot-ldap.conf.
•    cn=vmail,dc=xxx,dc=xxx
•    cn=vmailadmin,dc=xxx,dc=xxx
The new passwords you should use can be found in the root directory of iRedMail installation directory on NEW iRedMail server. for example, /root/iRedMail-0.8.1/iRedMail.tips. Below is the sample of the passwords in file iRedMail.tips:

我登陆LDAP重置了这两个域的密码结果 roundcube webmai connection failed ,iredadmin internal server error,搞得我糊涂了

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本: 0.8.3
- 使用的 Linux/BSD 发行版名称及版本号:CentOS6.3
- 与您的问题相关的日志信息:
====

迁移新邮件服务器 把VMAIL1直接复制赋予权限  然后将每天晚上定时备份的ldap mysql导入就行了吗?

我导入ldap失败了,新服务器无法启动ldap
[root@mail ~]# slapd -d 256
@(#) $......
daemon:bind(7) failed errno=98 (Address already in use)
daemon:bind(7) failed errno=98 (Address already in use)
slapd stopped


我是参考wiki里面的迁移,由于技术水平有限试过两次,都失败了。。
应该写个比较详细适合新手的文档,安装这么简单迁移应该更简单才能符合iRedMail标准

ZhangHuangbin 写道:

从日志看只是因为密码多次错误触发 Fail2ban 将这个用户的IP给ban了。没看到其它提示 Dovecot 需要调整设置的日志。或者你没有贴全?


我理解也是这样,但是问题就是我已经把IP给过滤掉,其它帐号测试也是没问题,在这个IP下为什么还是ban了呢,

现在那个无法连接的帐号还是密码错误,这怎么回事呢,从来没改变过

就是这个a-zhang@beyonglu.com 什么都没操作,就提示密码错误了,现在改成一个新的密码正常

我觉得应该是fail2ban给限制了,但是我设置的本IP不在过滤之列,为什么还出现这种情况呢,以前其它帐号测试过密码错3次也正常

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本:
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
====

iRedAdmin如何修改默认语言,没找到  "language=  "