Postfix在启动时给了我这个错误:
Oct 8 16:59:48 cheese-ubuntu postfix/master[23917]: daemon started -- version 2.9.6, configuration /etc/postfix Oct 8 17:00:57 cheese-ubuntu postfix/postqueue[24106]: warning: Mail system is down -- accessing queue directly Oct 8 17:00:59 cheese-ubuntu postfix/postqueue[24117]: warning: Mail system is down -- accessing queue directly Oct 8 17:01:00 cheese-ubuntu postfix/postqueue[24122]: fatal: Cannot flush mail queue - mail system is down Oct 8 17:01:28 cheese-ubuntu postfix/smtpd[24145]: warning: database /etc/aliases.db is older than source file /etc/aliases Oct 8 17:01:28 cheese-ubuntu postfix/smtpd[24145]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled Oct 8 17:01:28 cheese-ubuntu postfix/smtpd[24145]: connect from spring-chicken-ah.twitter.com[199.16.156.147] Oct 8 17:01:29 cheese-ubuntu postfix/smtpd[24145]: warning: connect #1 to subsystem private/rewrite: Connection refused Oct 8 17:01:39 cheese-ubuntu postfix/smtpd[24145]: warning: connect #2 to subsystem private/rewrite: Connection refused Oct 8 17:01:49 cheese-ubuntu postfix/smtpd[24145]: warning: connect #3 to subsystem private/rewrite: Connection refused Oct 8 17:01:59 cheese-ubuntu postfix/smtpd[24145]: warning: connect #4 to subsystem private/rewrite: Connection refused Oct 8 17:02:09 cheese-ubuntu postfix/smtpd[24145]: warning: connect #5 to subsystem private/rewrite: Connection refused Oct 8 17:02:19 cheese-ubuntu postfix/smtpd[24145]: warning: connect #6 to subsystem private/rewrite: Connection refused Oct 8 17:02:29 cheese-ubuntu postfix/smtpd[24145]: warning: connect #7 to subsystem private/rewrite: Connection refused Oct 8 17:02:39 cheese-ubuntu postfix/smtpd[24145]: warning: connect #8 to subsystem private/rewrite: Connection refused Oct 8 17:02:49 cheese-ubuntu postfix/smtpd[24145]: warning: connect #9 to subsystem private/rewrite: Connection refused Oct 8 17:02:59 cheese-ubuntu postfix/smtpd[24145]: warning: connect #10 to subsystem private/rewrite: Connection refused Oct 8 17:03:09 cheese-ubuntu postfix/smtpd[24145]: fatal: connect #11 to subsystem private/rewrite: Connection refused
Postconf – n:
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix inet_interfaces = all inet_protocols = ipv4 mailbox_size_limit = 0 mydestination = localhost myhostname = host.example.com mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem smtpd_tls_key_file = /etc/ssl/private/dovecot.pem smtpd_use_tls = yes virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_transport = lmtp:unix:private/dovecot-lmtp
请帮助 – 这是紧急的
您需要返回并重新阅读您的错误消息。
Oct 8 17:00:57 cheese-ubuntu postfix/postqueue[24106]: warning: Mail system is down -- accessing queue directly Oct 8 17:00:59 cheese-ubuntu postfix/postqueue[24117]: warning: Mail system is down -- accessing queue directly Oct 8 17:01:00 cheese-ubuntu postfix/postqueue[24122]: fatal: Cannot flush mail queue - mail system is down
说这一切。 您的邮件服务没有正常运行。
请记住,SysV初始化脚本执行状态pipe理 ,而不是进程pipe理 。 国家pipe理处理系统的状态; 过程pipe理是国家pipe理的一个子集,只关注对长期运行过程的监督。
完全有可能“启动”服务,SysV将服务标记为正在运行,但服务将会崩溃。 所以现在你有服务“运行”,但实际上不是。 停止服务,然后启动它,然后观看日志:
/etc/init.d/postfix stop ; /etc/init.d/postfix start ; tail -f -n100 /var/log/messages
查找关于postfix启动的消息,以及它在做什么。 在这里发布一些结果。