Proper Docker Email Setup?

Hello,

I’m trying to get email notifications working on my Xibo instance running on docker but I can’t seem to get anything to be sent out to anyone. I originally tried using gmail with less secure apps since my organization uses Google Workspace to send emails. Couldn’t get anything so I tried an Outlook account and that also didn’t work.

Finally I attempted to send emails from my self hosted email I have in my homelab. I checked the logs of the email server and I can see that the xibo server is authenticating to my mail server but doesn’t send any emails out to anyone and then it disconnects from my mail server. I’m not sure if there is some sort of bug with Xibo or if there if I’m just not doing something correctly. Below is the email setup in my config.env:

## SMTP Server Hostname
CMS_SMTP_SERVER=MAIL.MYDOMAIN.COM:587
## SMTP Username
CMS_SMTP_USERNAME=cms@MYDOMAIN.COM
## SMTP Password
CMS_SMTP_PASSWORD=***********************
CMS_SMTP_USE_TLS=NO
CMS_SMTP_USE_STARTTLS=YES
CMS_SMTP_REWRITE_DOMAIN=
CMS_SMTP_FROM_LINE_OVERRIDE=NO

I’ve also:

  • checked email alerts in the Maintenance tab in Settings
  • in Network tab added my the persons email that will receive alerts
  • set sending email to match the config.env email
  • In Users tab checked Receive System Notifications and Display Notifications
  • In Features on the Users tab checked Notifications as enabled

Thanks for the help.

I am using O365. I have added as server

SMTP Server Hostname

CMS_SMTP_SERVER=domain-com.mail.protection.outlook.com:25

In our O365 exchange i have added the server (public IP) of our CMS server as relay.

On the CMS, you’re using an email account and password which exist on your mail server, and which it’s configured to accept external mail from the IP in question? (Yes, I know those are silly questions. :-))

No, if you add your CMS IP address to your SPF record of your DNS and you add CMS IP address to the mail relay to you O365… you will bypass the account/username. But, if you are missing DKIM and DMARC, chances are high you are likely going to send a lot op spams by those hackers.

I have not been able to use the username/password settings.

I have left the username/pass empty

I’ve ended up setting the Xibo servers IP as a relay with our Google Workspace and made it so authentication is not required but still getting nothing. I even blanked the username and password.

I am able to send out emails with msmtp on the server so I’m not sure what is going on here.

The logs for Xibo doesn’t show it even trying to send emails. I double checked and maintenance emails are checked, display maintenance emails are also checked, network settings for email is setup. All alerts go through the notification center perfectly fine and I always get alerts while logged into the CMS just no emails.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.