title: Why sendmail setting is not sending mail in ruby on rails 3
body: <p>I am trying to send mail using sendmail settings but i am not receiving the mail I can see the mail sent in development log.</p>
  
  <p>config/application.rb </p>
  
  <pre><code>    config.action_mailer.delivery_method = :sendmail
      config.action_mailer.sendmail_settings = {
        :location =&gt; '/usr/sbin/sendmail',
        :arguments =&gt; '-i -t'
     }
     config.action_mailer.perform_deliveries = true
     config.action_mailer.raise_delivery_errors = true
  </code></pre>
  
  <p>mailers/Notifier.rb</p>
  
  <pre><code>class Notifier &lt; ActionMailer::Base
     default :from =&gt; "deepika@xxx.com"
     def welcome_email
       mail(:to =&gt; "deepika@xxx.com",   :subject =&gt; "Welcome to My Site test mail")
     end 
  end
  </code></pre>
  
  <p>And i am calling <code>Notifier.welcome_email.deliver</code> from index method.</p>
  
  <p>I can see log </p>
  
  <pre><code>Sent mail to deepika@xxx.com (339ms)
  Date: Wed, 10 Apr 2013 15:16:33 +0530
  From: deepika@xxx.com
  To: deepika@xxx.com
  Message-ID: &lt;516534f983356_30f3262c7c84610d2@cybage-virtual-machine.mail&gt;
  Subject: Welcome to My Site test mail
  Mime-Version: 1.0
  Content-Type: text/html;
   charset=UTF-8
  Content-Transfer-Encoding: 7bit
  
  &lt;p&gt;Thanks for joining and have a great day!&lt;/p&gt; 
  </code></pre>
  
  <p>But i am not receiving mail.</p>
  
  <p>when i do <code>service sendmail status</code> i am getting</p>
  
  <pre><code>MSP: is run via cron (20m)
  MTA: 123995 /usr/sbin/sendmail-mta -Am -L sm-mta -bd -q10m
  UID        PID  PPID  C STIME TTY          TIME CMD
  root     123995     1  0 15:36 ?        00:00:00 sendmail: MTA: accepting connections          
  Daemon Status: (process 132996) Queue runner
  
  Current number of children: 1
  QueueDir free disk space (in blocks): 285222800
  Load average: 1
  Child Process 139595 Status: accepting connections
  Child Process 144035 Status: console socket child
  
  QUE: Same as MTA
  </code></pre>
  
  <p>Also when i do <code>vi /var/mail/root</code>, I am getting following</p>
  
  <p>This is a MIME-encapsulated message</p>
  
  <p>--r3A9kDux012954.1365587178/cybage-virtual-machine.cybage.com</p>
  
  <pre><code>The original message was received at Wed, 10 Apr 2013 15:02:21 +0530
  from localhost
  with id r3Adsdsd9WLU5012559
  
     ----- The following addresses had permanent fatal errors -----
  &lt;deepika@xxx.com&gt;
      (reason:   Client was not authenticated)
  
     ----- Transcript of session follows -----
  ... while talking to mail.xxx.com.:
  &gt;&gt;&gt; MAIL From:&lt;&gt; SIZE=268814
  &lt;&lt;&lt; 530 5.7.1 Client was not authenticated
  Service unavailable
  </code></pre>
  
  <p>Can you please tell me what is the reason behind not receiving mail.</p>