title: Set up postmaster using Postfix on Ubuntu 14.04
body: <p>I am in need of serious help. I have been on Google, Stackoverflow, Postfix's website and numerous forums. I am officially stuck, I even tried to replicate another machine's config files.</p>
  
  <p><strong>The Problem:</strong> </p>
  
  <p>I am trying to set up Thunderbird to catch postmaster emails. I want to do this using Postfix.</p>
  
  <p>There is a site hosted through Apache on localhost, dev1.testdomain.com and dev2.testdomain.com.</p>
  
  <p>Typically localhost and dev2.testdomain.com points to the same hosted application (Mono... Not Important).</p>
  
  <p>There is a web.config file for each hosted application, in there we can set an attribute that points to the postmaster email address. Typically that email address will be the same as the one set up in Thunderbird which receives all the postmaster emails.</p>
  
  <p>Further information: </p>
  
  <pre><code>Postmaster email needs to be: postmaster@mycomputer.com
  
  Computer name: developmentmachine
  
  Administrator User Account: developer
  </code></pre>
  
  <p>I tried doing a "<em>Maildir</em>" type setup and can not get that working.</p>
  
  <p>Can anyone please give me a step by step instruction on how to implement something like this?</p>
  
  <p>I want the mail sent to <strong>postmaster@mycomputer.com</strong> to be delivered to <strong>Maildir*</strong> of the <strong>developer</strong> UNIX account.</p>
  
  <p>Please do not post links to other websites, as I have tried about all of them on Google and could not get it working. </p>
  
  <p>Or can someone please tell me what I am doing wrong?</p>
  
  <p><strong>What i have currently:</strong></p>
  
  <p><em>/etc/aliases</em></p>
  
  <pre><code>postmaster:    developer
  </code></pre>
  
  <p><em>/etc/mailname</em></p>
  
  <pre><code>mycomputer.com
  </code></pre>
  
  <p>Postfix standard internet site installation.</p>
  
  <p><em>/etc/postfix/main.cf</em></p>
  
  <pre><code>smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  biff = no
  
  append_dot_mydomain = no
  
  readme_directory = no
  
  smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  smtpd_use_tls=yes
  smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  
  myhostname = developmentmachine
  alias_maps = hash:/etc/aliases
  alias_database = hash:/etc/aliases
  myorigin = /etc/mailname
  mydestination = mycomputer.com, developmentmachine, localhost.localdomain, localhost
  relayhost = 
  mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  mailbox_size_limit = 0
  recipient_delimiter = +
  inet_interfaces = all
  home_mailbox = Maildir/
  mailbox_command =
  luser_relay = postmaster@mycomputer.com
  notify_classes = bounce, 2bounce
  </code></pre>
  
  <p>UPDATE: Got it to copy files into Maildir/</p>
  
  <p>Had to do a dovecot installation to get the emails into my Thunderbird.</p>
  
  <p><a href="http://www.server-world.info/en/note?os=Ubuntu_14.04&amp;p=mail&amp;f=2" rel="nofollow">http://www.server-world.info/en/note?os=Ubuntu_14.04&amp;p=mail&amp;f=2</a></p>
  
  <p>I will now go and document this for future references.</p>
  
  <p>Thank you for the interest and help.</p>