XCode Server not sending email notifications to committers whether the build has passed or not

Hi Folks,


I have set a bot with post integration "Periodic Email report" but no reports are arriving at specified email address. I have the following set-up on my local macbook pro. I also have the macOS Server 5.4 running locally.


Mail Relay Setup (on macOS Server 5.4)


Bot Setttings:


XCode->Preferences->Server & Bots -> Mail

  • From Address:amitkishnani@AMITs-MacBook-Pro-4.local
  • Reply-To-Address: xcodeautomation@gmail.com
  • Outgoing Mail Server:smtp.gmail.com:587


please note that my command line "mail" command is sending mail fine - it is only that Bot's Post Integration step from which no emails are arriving , please let me know how to troubleshoot and if there are any logs ?


Thanks,

Amit

Replies

Did you get this figured out? I'm having the same issues. Sendmail works but Xcode doesn't send any emails.

echo "test1" | sendmail someone@email.com

Just found this in my logs. Xcode server uses node.js and it has a module for sending emails.


error

11:13:55.833607 -0800

node

[] Background worker reportEmail job failed: Error: self signed certificate


I don't know much about node but I will keep digging.

Fixed. I setup postfix / sendmail following these simple instructions in the link below. Skip configuring Xcode Mail settings.


https://gist.github.com/kany/c44c077881047ead8faa


(DON'T DO THIS PART) Xcode, I went to Preferences -> Server & Bots -> Mail and entered my smpt / email info here. I kept getting errors for different reasons. When I deleted all settings, everything worked.