title: Rails w/devise authentication what is the configuration of iRedMail?
body: <p>We're using successfully iRedMail in 4 email servers (8 domains) for our own email accounts.</p>
  
  <p>We develop web apps based on RoR. We would like to know what is the iRedMail configuration for sending to users, via rails and devise gem, <a href="https://github.com/plataformatec/devise" rel="nofollow noreferrer">https://github.com/plataformatec/devise</a>, the password reminds, emails confirmations, etc.. What is the difference between address and domain? How to test?</p>
  
  <p>After Googling and posting in iRedMail forum unsuccessful, we only find smt gmail config, please find below.</p>
  
  <p>Thanks in advance!</p>
  
  <p>==== DEVISE config/environments/development.rb ====</p>
  
  <p>SMTP GMAIL CONFIG:  </p>
  
  <pre><code>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 =&gt; 'localhost:3000' }
  
  config.action_mailer.smtp_settings = {
  
  :address =&gt; "smtp.gmail.com",
  
  :port =&gt; 587,
  
  :domain =&gt; "mail.google.com",
  
  :user_name =&gt; "my@gmail.com",
  
  :password =&gt; "mypassword",
  
  :authentication =&gt; :plain,
  
  :enable_starttls_auto =&gt; true
  
  }
  </code></pre>
  
  <p>==== BACK-END ====</p>
  
  <ol>
  <li>iRedMail 0.9.7 MARIADB edition.</li>
  <li>Debian GNU/Linux 9 (stretch) in a fresh OVZ-6GB</li>
  <li>Mysql/MariaDB w/adminer</li>
  <li>Apache/2.4.25 (Debian)</li>
  <li>PHP 7.0.19-1</li>
  <li>Ruby 2.5.0, Rails 5.1.5 and Phusion Passenger 5.2.1</li>
  <li>No errors: /var/log/iredapd/iredapd.log</li>
  </ol>
  
  <p>=============================</p>