title: How to configurate msmtprc for each user
body: <ul>
  <li>I have a Ubuntu server with nginx and php-fpm;</li>
  <li>Need to configure msmtp for each user to work with sites.
  The manual says:</li>
  </ul>
  <blockquote>
  <p>You need to have a .msmtprc file in the home of every users who want
  to send mail (for example if you want to send mails as root), or
  alternatively you can use a system wide /etc/msmtprc</p>
  </blockquote>
  <ol>
  <li>I setup msmtp</li>
  <li>Create configuration file in /etc/msmtprc</li>
  </ol>
  <p>But I can't understand how to configure sending for each user.
  I understand that need to put each msmtprc with mail settings for specific user in /home/~username/
  right?</p>
  <p>And how to configure php.ini, that single user site sends mail form his domain?
  In manual nothing says about msmtprc setup for each single user.
  Man pointed out the example:</p>
  <pre><code>sendmail_path = /usr/bin/msmtp-t-i-a username
  </code></pre>
  <p>I understand this for use a specific config. And what keys you need to put or remove for individual configs work?</p>
  <p>UPD:
  There example script which create users (may it help)
  <a href="https://dl.dropbox.com/u/2457864/addsite.sh" rel="nofollow noreferrer">https://dl.dropbox.com/u/2457864/addsite.sh</a></p>