Configure SMTP for outbound emails
- Google Cloud Platform doesn’t allow SMTP traffic through default ports: 25, 465, 587. Check Google cloud documentation to learn how to use a VPN to bypass these restrictions or use a different port for sending emails from your application.
Configure the email settings in the /opt/bitnami/apps/openproject/htdocs/config/configuration.yml file.
A sample configuration for a Gmail account is shown below. Replace USERNAME and PASSWORD with your Gmail account username and password respectively.
production: email_delivery_method: "smtp" smtp_enable_starttls_auto: true smtp_address: "smtp.gmail.com" smtp_port: 587 smtp_domain: "smtp.gmail.com" smtp_authentication: :plain smtp_user_name: USERNAME@gmail.com smtp_password: PASSWORD
Once the configuration.yml file is changed, you need to restart Apache.
$ sudo /opt/bitnami/ctlscript.sh restart apache
To receive all notifications, set an extra configuration value in the administration panel. Click the “Administration -> My account -> Email notifications” menu item and set “For any event on all my projects”.
To change the OpenProject URL value of the sent emails, navigate to “Administration -> Settings -> General” and change the “Host name” value.
To configure the application to use other third-party SMTP services for outgoing email, such as SendGrid, refer to the FAQ.
NOTE: If you are using Gmail as the outbound email server and have experienced issues trying to send emails correctly, check the Gmail SMTP troubleshooting page to learn the causes of these issues and how to solve them.