I have a rails application running in a staging-environment, which is an accurate copy of the production. I would like to be able to send mails with ActionMailer, to test that it all works as it should, but to prevent any mistakes, I would very much like to be able to restrict the mailer from sending out to any addresses that are not on my own domain.
It doesn't seem that ActionMailer supports this from the get go, but is there a plugin or perhaps a patch of some sort, that could do this?