title: How to figure out property config for using local unix server as SMTP server
body: <p>How to figure out property config for using local unix server as SMTP server</p>
  
  <p>Since GMAIl and other SMTP servers do not allow changing "FROM" email address other than the one authenticated in configuration, I need to use hosting linux server as SMTP server.</p>
  
  <p>What proprty configuration I will require and how to find their values?</p>
  
  <p>Can someone explain in context to bean configuration I have for GMAIL?</p>
  
  <pre><code>&lt;bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"&gt;
  &lt;property name="host" value="smtp.gmail.com" /&gt;
  &lt;property name="port" value="587" /&gt;
  &lt;property name="username" value="xxxxxx@gmail.com" /&gt;
  &lt;property name="password" value="xyxyxyxyx" /&gt;
  
  &lt;property name="javaMailProperties"&gt;
      &lt;props&gt;
          &lt;prop key="mail.smtp.auth"&gt;true&lt;/prop&gt;
          &lt;prop key="mail.smtp.starttls.enable"&gt;true&lt;/prop&gt;
      &lt;/props&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p></p>