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

1 minute read

Out Of Date Warning

This article was published on 17/11/2011, this means the content may be out of date or no longer relevant.
You should verify that the technical information in this article is still up to date before relying upon it for your own purposes.

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