postfix / postfix-script:fatal:Postfix邮件系统没有运行

我正在运行服务器应用程序5.2的全新安装的macOS 10.12.1。

有或没有邮件服务激活,我无法在命令行中使用postfix。 我总是得到这个错误,当我尝试重新加载后缀

postfix/postfix-script: fatal: the Postfix mail system is not running 

当我做postconf -ni有这个:

 remote:log root# postconf -n biff = no command_directory = /usr/sbin compatibility_level = 2 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 html_directory = /usr/share/doc/postfix/html inet_protocols = all mail_owner = _postfix mailbox_size_limit = 0 mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man message_size_limit = 10485760 mynetworks = 127.0.0.0/8, [::1]/128 newaliases_path = /usr/bin/newaliases queue_directory = /private/var/spool/postfix readme_directory = /usr/share/doc/postfix recipient_delimiter = + sample_directory = /usr/share/doc/postfix/examples sendmail_path = /usr/sbin/sendmail server_config_directory = /Library/Server/Mail/Config/postfix setgid_group = _postdrop smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit smtpd_tls_ciphers = medium tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 550 

UPDATE1:

我也做了postfix开始,我得到这个:

 postfix/postfix-script: starting the Postfix mail system postfix/postfix-script: fatal: mail system startup failed 

而且我仍然可以通过端口25,587,110和995的localhost进行telnet。

有谁知道?

要在服务器应用程序和terminal服务器应用程序5中使用相同的后缀,它需要一些修复。

从服务器应用程序3和5的主要区别是,在服务器应用程序3,从系统中使用后缀,所以有可能在那个时候通过terminal,现在与服务器应用程序5命令该服务器应用程序3的后缀,该能力已经改变,现在你有来自系统和另一个后缀的后缀,

 /Applications/Server.app/Contents/ServerRoot/ 

有很多地方新的main.cf如果指向,这是不同的服务器应用程序3。

在这里,我将做一个服务器应用程序3 /服务器端/服务器/ postfix / main.cf到服务器应用程序5(也在同一path)的任何想要使用本机后缀(在评论是服务器应用程序5的新值):

 #command_directory = /Applications/Server.app/Contents/ServerRoot/usr/sbin command_directory = /usr/sbin #daemon_directory = /Applications/Server.app/Contents/ServerRoot/usr/libexec/postfix daemon_directory = /usr/libexec/postfix #sendmail_path = /Applications/Server.app/Contents/ServerRoot/usr/sbin/sendmail sendmail_path = /usr/sbin/sendmail #mailq_path = /Applications/Server.app/Contents/ServerRoot/usr/bin/mailq mailq_path = /usr/bin/mailq #html_directory = /Applications/Server.app/Contents/ServerRoot/usr/share/doc/postfix/html html_directory = /usr/share/doc/postfix/html #manpage_directory = /Applications/Server.app/Contents/ServerRoot/usr/share/man manpage_directory = /usr/share/man #sample_directory = /Applications/Server.app/Contents/ServerRoot/usr/share/doc/postfix/examples sample_directory = /usr/share/doc/postfix/examples #readme_directory = /Applications/Server.app/Contents/ServerRoot/usr/share/doc/postfix readme_directory = /usr/share/doc/postfix 

至less与我在服务器应用程序3closures邮件没有closures后缀和dovecot,但现在与服务器应用程序5,它变成closures,所以你必须启动,然后通过后缀:

 postfix start 

然后启动dovecot(你只需要停止或重新加载参数),

 dovecotd