gem install mailcatcher-ng
mailcatcher
# View mail at http://127.0.0.1:1080
# Send mail to smtp://127.0.0.1:1025
docker run -d -p 1080:1080 -p 1025:1025 stpaquet/alpinemailcatcher
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: '127.0.0.1',
port: 1025
}