1 最后由 阿鲁 (2014-11-06 15:54:42) 编辑

主题: 添加新域名后新域名无法收信!一套邮箱可以同时使用两个域名吗?

- 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.有些不明白新域名是如何操作呢

回复: 添加新域名后新域名无法收信!一套邮箱可以同时使用两个域名吗?

阿鲁 写道:

Nov  6 14:53:04 mail postfix/qmgr[1534]: warning: connect to transport private/dovecot,dovecot: No such file or directory

问题出在这里。
贴一下 "dovecot -n" 和 "postconf -n" 的输出看看(不要截图,请直接贴文本)

3 最后由 阿鲁 (2014-11-06 17:01:13) 编辑

回复: 添加新域名后新域名无法收信!一套邮箱可以同时使用两个域名吗?

贴出来了,麻烦张工看下  这是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
}

4 最后由 阿鲁 (2014-11-06 16:59:48) 编辑

回复: 添加新域名后新域名无法收信!一套邮箱可以同时使用两个域名吗?

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 -n" 和 "postconf -n" 的输出已经贴出来了。。。

回复: 添加新域名后新域名无法收信!一套邮箱可以同时使用两个域名吗?

从 dovecot/postfix 配置来看没有问题。

阿鲁 写道:

Nov  6 14:53:04 mail postfix/qmgr[1534]: warning: connect to transport private/dovecot,dovecot: No such file or directory

是不是你给这个邮件域设置了 per-domain transport?这个自定义的 transport "private/dovecot,dovecot" 不存在。