Rails schickt Mails zweimal wenn man sendmail verwendet / Rails sent mails twice when using sendmail

17th November 2011 – 88 words

One quite annoying thing, is that rails seems to send mails twice when using sendmail on Debian 5. To fix that, add to config/environments/production.rb

  config.action_mailer.delivery_method = :sendmail
  config.action_mailer.sendmail_settings = {
    :location => '/usr/sbin/sendmail',
    :arguments => "-i"
  }

Notice that arguments is only “-i”, default it is “-i -t” which makes sendmail sending again somehow


Reposted from notes.it-jobs-und-stellen.de