Krzysztof Knapik Tech Lead @ Lunar Logic Ruby & JS consultant @ infakt @knapo github.com/knapo
https://blog.serverdensity.com/replacing-rabbitmq-with-mongodb
# Gemfile gem 'mongo_mailer', require: 'mongo_mailer/rails'
# environment file config.action_mailer.delivery_method :mongo_queue
$ bundle exec rails generate mongo_mailer #=> config/mongo_mailer.yml.example
# config/deploy.rb require 'mongo_mailer/capistrano' $ cap mongo_mailer:start|stop|restart
# rails app $ bundle exec mongo_mailer start|stop|restart
# independent app $ bundle exec worker start|stop|restart
config/mongo_mailer.yml
base_delivery_method: smtp base_delivery_settings: user_name: "username" password: "apikey" domain: "example.com" address: "smtp1.example.com" port: 587 authentication: plain emergency_delivery_method: smtp emergency_delivery_settings: user_name: "username" password: "apikey" domain: "example.com" address: "smtp2.example.com" port: 587 authentication: plain