# ActionMailer works for gmail/yahoo, but not for other email addresses...HELP!

**URL:** <https://www.ruby-forum.com/t/actionmailer-works-for-gmail-yahoo-but-not-for-other-email-addresses-help/163173>\
**Category:** Rails\
**Created:** [March 17, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/actionmailer-works-for-gmail-yahoo-but-not-for-other-email-addresses-help/163173 "2009-03-17T23:04:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tony](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@tony](https://www.ruby-forum.com/u/tony)\
**Post date:** [March 17, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/actionmailer-works-for-gmail-yahoo-but-not-for-other-email-addresses-help/163173/1 "2009-03-17T23:04:28Z")

</div>

I have a rails app that can send emails to gmail, yahoo accounts. But  
when it comes to more obscure accounts like removed\_email\_address@domain.invalid or  
removed\_email\_address@domain.invalid, the mail never arrives even though the log shows that  
the email was sent. Any ideas why this may be happening?

I have sent an email directly through the same web server through the  
command line using

mail -s and that worked. Why doesn’t it work through my rails app?

here are my configuration settings (mostly default)

# Disable delivery errors, bad email addresses will be ignored

config.action\_mailer.delivery\_method = :smtp  
config.action\_mailer.raise\_delivery\_errors = true  
config.action\_mailer.perform\_deliveries = true  
config.action\_mailer.default\_charset = “utf-8”

config.action\_mailer.smtp\_settings = {  
:address =\> “localhost”,  
:port =\> 25,  
:domain =\> “[my-app.com](http://my-app.com)”  
}

help please!

thanks  
Tony

---

<div class="post-metadata">

**Author:** ![tony](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@tony](https://www.ruby-forum.com/u/tony)\
**Post date:** [March 18, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/actionmailer-works-for-gmail-yahoo-but-not-for-other-email-addresses-help/163173/2 "2009-03-18T19:36:02Z")

</div>

help! anyone?
