Project

General

Profile

Redmine - smtp using Exchange 2010

Added by Marcel Fuhrmann almost 11 years ago

Hello,

Environment:
  Redmine version                          2.1.2.stable
  Ruby version                             1.8.7 (amd64-freebsd9)
  Rails version                            3.2.8
  Environment                              production
  Database adapter                         MySQL
Redmine plugins:
  redmine_inline_attach_screenshot         0.4.2
  redmine_lightbox                         0.0.1
  redmine_people                           0.0.1


I have read the wiki about configuring smtp and several blogs and forum threads, but I'm still not able to use an Exchange 2010 account for sending mails.
The error: (535 5.7.3 Authentication unsuccessful )

My OpenNMS uses successfully this configuration:

org.opennms.core.utils.fromAddress=EMAIL-ADDRESS
org.opennms.core.utils.mailHost=FQDN-MAILSERVER
org.opennms.core.utils.mailer=smtpsend
org.opennms.core.utils.transport=smtp
org.opennms.core.utils.smtpport=587
org.opennms.core.utils.smtpssl.enable=false
org.opennms.core.utils.useJMTA=false
org.opennms.core.utils.authenticate=true
org.opennms.core.utils.authenticateUser=EXCHANGE-USER
org.opennms.core.utils.authenticatePassword=EXCHANGE-USER-PASSWORT
org.opennms.core.utils.starttls.enable=false

Can someone help me to adapt this config?

default:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: FQDN-MAILSERVER
      port: 587
      domain: DOMAIN
      authentication: :login
      user_name: EXCHANGE-USER
      password: EXCHANGE-USER-PASSWORD

I have also tried the config enable_starttls_auto: true/false without success.

But I'm already receiving mails with this Exchange account. So the account data are correct.

rake -f /usr/local/www/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" \
    host=FQDN-EXCHANGE
    username=EXCHANGE-USER \
    password=EXCHANGE-USER-PASSWORD \
    port=993 ssl=1 \
    move_on_success=SUCCESS

Thanks for help.