Synology 218+ | Xibo 1.8x | Docker | E-Mail Notification/Task

Hallo, after docker/xibo 1.8.2 (synology DSM 6.1) smooth run, i´m trying to get e-mail notification too.
Meanwhile i have tested varios php5.6/php7, xibo and docker-xibo-cms configurations. In which i think, a separate synology-php-configuration is´nt needed for smtp-sending over xibo to gmail as relay. Right?

Shure, the port router-forwarding is done on 25, 587 and 465.
A small test with the synology e-mail-server and mail-station to gmail was succesful.
Now my xibo environment:

  1. USER

    EMAIL: name@xye.de | SYSTEM-NOTIFICATION: checked

  2. SETTINGS

    MAINTENANCE: ON, E-Mail NOTIFICATION: ON
    ADMIN EMAIL: name@xye.de
    SENDING EMAIL: othername@gmail.com
    TIMEOUT: OFF

  3. DOCKER xibo-cms Container /Environment

    CMS_SERVER - smtp.gmail.com:587
    CMS_SMTP_USERNAME - othername (gmail konto)
    CMS_SMTP_PASSWORD - password for othername
    CMS_SMTP_HOSTNAME - gmail.com
    CMS_SMTP_USE_TLS - YES
    CMS_SMTP_USE_STARTTLS - YES

  4. TASK INFORMATION CENTER

    Here are several alerts collected. That`s right. The Task-Manager is running well.
    But i´m get nothing to read on GMAIL.

WHAT CAN I DO ??? I´m somewhat clueless.

You don’t need to do any port forwarding for email.

The container connects out to GMail servers. It doesn’t run an email server itself.

You need to make sure you’ve enabled support for “less secure apps” in your Google account. There’s a comment in the config.env file to that effect:

Your username for Gmail will be your Gmail email address, (ie othername@gmail.com, not just othername)

Ok Alex. Many thanks for your reply. I have try it, but nothing was happen.
Sure, gmail enabled “less secure apps”.

For better understanding:
Gmail is working as relay, wich transmit the massage to the user email-adress (name@xye.de).
I downloaded the running docker container (cms + xmr) from : /xibosignage.
Your config.env.template above is correspondending with xibo-cms the environment variables like shows my picture below. Right?
I have pointed two unclear variables.
CMS_SERVER_NAME: place for my DynDNS-Name ??
CMS_SERVER: is that the same like CMS_SMTP_SERVER ??

Thanks again. Sten

The correct variables for SMTP can be found in the config.env file:

CMS_SMTP_SERVER=smtp.gmail.com:587
## SMTP Username
CMS_SMTP_USERNAME=youraccount@gmail.com
## SMTP Password
CMS_SMTP_PASSWORD=yourpassword
## Use a TLS Connection YES/NO
CMS_SMTP_USE_TLS=YES
## Use a STARTTLS Connection YES/NO
CMS_SMTP_USE_STARTTLS=YES
## Rewrite domain (the domain your email will appear to come from)
CMS_SMTP_REWRITE_DOMAIN=gmail.com
## Hostname that we should identify ourself to the remote server as
CMS_SMTP_HOSTNAME=gmail.com
## Can the From line be overridden in the outbound email
##  NB GMail will rewrite the From address anyway so it's not important
## for GMail - YES/NO
CMS_SMTP_FROM_LINE_OVERRIDE=YES

CMS_SERVER_NAME is related to the Apache configuration. You want that set to the DNS name you use to access the server (so yes likely your DynDNS hostname).

CMS_SERVER isn’t a variable we define.

Yes, Alex, now the notification is smooth running.
What i have done? I change the predefined variable (CMS_SERVER) to
the right expression (CMS_SMTP_SERVER). I thought, that is not my role to change any predefined.
Anyway… its running now. Thank you Alex.

Another else: The messages comes as wrong formatted code.
I would mean any us-ascii or similar, but it should be german.
Where can i change it?
Sample: Email Alarm f��r Bildschirm

We use SSMTP for mail delivery in the container.

I don’t see any options regarding character sets on that:

https://linux.die.net/man/5/ssmtp.conf

Ok. It doesn’t greatly matter. Thank you Alex! Greetings from Germany.

1 Like

Hi sten,

How dit you install xibo with docker on a synology nas?

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