Reputation: 1755
I was able to setup Server & Bots
with Xcode 9 (ref). The integration can be run smoothly. However, the expected email report is never sent.
I've already setup my Mac to send emails using postfix
. For example, I can run this command and then receive the email:
$ date | mail -s test1 [email protected]
To make Xcode send email, I have done the following setups:
However, no email is sent or received. I wonder if there is any additional setup is needed.
Any help is appreciated. Many thanks!
Upvotes: 3
Views: 1007
Reputation: 9845
After 20 hours searching I finally found the problem. I will try to describe the needed steps to get this working:
postfix
SMTP server needs to be configured and working. There are multiple tutorials on the internet. The one I used was this one:https://blog.anupamsg.me/2012/02/14/enabling-postfix-for-outbound-relay-via-gmail-on-os-x-lion-11/
However, I still was not able to sent a mail with the mail
command after I configured everything like explained in the tutorial.
https://support.google.com/accounts/answer/6010255
Set "Allow less secure apps" to On. I recommend creating a dedicated Gmail account just for this and not to enable this setting on your day-to-day email account.
Now everything was working and I was able to successfully send mails with the macOS cli command mail
.
mail
cli works) was to not set any settings in Xcode server. Just remove all the settings, then Xcode server will fall back to postfix
.Just remove all settings, that's it. Now Xcode CI server sends successfully emails.
Upvotes: 1