主题: 整合iredmail和mailman报错

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本: 0.8.3
- 使用的 Linux/BSD 发行版名称及版本号: centos 6.4
- 与您的问题相关的日志信息:
====
参照官方文档的howtoforge的文档整合mailman和iredman报错如下:
maillog如下:

Mar 14 11:59:24 mail postfix/smtpd[8985]: connect from localhost[127.0.0.1]
Mar 14 11:59:24 mail postfix/smtpd[8985]: 4B355415C6: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=test@example.com
Mar 14 11:59:24 mail postfix/cleanup[8988]: 4B355415C6: message-id=<0571a8155cc6d2599f4f68d44a649b61@example.com>
Mar 14 11:59:24 mail postfix/qmgr[8767]: 4B355415C6: from=<test@example.com>, size=552, nrcpt=1 (queue active)
Mar 14 11:59:24 mail roundcube: User test@example.com [192.168.23.100]; Message for tc@example.com; 250: 2.0.0 Ok: queued as 4B355415C6
Mar 14 11:59:24 mail postfix/smtpd[8985]: disconnect from localhost[127.0.0.1]
Mar 14 11:59:35 mail postfix/smtpd[9010]: connect from localhost[127.0.0.1]
Mar 14 11:59:35 mail postfix/trivial-rewrite[9012]: warning: do not list domain list.example.com in BOTH virtual_mailbox_domains and relay_domains
Mar 14 11:59:35 mail postfix/smtpd[9010]: 7674F415C8: client=localhost[127.0.0.1]
Mar 14 11:59:35 mail postfix/cleanup[8988]: 7674F415C8: message-id=<0571a8155cc6d2599f4f68d44a649b61@example.com>
Mar 14 11:59:35 mail postfix/qmgr[8767]: 7674F415C8: from=<test@example.com>, size=1468, nrcpt=1 (queue active)
Mar 14 11:59:35 mail postfix/smtpd[9010]: disconnect from localhost[127.0.0.1]
Mar 14 11:59:35 mail postfix/trivial-rewrite[9012]: warning: do not list domain list.example.com in BOTH virtual_mailbox_domains and relay_domains
Mar 14 11:59:35 mail postfix/qmgr[8767]: warning: connect to transport private/mailman: No such file or directory
Mar 14 11:59:35 mail amavis[5496]: (05496-08) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <test@example.com> -> <tc@list.example.com>, Message-ID: <0571a8155cc6d2599f4f68d44a649b61@example.com>, mail_id: cmZPWIDkXhU3, Hits: -9.998, size: 552, queued_as: 7674F415C8, 11127 ms
Mar 14 11:59:35 mail postfix/smtp[8993]: 4B355415C6: to=<tc@list.example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=11, delays=0.08/0.02/0.01/11, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 7674F415C8)
Mar 14 11:59:35 mail postfix/qmgr[8767]: 4B355415C6: removed
Mar 14 11:59:35 mail postfix/error[9014]: 7674F415C8: to=<tc@list.example.com>, relay=none, delay=0.06, delays=0.01/0.02/0/0.03, dsn=4.3.0, status=deferred (mail transport unavailable)

/etc/mailman/mm_cfg.py配置如下:

DEFAULT_URL_PATTERN   =  'http://%s/mailman'
DEFAULT_URL_HOST   =  'list.example.com'
DEFAULT_EMAIL_HOST = 'example.com'
MTA = 'Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS   = ['example.com']

其他地方按照官方配置,请问还需要配置哪里?

回复: 整合iredmail和mailman报错

请先修正这个问题:

Mar 14 11:59:35 mail postfix/trivial-rewrite[9012]: warning: do not list domain list.example.com in BOTH virtual_mailbox_domains and relay_domains

回复: 整合iredmail和mailman报错

main.cf已经配置了,还提示错误,晕。

relay_domains = list.expample.com

回复: 整合iredmail和mailman报错

ZhangHuangbin 写道:

请先修正这个问题:

Mar 14 11:59:35 mail postfix/trivial-rewrite[9012]: warning: do not list domain list.example.com in BOTH virtual_mailbox_domains and relay_domains

那个已经解决了,现在一直报:

relay=none, delay=0.01, delays=0/0/0/0, dsn=4.3.0, status=deferred (unknown mail transport error)

回复: 整合iredmail和mailman报错

main.cf我就添加一行:mailman_destination_recipient_limit = 1

其它内容如下:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_interfaces = all
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases

 
debug_peer_level = 2
debugger_command =
     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
     ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
inet_protocols = ipv4
virtual_alias_domains =
myhostname = linuxfun.me
myorigin = linuxfun.me
mydomain = linuxfun.me
biff = no
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
delay_warning_time = 0h
maximal_queue_lifetime = 1d
bounce_queue_lifetime = 1d
recipient_delimiter = +
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
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
queue_run_delay = 300s
minimal_backoff_time = 300s
maximal_backoff_time = 4000s
enable_original_recipient = no
disable_vrfy_command = yes
home_mailbox = Maildir/
allow_min_user = no
message_size_limit = 31457280
virtual_minimum_uid = 500
virtual_uid_maps = static:500
virtual_gid_maps = static:500
virtual_mailbox_base = /var/vmail
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap-users.cf,proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = no
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_tls_security_level = may
smtpd_tls_loglevel = 0
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail_CA.pem
tls_random_source = dev:/dev/urandom
mailbox_command = /usr/libexec/dovecot/deliver
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = ./dovecot-auth
content_filter = smtp-amavis:[127.0.0.1]:10024
smtp-amavis_destination_recipient_limit = 1
mailman_destination_recipient_limit = 1

回复: 整合iredmail和mailman报错

发送邮件错误日志如下:

Mar 14 17:30:27 mail postfix/smtpd[24399]: connect from localhost[127.0.0.1]
Mar 14 17:30:27 mail postfix/smtpd[24399]: CA41E41AD0: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=yinxuexiang@example.com
Mar 14 17:30:27 mail postfix/cleanup[24409]: CA41E41AD0: message-id=<7215196cb17470842b41859510c9fac9@example.com>
Mar 14 17:30:27 mail postfix/qmgr[24295]: CA41E41AD0: from=<yinxuexiang@example.com>, size=551, nrcpt=1 (queue active)
Mar 14 17:30:27 mail roundcube: User yinxuexiang@example.com [192.168.23.100]; Message for tc@example.com; 250: 2.0.0 Ok: queued as CA41E41AD0
Mar 14 17:30:28 mail postfix/smtpd[24399]: disconnect from localhost[127.0.0.1]
Mar 14 17:30:33 mail postfix/smtpd[24430]: connect from localhost[127.0.0.1]
Mar 14 17:30:33 mail postfix/smtpd[24430]: A9C5141AD2: client=localhost[127.0.0.1]
Mar 14 17:30:33 mail postfix/cleanup[24409]: A9C5141AD2: message-id=<7215196cb17470842b41859510c9fac9@example.com>
Mar 14 17:30:33 mail postfix/qmgr[24295]: A9C5141AD2: from=<yinxuexiang@example.com>, size=1467, nrcpt=1 (queue active)
Mar 14 17:30:33 mail postfix/smtpd[24430]: disconnect from localhost[127.0.0.1]
Mar 14 17:30:33 mail amavis[5496]: (05496-18) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <yinxuexiang@example.com> -> <tc@list.example.com>, Message-ID: <7215196cb17470842b41859510c9fac9@example.com>, mail_id: LW8NKiC8bN2R, Hits: -9.998, size: 551, queued_as: A9C5141AD2, 5791 ms
Mar 14 17:30:33 mail postfix/pipe[24434]: fatal: user= command-line attribute specifies root privileges
Mar 14 17:30:33 mail postfix/smtp[24415]: CA41E41AD0: to=<tc@list.example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6, delays=0.14/0.02/0.01/5.8, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A9C5141AD2)
Mar 14 17:30:33 mail postfix/qmgr[24295]: CA41E41AD0: removed
Mar 14 17:30:34 mail postfix/qmgr[24295]: warning: private/mailman socket: malformed response
Mar 14 17:30:34 mail postfix/qmgr[24295]: warning: transport mailman failure -- see a previous warning/fatal/panic logfile record for the problem description
Mar 14 17:30:34 mail postfix/master[24292]: warning: process /usr/libexec/postfix/pipe pid 24434 exit status 1
Mar 14 17:30:34 mail postfix/master[24292]: warning: /usr/libexec/postfix/pipe: bad command startup -- throttling
Mar 14 17:30:34 mail postfix/error[24435]: A9C5141AD2: to=<tc@list.example.com>, relay=none, delay=1.1, delays=0.01/1/0/0.02, dsn=4.3.0, status=deferred (unknown mail transport error)