AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 816113
Accepted
marafado88
marafado88
Asked: 2016-11-22 06:32:33 +0800 CST2016-11-22 06:32:33 +0800 CST 2016-11-22 06:32:33 +0800 CST

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

  • 772

我正在运行带有服务器应用程序 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

更新1:

我也做了后缀启动,我得到了这个:

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

而且我仍然可以在 localhost 的 25、587、110 和 995 端口上远程登录。

有谁知道?

mac-osx postfix email-server
  • 1 1 个回答
  • 18537 Views

1 个回答

  • Voted
  1. Best Answer
    marafado88
    2016-11-22T08:01:22+08:002016-11-22T08:01:22+08:00

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

    与服务器应用程序 3 和 5 的主要区别在于,在服务器应用程序 3 中,使用了系统中的后缀,因此当时可以通过终端从服务器应用程序 3 中命令该后缀,现在使用服务器应用程序 5,该功能发生了变化, 现在你有来自系统的后缀和另一个后缀,

    /Applications/Server.app/Contents/ServerRoot/
    

    如果新的 main.cf 指向很多位置,则与 Server app 3 不同。

    在这里,我将为想要使用本机后缀的任何人列出从 /Library/Server/Mail/Config/postfix/main.cf of Server app 3 到 Server app 5(也在同一路径中)的更改列表(在评论中是服务器应用程序 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
    

    至少我在服务器应用程序 3 中关闭邮件并没有关闭 postfix 和 dovecot,但现在使用服务器应用程序 5,它都关闭了,所以你必须从 postfix 开始:

    postfix start
    

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

    dovecotd 
    
    • 4

相关问题

  • Mac OS X:从 python 脚本中更改 $PATH

  • 登录网络用户帐户 (Open Directory) 时,Adobe Reader 不会启动

  • 如何在客户端计算机上阻止 Finder 的“记住此密码”?

  • 如何在 Mac OS X 中正确安装 Subversion?

  • 随行人员通过 VPN 连接到 Exchange 2007

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve