title: Sending account verification email with perl and sendmail/postfix
body: <p>For my Perl web application, I need account verification via email.</p>
  
  <p>I already have a sub to generate and handle the unique link and an email composing and sending mechanism (with Email::Sender CPAN module) and it works fine - it sends emails and they get delivered.</p>
  
  <p>The problem is they hit spam filters, I think it's because 'From' is 'noreply@example.org' and the user I run a script as is roman@example.org. If I send email with the same exact script with 'From: roman@example.org', it is delivered properly and does not hit the filter.</p>
  
  <p>I have a root privileges on the server and can add users and configure postfix, but the question is what should I do? Run webapp as a user noreply having permissions to send mail? Changing postfix settings? Should I use MDA at all or it's better to stick with Net::SMTP or Email::Sender for a lightweight application?</p>
  
  <p>I understand that an exact answer for that question might help spammers, so general direction and links to documentation I need to read would be enough.</p>
  
  <pre><code>from    Example robot noreply@example.org
  to  myactualaccount[@]gmail.com
  date    Mon, Jun 13, 2011 at 9:45 PM
  subject test
  
  hide details 9:45 PM (15 hours ago)
  
  This message is short, but at least it's cheap!
  </code></pre>