Redmine notifications and incoming email with Office 365 or Gmail
Redmine sends issue notifications through an SMTP server, and can create and update issues from email by reading a mailbox over IMAP or POP. Both sign in with a username and password – Redmine has no OAuth option for email – so they can’t connect to Microsoft 365 or Gmail directly.
With Auth-Email, you edit configuration.yml (and your receive_imap task’s options, if you use one). No plugins or code changes are needed.
Before you start: link the mailbox in your Auth-Email dashboard, and choose a password for it. That is the password you’ll enter in Redmine – not your mailbox password.
For a shared address such as redmine@, see account delegation and shared mailboxes.
Step 1: Configure outgoing email
Redmine’s SMTP settings are in config/configuration.yml (copy configuration.yml.example if you don’t have one). Show the settings for an account provided by Outlook:
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "outlook.auth-email.com"
port: 465
ssl: true
authentication: :login
domain: "yourdomain.com"
user_name: "redmine@yourdomain.com"
password: "your-auth-email-password"
- address:
outlook.auth-email.com - port:
465, withssl: truefor a secure connection. Remove anyenable_starttls_autoline - domain: Your own domain, used to identify your server
- user_name: The linked mailbox’s full email address
- password: The password you chose in Auth-Email
Restart Redmine after saving the file. Then, in Redmine, go to Administration > Settings > Email notifications, set Emission email address to the linked mailbox’s address (or an address that the mailbox is allowed to send as), save, and click Send a test email.
Step 2: Configure incoming email (optional)
Skip this step if you don’t create or update issues by email. Redmine reads a mailbox when you run its redmine:email:receive_imap (or receive_pop3) task, usually from cron:
rake redmine:email:receive_imap RAILS_ENV="production" \
host=outlook.auth-email.com port=993 ssl=1 \
username=redmine@yourdomain.com password=your-auth-email-password \
project=your-project
Use outlook.auth-email.com as the host, with port 993 and ssl=1. For POP, use receive_pop3 with port 995 instead. Add any other options you already use, such as move_on_success or unknown_user.
Troubleshooting
- “535 Authentication failed” (Net::SMTPAuthenticationError): check that
user_nameis the full email address, and thatpasswordis the one you chose in Auth-Email (not your mailbox password) - “Net::ReadTimeout” or “wrong version number”: check that the port is
465withssl: true, and that there is noenable_starttls_autoortlsline. Make sure your Redmine server can make outgoing connections on that port - “Sender address rejected” or “SendAsDenied”: the Emission email address must be the linked mailbox, or an address that the mailbox is allowed to send as
For other errors, such as Microsoft 365 reporting that SMTP AUTH is disabled, see fixing common errors. Your account’s connection page in the Auth-Email dashboard also shows whether Redmine has connected, and explains any error it received. Still stuck? Email us – we’ll help you get it working.
Related articles
Try Auth-Email with Redmine
Link your mailbox, update configuration.yml, and send a test email from Redmine’s settings.
Start your free trial →No credit card needed. Check that it works, including sending yourself test messages, before you pay.