Setup E-Mail-Server in docker environment

I installed Nextcloud in the docker container on my Synology DS 216. So far so good ā€¦ Nextcloud can be reached over the Internet, but I cannot configure the e-mail server. I have a Bluewin and Google mail account.

I got the following error message with the Bluewin account:

With the Google account, the error message looks like this:


I changed various settings in the config.php file, but with no success.

ā€˜mail_smtpmodeā€™ => ā€˜smtpā€™,
ā€˜mail_sendmailmodeā€™ => ā€˜smtpā€™,
ā€˜mail_smtphostā€™ => ā€˜smtpauths.bluewin.chā€™,
ā€˜mail_smtpportā€™ => ā€˜465ā€™,
ā€˜mail_smtptimeoutā€™ => 30,
ā€˜mail_smtpsecureā€™ => ā€˜sslā€™,
ā€˜mail_smtpdebugā€™ => true,
ā€˜mail_smtpauthtypeā€™ => ā€˜LOGINā€™,
ā€˜mail_smtpauthā€™ => 1,
ā€˜mail_smtpnameā€™ => ā€˜name@bluewin.chā€™,
ā€˜mail_smtppasswordā€™ => ā€˜xyzā€™,

Thanks in advance for any help.

rohei