You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

OS X系统Postfix无法正常工作的问题求助

OS X系统Postfix无法正常工作的问题求助

大家好,我在OS X上配置Postfix时碰到了麻烦,想请各位帮忙排查下!

具体情况如下:

  • 我用这条命令测试发送邮件:

    echo "test email" | mail -s "test email" jeff@m1.lan
    

    但发送之后,在/var/mail/jeff里完全看不到收到的邮件内容。

  • 我已经确认Postfix处于运行状态,执行sudo postfix status后得到的反馈是:

    postfix/postfix-script: the Postfix mail system is running: PID: 8781
    
  • 另外,我找不到任何Postfix的日志活动——不管是在/var/log/目录下,还是用这条命令:

    sudo log stream --predicate 'sender == "postfix"'
    

    都看不到相关日志输出。

下面是我的main.cf配置文件内容(后续内容未贴全):

compatibility_level = 2
queue_directory = /private/var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = _postfix
unknown_local_recipient_reject_code = 550
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = _postdrop
html_directory = /usr/share/doc/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix/examples
readme_directory = /usr/share/doc/postfix
message_size_limit ...

备注:内容来源于stack exchange,提问作者Alan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 12:53:12