# Does DISCOURSE\_SMTP\_ADDRESS do MX lookup

**URL:** <https://meta.discourse.org/t/does-discourse-smtp-address-do-mx-lookup/37839>\
**Category:** Product Support\
**Created:** [12 בינואר,‏ 2016,‏ 4:28pm UTC](https://meta.discourse.org/t/does-discourse-smtp-address-do-mx-lookup/37839 "2016-01-12T16:28:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Blaisorblade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blaisorblade/32/107357_2.png) [@Blaisorblade](https://meta.discourse.org/u/Blaisorblade)\
**Post date:** [12 בינואר,‏ 2016,‏ 5:31pm UTC](https://meta.discourse.org/t/does-discourse-smtp-address-do-mx-lookup/37839/2 "2016-01-12T17:31:59Z")

</div>

For extra fun, I searched a bit more. [Action Mailer Basics — Ruby on Rails Guides](http://guides.rubyonrails.org/action_mailer_basics.html) says:

> For a complete writeup of possible configurations see the Configuring Action Mailer in our Configuring Rails Applications guide.

But [Configuring Rails Applications — Ruby on Rails Guides](http://guides.rubyonrails.org/configuring.html#configuring-action-mailer) still only has:

> :address - Allows you to use a remote mail server. Just change it from its default “localhost” setting.

Finally, I ended up on  
[rails/actionmailer/lib/action\_mailer/delivery\_methods.rb at c4f8ce53b1f9af9585aeec9bbb0c66fc9c48ec1b · rails/rails · GitHub](https://github.com/rails/rails/blob/c4f8ce53b1f9af9585aeec9bbb0c66fc9c48ec1b/actionmailer/lib/action_mailer/delivery_methods.rb), then on Mail::SMTP ([docs](http://www.rubydoc.info/github/mikel/mail/master/Mail/SMTP)), then on Net::SMTP ([docs](http://ruby-doc.org/stdlib-2.0.0/libdoc/net/smtp/rdoc/Net/SMTP.html)). Both the docs and (especially) the sources of this last library suggest no MX lookup is done. If none of the many wrappers do that, my sysadmin won’t be happy.

> <https://github.com/ruby/ruby/blob/3e92b635fb5422207b7bbdc924e292e51e21f040/lib/net/smtp.rb#L541-L554>

---

_[View the full topic](https://meta.discourse.org/t/does-discourse-smtp-address-do-mx-lookup/37839)._
