Skip to main content

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!

  1. Run over CLI:
    sudo bash /var/scripts/menu.sh
  2. Choose Server Configuration -> SMTP Mail
  3. Choose to install/reinstall SMTP Mail
  4. 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
    1. Select Manual if you want to use a mail-address from a different mail provider.
    2. Enter the SMTP URL (e.g. smtp.mail.de)
    3. Choose the encryption protocol (e.g. SSL)
    4. Choose that you want to use the default port (the default port should be correct most of the time)
    5. Most mail servers need credentials, so answer that your mail server needs credentials
  5. Enter your SMTP username (the mail account that will be used to send mails e.g. server@mail.de)
  6. Enter the password for your mail account
  7. Enter the recipient mail-address that will receive all mails that are sent by the server (e.g. your main mail-address)
  8. Confirm your settings
  9. It should report now that a testmail was sent successfully.
  10. Confirm that you want to use the same mail server settings in your Nextcloud
  11. Select the admin user that shall get the recipient's mail-address
  12. It should report now that everything was set up correctly!