OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Improve SMTP documentation for UI setting
Oliver Günther94dad6e21e86
diff --git a/config/locales/en.yml b/config/locales/en.ymlindex e6fc01091f0..c839a9f9d7f 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -2495,7 +2495,7 @@ en:setting_smtp_authentication: "SMTP authentication"setting_smtp_user_name: "SMTP username"setting_smtp_password: "SMTP password"- setting_smtp_domain: "SMTP HELLO domain"+ setting_smtp_domain: "SMTP HELO domain"setting_activity_days_default: "Days displayed on project activity"setting_app_subtitle: "Application subtitle"setting_app_title: "Application title"diff --git a/docs/installation-and-operations/configuration/outbound-emails/README.md b/docs/installation-and-operations/configuration/outbound-emails/README.mdindex 7c60e8676c6..3305ac70606 100644--- a/docs/installation-and-operations/configuration/outbound-emails/README.md+++ b/docs/installation-and-operations/configuration/outbound-emails/README.md@@ -6,14 +6,11 @@ sidebar_navigation:# Configuring outbound emails-By default, both the docker and package-based installations will setup a postfix server to allow sending outgoing emails from your server. While it is a good starting point, it is not a recommended production setup since you will most likely run into delivery issues since your server will lack the trust of a proper email provider.-In this guide we will describe how to configure outbound emails using an external SMTP server.## Requirements-You will need to have SMTP settings ready. Those can either be from a company-SMTP server, a Gmail account, or a public provider such as+You will need to have SMTP settings ready. Those can either be from a company SMTP server, a Gmail account, or a public provider such as[SendGrid](https://www.sendgrid.com/).Taking SendGrid as an example, you would need to sign up on their website (they@@ -27,44 +24,65 @@ You can adjust those settings for other SMTP providers, such as Gmail,Mandrill, etc. Please refer to the documentation of the corresponding providerto see what values should be used.-## Package-based installation (DEB/RPM)-If you installed OpenProject with the package-based installation, simply run `sudo openproject reconfigure`, and when the email wizard is displayed, select the **SMTP** option and fill in the required details ([cf the initial configuration section](../../installation/packaged/#step-5-outgoing-email-configuration))-## Docker installation+## Configuration through the Admin UI++OpenProject allows you to configure your SMTP settings through the administration UI. Using the default admin account created when you first installed OpenProject, go to Administration > Emails and notifications.++At the bottom of this screen, you will find the following configuration form.++++## SMTP Options++These are the options that are available. Please see the [Configuration guide](../) and [Environment variables guide](../environment) on how to set these values from the command line.++| Option | Setting | ENV name | Description |+| -------------------------- | ------------------------- | ------------------------------------------ | ------------------------------------------------------------ |+| Email delivery method | email_delivery_method | `OPENPROJECT_EMAIL__DELIVERY__METHOD` | email delivery method to be used (smtp, sendmail) |+| SMTP server | smtp_address | `OPENPROJECT_SMTP__ADDRESS` | Your email SMTP server host name, for example: `smtp.example.net` |+| SMTP port | smtp_port | `OPENPROJECT_SMTP__PORT` | SMTP server port. Common options are `25` (plain) and `587` (SSL/TLS). |+| SMTP (HELO) domain | smtp_domain | `OPENPROJECT_SMTP__DOMAIN` | Fully-qualified domain name of the SMTP client. This commonly will be the host name of the OpenProject server. |+| SMTP authentication | smtp_authentication | `OPENPROJECT_SMTP__AUTHENTICATION` | Authentication method, possible values: `none`, `plain`, `login`, `cram_md5` |+| SMTP user name | smtp_user_name | `OPENPROJECT_SMTP__USER__NAME` | User name for authentication against the SMTP server (when authentication is required) |+| SMTP password | smtp_password | `OPENPROJECT_SMTP__PASSWORD` | Password for authentication against the SMTP server (when authentication is required) |+| Automatically use STARTTLS | smtp_enable_starttls_auto | `OPENPROJECT_SMTP__ENABLE__STARTTLS__AUTO` | You can enable or disable STARTTLS here in case it doesn't work. Make sure you don't login to a SMTP server over a public network when using this. Recommended to leave this on if your server supports it. Possible values: true / false |+| OpenSSL verify mode | smtp_openssl_verify_mode | `OPENPROJECT_SMTP__OPENSSL__VERIFY__MODE` | Define how the SMTP server certificate is validated. Make sure you don't just disable verification here unless both, OpenProject and SMTP servers are on a private network. Possible values: `none`, `peer`, `client_once` or `fail_if_no_peer_cert`.<br />Note: This setting can only be set through ENV/settings |+-If you installed OpenProject with Docker, here is how you would enable outbound-emails through the use of the SMTP environment variables (with SendGrid, the-`SMTP_USER_NAME` is always `apikey`. Just replace `SMTP_PASSWORD` with the API-key you've generated and you should be good to-go):++## Package-based installation (DEB/RPM)++If you installed OpenProject with the package-based installation, you can configure the above settings using the config:set helper. Please note that this will disable the settings in the administration UI.```bash-docker run -d \- -e EMAIL_DELIVERY_METHOD=smtp \- -e SMTP_ADDRESS=smtp.sendgrid.net \- -e SMTP_PORT=587 \- -e SMTP_DOMAIN=my.domain.com \- -e SMTP_AUTHENTICATION=login \- -e SMTP_ENABLE_STARTTLS_AUTO=true \- -e SMTP_USER_NAME="apikey" \- -e SMTP_PASSWORD="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" \- ...+openproject config:set OPENPROJECT_EMAIL__DELIVERY__METHOD=smtp+openproject config:set OPENPROJECT_SMTP__ADDRESS=smtp.sendgrid.net+openproject config:set OPENPROJECT_SMTP__PORT=587+openproject config:set OPENPROJECT_SMTP__DOMAIN=my.domain.com+openproject config:set OPENPROJECT_SMTP__AUTHENTICATION=login+openproject config:set OPENPROJECT_SMTP__ENABLE__STARTTLS__AUTO=true+openproject config:set OPENPROJECT_SMTP__USER_NAME="apikey"+openproject config:set OPENPROJECT_SMTP__PASSWORD="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"```-## Available configuration options-* `email_delivery_method`: The way emails should be delivered. Possible values: `smtp` or `sendmail`-## SMTP Options+## Docker installation-Please see the [Configuration guide](../) and [Environment variables guide](../environment) on how to set these values.+If you installed OpenProject with Docker, here is how you would enable outbound emails through the use of the SMTP environment variables (with SendGrid, the `SMTP_USER_NAME` is always `apikey`. Just replace `SMTP_PASSWORD` with the API key you've generated and you should be good to+go). Please note that this will disable the settings in the administration UI.-* `smtp_address`: SMTP server hostname, e.g. `smtp.example.net`-* `smtp_port`: SMTP server port. Common options are `25` and `587`.-* `smtp_domain`: The domain told to the SMTP server, probably the hostname of your OpenProject instance (sent in the HELO domain command). Example: `example.net`-* `smtp_authentication`: Authentication method, possible values: `plain`, `login`, `cram_md5` (optional, only when authentication is required)-* `smtp_user_name`: Username for authentication against the SMTP server (optional, only when authentication is required)-* `smtp_password` (optional, only when authentication is required)-* `smtp_enable_starttls_auto`: You can disable STARTTLS here in case it doesn't work. Make sure you don't login to a SMTP server over a public network when using this. This setting can't currently be used via environment variables, since setting options to `false` is only possible via a YAML file. (default: true, optional)-* `smtp_openssl_verify_mode`: Define how the SMTP server certificate is validated. Make sure you don't just disable verification here unless both, OpenProject and SMTP servers are on a private network. Possible values: `none`, `peer`, `client_once` or `fail_if_no_peer_cert`+```bash+docker run -d \+ -e OPENPROJECT_EMAIL__DELIVERY__METHOD=smtp \+ -e OPENPROJECT_SMTP__ADDRESS=smtp.sendgrid.net \+ -e OPENPROJECT_SMTP__PORT=587 \+ -e OPENPROJECT_SMTP__DOMAIN=my.domain.com \+ -e OPENPROJECT_SMTP__AUTHENTICATION=login \+ -e OPENPROJECT_SMTP__ENABLE__STARTTLS__AUTO=true \+ -e OPENPROJECT_SMTP__USER_NAME="apikey" \+ -e OPENPROJECT_SMTP__PASSWORD="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" \+ ...+```diff --git a/docs/installation-and-operations/configuration/outbound-emails/smtp.png b/docs/installation-and-operations/configuration/outbound-emails/smtp.pngnew file mode 100644index 00000000000..6f06d47dd92Binary files /dev/null and b/docs/installation-and-operations/configuration/outbound-emails/smtp.png differdiff --git a/docs/installation-and-operations/installation/packaged/README.md b/docs/installation-and-operations/installation/packaged/README.mdindex 7e96802d230..f1c835685ee 100644--- a/docs/installation-and-operations/installation/packaged/README.md+++ b/docs/installation-and-operations/installation/packaged/README.md@@ -434,35 +434,14 @@ For more information, [see our help on repositories](../../../user-guide/reposit-## Step 5: Outgoing email configuration-OpenProject requires a setup for sending outgoing emails for notifications, such as updates on work packages, password resets, or other notifications you and your users receive.----The wizard supports the following options:--### **Sendmail** (default)--Uses a local sendmail installation or sets up a local-only postfix MTA in case you do not have sendmail.--Easiest setup as it does not require an SMTP configuration, but your Mails may not be delivered consistently depending on your mail accounts or firewall setup.--### **SMTP** (recommended for production systems)--Allows you to connect to a SMTP host through authentication types `NONE`, `PLAIN,` `LOGIN`, or `CRAM-MD5`. Use this if you have a dedicated mail account to use for delivering OpenProject mail, or when sendmail does not work due to your local firewall / mail relay setup.--### **Skip** (not recommended)--Does not set up mail configuration. You can configure the mail setup in OpenProject by visiting `openproject.example.com/settings?tab=notifications` in your installation. For more information, [visit our help page on this topic](../../../system-admin-guide/system-settings/).--## Step 6: Administrator email+## Step 5: Administrator emailThe wizard will ask you for an administrative email address so that it can create the administrator account with that email for the initial login. Enter your email address to have it tied to the admin account.-## Step 7: Memcached server+## Step 6: Memcached serverOpenProject heavily relies on caching, which is why the wizard suggests you to install a local memcached server the OpenProject instances can connect to. You should always set this to `install` unless you have a reason to configure another caching mechanism - for example when configuring multiple shared instances of OpenProject.@@ -484,3 +463,13 @@ You can then log in using the default user/password combination:* password = `admin`You will be asked to change this password immediately after the first login.++++## Post-installation configuration++Here are some pointers to related documentation that you will need to get started:++- [Set up outgoing email notifications (SMTP, sendmail)](../../configuration/outbound-emails/)+- [Integrate an external authentication provider (LDAP/AD, SAML, OpenID)](../../../system-admin-guide/authentication/)+diff --git a/packaging/scripts/postinstall b/packaging/scripts/postinstallindex 4ad5f529595..818d260cf1c 100644--- a/packaging/scripts/postinstall+++ b/packaging/scripts/postinstall@@ -1,6 +1,6 @@#!/bin/bash -e-# Apply SMTP options given in the packager wizard to the settings within+# Apply previous SMTP options given in the packager wizard to the settings within# the database. This will override existing settings.# The user can just choose `skip` during `reconfigure` if they do not want that.