Struggling with smtp setup in "nextcloud"

I just have some fun with “nextcloud” . After some install/remove/reinstalls (using wizard,cli…) in the end, fine, it is running. So i wanted notification using smtp.turris.cz in same way as it is used by “create-notification” or by my “up/down.sh” script for openvpn.
After some time , try-fail-retry … and inspecting various scripts and configs i found working setup.

EmailServerOptions

mode = smtp, encrypt=ssl/tls
address=“sender_name value from /etc/config/user_notify”
domain=notify.turris.cz (domain_name value from /etc/config/user_notify)
method_auth=login , force_auth=yes
address_server=smtp.turris.cz:465 (from /usr/bin/notifier)
username=“output of ‘atsha204cmd serial-number’ command”
password=“output of ‘cat /etc/sentinel/mailpass’ command”

1 Like