Topic: SMTP configuration for sending rails-devise emails
==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====First at all, thanks for providing freely an efficient email server.
We're using iRedMail in 4 email servers (8 domains) for our own email accounts.
We develop web apps (mx.coopeu.com) based on RoR.
We would like to know what is the iRedMail configuration for sending, via rails and devise gem, the password reminds, emails confirmations,... .
After Googling, we're posting here because we only find smt gmail config, please find below, of the authentication based on gem devise: https://github.com/plataformatec/devise.
Thanks in advance,
Ferran
==== DEVISE config/environments/development.rb ====
Our config: config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
SMTP GMAIL CONFIG:
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "mail.google.com",
:user_name => "my@gmail.com",
:password => "mypassword",
:authentication => :plain,
:enable_starttls_auto => true
}
==== Required information ====
- 0.9.7 MARIADB edition.
- Debian GNU/Linux 9 (stretch) in a fresh OVZ-6GB
- Mysql/MariaDB w/ adminer
- Apache/2.4.25 (Debian)
- PHP 7.0.19-1
- Ruby 2.5.0, Rails 5.1.5 and Phusion Passenger 5.2.1
- No errors: /var/log/iredapd/iredapd.log
=============================
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.