Email Settings - Snorby/snorby GitHub Wiki

Editing Mail Config File

In your snorby directory, you need to edit config/initializers/mail_config.rb.

In that file, two examples are given: a Gmail example and a Sendmail example. For additional details, refer to http://api.rubyonrails.org/classes/ActionMailer/Base.html.

Gmail

This option uses Gmail over TLS (authentication is encrypted):

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
  :address              => "smtp.gmail.com",
  :port                 => 587,
  :domain               => "snorby.org",
  :user_name            => "snorby",
  :password             => "snorby",
  :authentication       => "plain",
  :enable_starttls_auto => true

An important note - if TLS fails, the password will be sent in plain text.

Sendmail

This method uses sendmail configured locally on your Snorby server. The :location is the full path to the sendmail binary, and the :arguments accepts any arguments that sendmail accepts (see: man sendmail(8)).

ActionMailer::Base.delivery_method = :sendmail ActionMailer::Base.sendmail_settings = { :location => '/usr/sbin/sendmail', :arguments => '-i -t' }

Editing the Report Sender

This is configured under the Administrator account in the Snorby web interface. Go to Administration -> and change "Company email" to the email address you want your reports to come from.

Back to Snorby E-Book

⚠️ **GitHub.com Fallback** ⚠️