How to set up SMTP Mail to enable your server to send mails?
In order to get notified by mail for backups, disk errors and such, you should configure your server to send mails.
info
Before you can start, please get a mail account that your server will use to send mails.
note
For german users is recommended: mail.de and posteo.org
Please inspect your mail providers documents how to connect over SMTP before continuing!
- Run over CLI:
sudo bash /var/scripts/menu.sh
- Choose
Server Configuration
->SMTP Mail
- Choose to install/reinstall SMTP Mail
- either mail.de setup
Select
mail.de
as your mail provider if you've created an account there and want to use it for sending mails.or complete Manual setup- Select
Manual
if you want to use a mail-address from a different mail provider. - Enter the SMTP URL (e.g.
smtp.mail.de
) - Choose the encryption protocol (e.g.
SSL
) - Choose that you want to use the default port (the default port should be correct most of the time)
- Most mail servers need credentials, so answer that your mail server needs credentials
- Select
- Enter your SMTP username (the mail account that will be used to send mails e.g.
server@mail.de
) - Enter the password for your mail account
- Enter the recipient mail-address that will receive all mails that are sent by the server (e.g. your main mail-address)
- Confirm your settings
- It should report now that a testmail was sent successfully.
- Confirm that you want to use the same mail server settings in your Nextcloud
- Select the admin user that shall get the recipient's mail-address
- It should report now that everything was set up correctly!