Xcode Server Bot 不发送电子邮件报告

Dar*_*ren 5 email xcode postfix-mta xcode-bots xcode-server

我在本地 iMac 上运行 Xcode Server Bots,但未发送电子邮件通知。

我已经学习了很多教程,并进行了postfix设置和工作。我可以使用命令成功发送电子邮件

sudo echo "Test sending email from Postfix" | mail -s "Test Postfix" xxxxxx@me.com
Run Code Online (Sandbox Code Playgroud)

收到了我的电子邮件。

Xcode> Preferences> Server & Bots> 下,Mail我按照所有教程将所有内容留空。

对于我的 Bot,在Triggers我下面有一个Periodic Email ReportwithSchedule设置After each integration和设置我的from,reply-toTo字段,并且每个都Notify On打勾。

在此处输入图片说明

我使用命令监视smtpsmtp处理

sudo log stream --predicate  '(process == "smtpd") || (process == "smtp")' --info
Run Code Online (Sandbox Code Playgroud)

当我使用上述测试发送电子邮件时,我会看到一条日志行。

但是,当我的 Xcode Bot 完成时,我什么也没有得到。Bot 日志显示

Feb  2 13:47:16  [596] <Info>: Executing trigger 'Periodic Email Report'
Feb  2 13:47:16  [596] <Info>: Executing trigger 'New Issue Email'
Run Code Online (Sandbox Code Playgroud)

因此,电子邮件报告不会触发任何类型的smtp. 它甚至使用后缀吗?我可以记录其他内容以查看它是否完全命中postfix吗?

编辑 - - -

我发现一些sendmail日志似乎显示 Xcode 没有正确的使用权限postdrop

kernel    Sandbox: sendmail(48548) deny(1) forbidden-exec-sugid
sendmail    fatal: execvp /usr/sbin/postdrop: Operation not permitted
sendmail    warning: command "/usr/sbin/postdrop -r" exited with status 1
sendmail    fatal: xcode@<redacted>.com(450): unable to execute /usr/sbin/postdrop -r: Undefined error: 0
Run Code Online (Sandbox Code Playgroud)

postdrop与我在网上找到的相比,我的权限似乎是正确的:

-rwxr-xr-x    1 root   wheel        570448  1 Jan  2020 postalias
-rwxr-xr-x    1 root   wheel        466416  1 Jan  2020 postcat
-rwxr-xr-x    1 root   wheel        823488  1 Jan  2020 postconf
-rwxr-sr-x    1 root   _postdrop    588624  1 Jan  2020 postdrop
-rwxr-xr-x    1 root   wheel        431904  1 Jan  2020 postfix
-rwxr-xr-x    1 root   wheel        432032  1 Jan  2020 postkick
-rwxr-xr-x    1 root   wheel        449424  1 Jan  2020 postlock
-rwxr-xr-x    1 root   wheel        431872  1 Jan  2020 postlog
-rwxr-xr-x    1 root   wheel        569632  1 Jan  2020 postmap
-rwxr-xr-x    1 root   wheel        465872  1 Jan  2020 postmulti
-rwxr-sr-x    1 root   _postdrop    588448  1 Jan  2020 postqueue
-rwxr-xr-x    1 root   wheel        466784  1 Jan  2020 postsuper
Run Code Online (Sandbox Code Playgroud)

我的文件中有_postdrop用户/etc/group

_postdrop:*:28:
Run Code Online (Sandbox Code Playgroud)

还是我读错了?sendmail用户是否需要许可才能使用postdrop

编辑 2 -------

似乎这可能是Big Sur将根分区设为只读的问题。sudo postfix set-permissions不能做它的事情。

所以我想现在的问题是,如何为 Xcode Server 安装/使用不同的方法来发送电子邮件?