Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>According to chapters 5 and 5.1 of ActionMailer official doc : <a href="http://guides.rubyonrails.org/action_mailer_basics.html" rel="nofollow">http://guides.rubyonrails.org/action_mailer_basics.html</a></p> <p>We can see that there are no ':exim4' option available as 'delivery_method'.</p> <p>So I would suggest to "cheat" ActionMailer that he is using sendmail (though he will use exim4). Use the following configuration in your config/enviroments/production.rb file :</p> <pre><code>config.action_mailer.delivery_method = :sendmail config.action_mailer.sendmail_settings = { :location =&gt; '/usr/sbin/exim4', :arguments =&gt; '-i' } config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true </code></pre> <p>Arguments match the following exim4 options :</p> <ul> <li><strong>-t option</strong> causes the recipients of the message to be obtained from the To:, Cc:, and Bcc: header lines in the message instead of from the command arguments.</li> <li><strong>-i option</strong> prevents a line containing just a dot from terminating the message. Only an end-of-file does so.</li> </ul> <p>Don't use the -t option.</p> <p>In order to configure properly your Exim4 deamon, I suggest this quick how-to : <a href="http://noosfero.org/Development/MailSending" rel="nofollow">http://noosfero.org/Development/MailSending</a></p> <p>I highly recommend you choose "<strong>smarthost</strong>" on the first screen instead of "Internet site".</p> <p>This is because mail providers of the Internet (gmail, yahoo, etc...) do block any e-mails that come from an unkown IP adresses on Internet by default (this include your new server IP adress of course).</p> <p>If you choose 'smarthost' your server will have to connect to an existing (and trusted) mail server (gmail, yahoo, etc...) in order to forward its own e-mail messages. This will ensure your e-mails get their ways up to their destination.</p> <p>=== UPDATE</p> <p>I had problem making it working with -t optin since some version of rails (3.2). I had the following error in my <strong>/var/www/my_app/log/production.log</strong> :</p> <pre><code>Errno::ECONNREFUSED (Connection refused - connect(2) for "localhost" port 25) </code></pre> <p>So I removed the -t option as rails was not including anymore the To: field in the message and rather sent it in the command line.</p> <p>I found some other developper having a similar issue on this app : <a href="https://github.com/gitlabhq/gitlabhq/issues/4866" rel="nofollow">gitlabhq</a></p> <p>I hope this help people to make rails working with exim4.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload