title: Postfix header_check for multiple recipients
body: <p>I have some development and test servers, that are only used for internal testing and development, but they often use setup from live solutions, including email addresses of customers and customers customers.</p>
  
  <p>I would like to avoid the dev-solutions sending emails to customers, but allow them to send emails to developers, so that they can test the email part of the solution. I have tried a <code>header_checks</code> rule like this:</p>
  
  <pre><code>/^To:.*@(myowndomaion.com|myotherdomain.com|athirddomain.net)/  DUNNO
  /^To:.*@/   REDIRECT mytestemail@myowndomain.com
  </code></pre>
  
  <p>And this works fine. If I send an email to <code>test@gmail.com</code> it will be forwarded to <code>mytestemail@myowndomain.com</code> and not be sent to <code>test@gmail.com</code>. But if I however send an email to <code>myuser@myowndomain.com</code>it will be send straight to the correct user. That is all fine.</p>
  
  <p>The problem arises if I send emails to several email addresses! </p>
  
  <p>So, if I send an email to <code>test@gmail.com</code> and <code>myuser@myowndomain.com</code> in the same email, they will both get the email (which they should not). The order does not matter, both will get emails in both cases.</p>
  
  <p>So, does anyone have a better regex or some other better way to solve this?</p>
  
  <p>Note: We use Postfix on Debian. (pretty standard Debian 6 and Debian 8)</p>