通过 MacOs 12 终端发送简单的电子邮件(mail_version = 3.2.2)

发布于 2025-01-15 23:24:07 字数 1125 浏览 2 评论 0原文

我想要我的 MacOS“服务器”(安装了 OS12.1 的基本 mac mini) 能够使用我当前的(付费)电子邮件提供商发送电子邮件。

先讲一些理论。

  • 我知道这篇好文章(http://hints.macworld.com/article.php?story=20081217161612647)

  • 令我困惑的是,mac 到底如何“新鲜出炉”无需先配置(邮件服务器)即可发送一封电子邮件。换句话说,它将向哪个电子邮件服务器发送我的电子邮件?

  • 发现了非常有用的命令mailq,它将显示当前正在处理的所有电子邮件的当前状态。

  • 我知道命令 mail 将发送电子邮件:

    echo“这就是身体”| mail -s "这是主题" "[电子邮件受保护]"< /代码>

  • 我明白了,邮件在后台使用 postfix。

  • 这将显示 postfix 的版本(我的是 mail_version = 3.2.2)

    postconf mail_version

  • 是否可以在 macos 上更新 postfix?

  • 有人设法在 mail_version 3.2.2 上启用登录吗? 我收到此警告:

    postconf:警告:/etc/postfix/main.cf:未使用的参数:maillog_file=/var/log/postfix.log

没有日志,很难看出发生了什么电子邮件发送期间错误...

提前感谢一些与 MAC 相关的输入。

I would like my MacOS "server" (basic mac mini with OS12.1 installed)
to be able to send emails using my current (paid) email provider.

Some theory first.

  • I am aware about this fine article (http://hints.macworld.com/article.php?story=20081217161612647)

  • What puzzles me is how on earth will "fresh out of box" mac be able to send even ONE email without being (mail-server) configured first. In other words to what email server will it send my email?

  • Discovered the very useful command mailq that will show the current status of all current emails being processed.

  • I understood that the command mail will send an email:

    echo "this is the body" | mail -s "this is the subject" "[email protected]"

  • I understand, mail is using postfix in the background.

  • This will show the version of postfix (mine is mail_version = 3.2.2)

    postconf mail_version

  • Is it possible to update postfix on macos?

  • Did anyone managed to enable the log on mail_version 3.2.2?
    I get this warning:

    postconf: warning: /etc/postfix/main.cf: unused parameter: maillog_file=/var/log/postfix.log

without the log it is a bit difficult to see what went wrong during email send...

thanks in advance for some MAC related input.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文