主题: 安装完新版本iRedMail后无法发送邮件,本域内也发送不了!

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:Linux发行版本:CentOS release 6.5 (Final)   版本号:2.6.32-504.16.2.el6.x86_64
- 与您的问题相关的日志信息:
==== iRedMail-0.9.1安装完成后,默认配置,测试本域内也无法发送邮件,日志信息如下:
# tail -f /var/log/maillog
May 24 06:44:05 mail postfix/postfix-script[1595]: refreshing the Postfix mail system
May 24 06:44:05 mail postfix/master[1385]: reload -- version 2.11.0, configuration /etc/postfix
May 24 06:50:26 mail postfix/postfix-script[1613]: stopping the Postfix mail system
May 24 06:50:26 mail postfix/master[1385]: terminating on signal 15
May 24 06:50:30 mail postfix/postfix-script[1693]: starting the Postfix mail system
May 24 06:50:30 mail postfix/master[1695]: daemon started -- version 2.11.0, configuration /etc/postfix
May 24 06:51:04 mail postfix/smtpd[1710]: connect from mail.prcbigdata.com[127.0.0.1]
May 24 06:51:04 mail postfix/smtpd[1710]: warning: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead
May 24 06:51:04 mail postfix/smtpd[1710]: warning: connect #1 to subsystem private/rewrite: No such file or directory
May 24 06:51:14 mail postfix/smtpd[1710]: warning: connect #2 to subsystem private/rewrite: No such file or directory
May 24 06:51:24 mail postfix/smtpd[1710]: warning: connect #3 to subsystem private/rewrite: No such file or directory
May 24 06:51:34 mail postfix/smtpd[1710]: warning: connect #4 to subsystem private/rewrite: No such file or directory


messages信息如下:
# tail /var/log/messages
May 24 06:27:08 mail fail2ban.jail[1436]: INFO Jail 'sshd-ddos' started
May 24 06:27:08 mail fail2ban.jail[1436]: INFO Jail 'roundcube-iredmail' started
May 24 06:27:08 mail fail2ban.jail[1436]: INFO Jail 'postfix-iredmail' started
May 24 06:29:05 mail fail2ban.filter[1436]: ERROR Error in FilterPyinotify callback: _strptime_time
May 24 06:29:05 mail fail2ban.filter[1436]: ERROR Error in FilterPyinotify callback: _strptime_time
May 24 06:37:00 mail clamd[1072]: No stats for Database check - forcing reload
May 24 06:37:01 mail clamd[1072]: Reading databases from /var/lib/clamav
May 24 06:37:09 mail clamd[1072]: Database correctly reloaded (3815706 signatures)
May 24 06:47:09 mail clamd[1072]: SelfCheck: Database status OK.
May 24 06:57:09 mail clamd[1072]: SelfCheck: Database status OK.


我的postfix配置文件内容如下:
# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
allow_percent_hack = no
biff = no
bounce_queue_lifetime = 4h
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
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
delay_warning_time = 0h
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3
lmtp_tls_protocols = !SSLv2 !SSLv3
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 = 4h
message_size_limit = 15728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain
mydomain = mail.prcbigdata.com
myhostname = mail.prcbigdata.com
mynetworks = 192.168.1.0/24,127.0.0.1/8
mynetworks_style = host
myorigin = mail.prcbigdata.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.11.0/README_FILES
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
sample_directory = /usr/share/doc/postfix-2.11.0/samples
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp-amavis_destination_recipient_limit = 1
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtp_tls_CAfile = $smtpd_tls_CAfile
smtp_tls_loglevel = 0
smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
smtp_tls_note_starttls_offer = yes
smtp_tls_protocols = !SSLv2 !SSLv3
smtp_tls_security_level = may
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031,
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_recipient_domain, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sender_restrictions = reject_unknown_sender_domain, reject_non_fqdn_sender, reject_unlisted_sender, permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail.crt
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail.crt
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
smtpd_tls_protocols = !SSLv2 !SSLv3
smtpd_tls_security_level = may
swap_bangpath = no
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
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
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_transport = dovecot
virtual_uid_maps = static:2000

回复: 安装完新版本iRedMail后无法发送邮件,本域内也发送不了!

查看了一下端口,奇怪的是,新版本安装完后,怎么没有25端口在监听。
端口信息如下:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 0.0.0.0:4190                0.0.0.0:*                   LISTEN      1249/dovecot       
tcp        0      0 127.0.0.1:7777              0.0.0.0:*                   LISTEN      1470/python         
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN      1249/dovecot       
tcp        0      0 0.0.0.0:995                 0.0.0.0:*                   LISTEN      1249/dovecot       
tcp        0      0 127.0.0.1:10024             0.0.0.0:*                   LISTEN      1282/amavisd (maste
tcp        0      0 127.0.0.1:10025             0.0.0.0:*                   LISTEN      1373/master         
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      1224/mysqld         
tcp        0      0 0.0.0.0:587                 0.0.0.0:*                   LISTEN      1373/master         
tcp        0      0 127.0.0.1:9998              0.0.0.0:*                   LISTEN      1282/amavisd (maste
tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LISTEN      1249/dovecot       
tcp        0      0 127.0.0.1:10031             0.0.0.0:*                   LISTEN      1267/perl           
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LISTEN      1249/dovecot       
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1062/sshd           
tcp        0      0 0.0.0.0:24                  0.0.0.0:*                   LISTEN      1249/dovecot       
tcp        0      0 :::4190                     :::*                        LISTEN      1249/dovecot       
tcp        0      0 :::993                      :::*                        LISTEN      1249/dovecot       
tcp        0      0 :::995                      :::*                        LISTEN      1249/dovecot       
tcp        0      0 ::1:10024                   :::*                        LISTEN      1282/amavisd (maste
tcp        0      0 ::1:9998                    :::*                        LISTEN      1282/amavisd (maste
tcp        0      0 :::110                      :::*                        LISTEN      1249/dovecot       
tcp        0      0 :::143                      :::*                        LISTEN      1249/dovecot       
tcp        0      0 :::80                       :::*                        LISTEN      1381/httpd         
tcp        0      0 :::22                       :::*                        LISTEN      1062/sshd           
tcp        0      0 :::24                       :::*                        LISTEN      1249/dovecot       
tcp        0      0 :::443                      :::*                        LISTEN      1381/httpd

回复: 安装完新版本iRedMail后无法发送邮件,本域内也发送不了!

9361658 写道:

May 24 06:51:04 mail postfix/smtpd[1710]: warning: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead

把这个先修正,之后重启 postfix 服务试试。