# Application to replay through Exchange 2007

**URL:** <https://www.ruby-forum.com/t/application-to-replay-through-exchange-2007/195844>\
**Category:** Rails\
**Created:** [October 1, 2010, 12:44am UTC](https://www.ruby-forum.com/t/application-to-replay-through-exchange-2007/195844 "2010-10-01T00:44:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suriya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@Suriya](https://www.ruby-forum.com/u/Suriya)\
**Post date:** [October 1, 2010, 12:44am UTC](https://www.ruby-forum.com/t/application-to-replay-through-exchange-2007/195844/1 "2010-10-01T00:44:52Z")

</div>

I have a developer who using Ruby on Rails to develop application for  
our company. I’m work as Exchange admin. The developer will develop an  
application (intranet) which will trigger email and relay via our  
exchange 2007, so that staff able to receive email from intranet.  
Currently we having problem with sending mail portion. The developer  
usinf Action Mailer like below:

Address = [smtp.domain.com](http://smtp.domain.com)  
User\_name = removed\_email\_address@domain.invalid  
Password = xxxx  
domain = [domain.com](http://domain.com)

Every time, this application try to relay email, it will show an  
authentication error. The develope show the error to me. From exchange  
side, I’m already trusted the application IP address to allow it relay  
email.

May some body help on this, since I’m not famaliar with ruby.

---

<div class="post-metadata">

**Author:** ![Suriya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@Suriya](https://www.ruby-forum.com/u/Suriya)\
**Post date:** [October 2, 2010, 6:37pm UTC](https://www.ruby-forum.com/t/application-to-replay-through-exchange-2007/195844/2 "2010-10-02T18:37:21Z")

</div>

Actually they try using this:

```
#########################################################
# Email settings.
#########################################################
email_config = <<-EOF
  ActionMailer::Base.delivery_method = :smtp
  ActionMailer::Base.smtp_settings = {
    :address => ?
    :port => ?
    :authentication => ?
    :user_name => ?
    :password => ?
    :domain => ?
  }

```

and when they try to use:

ActionMailer::Base.delivery\_method = :smtp  
ActionMailer::Base.smtp\_settings = {  
:address =\> ‘mail.domain.no’,  
:port =\> ‘25’,  
:domain =\> ‘domain here’  
}

the application will hangs and generated error. They try to use  
external smtp, the app. able to relay the email
