Private openhab cloud - email sending

Hi,

I’ve managed to setup a docker container in a VPS. The thing is missing is the mail support. In the config there are 2 entries regarding that:

    "mail": {
      "host" : "smtp",
      "port" : 465,
      "user" : "my@openhab.org",
      "pass" : "123_openHAB"
    },
    "mailer": {
        "host" : "smtp.openhab.org",
        "port": 465,
        "secureConnection": true,
        "user": "my@openhab.org",
        "password": "123_openHAB",
        "from": "My openHAB <my@openhab.org>"
    },

Using the my smtp details in both configs, doesn’t make the server send any emails, although there is the log:

ohcloud-app    | 2020-05-27 12:46:27:2727 info: openHAB-cloud: Emulating sendEmail to xxxx@yyyy.zzz about Password recovery

Any thoughts of what might be the issue?

Thanks.

When running your own myopenHAB service, you must not use the openhab.org smtp server!

@hmerk
This is the default config, present on the repo. Obviously, and as I mentioned, I used my own credentials.
Thanks for the hint anyway.

have a look to the file mailer.js.
In case you get this message productionEnv is not set to ‘production’ and thus it is just emulating and not sending out the mail.

@Wolfgang_S
Thanks! To put the host in production a environment var must be set. Just updated the docker-compose file with:

    environment:
      NODE_ENV: production

And it was done!