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