A small SMTP Proxy Server
Add this line to your application's Gemfile:
gem 'smtp_proxy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install smtp_proxy
Generate the initializer
$ ruby script/generate smtp_proxy install
or
$ rails g smtp_proxy install
Call the smtp_proxy from the root of your rails application.
Implement the allowed? function in the generated initializer to restrict the IP addresses that can use your proxy.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request