How do I install Postfix/Dovecot with Nginx Unbuntu 12.04

  • Posted April 12, 2014

I’ve tried every documentation on installing everything from Postfix/Dovecot/iRedmail etc… So far the only thing I’ve got to work is Postfix, which is sad.

I’m running Ubuntu 12.04 with nginx/PHP for my website. I want to use nginx for the mail server as well. Can anyone please tell me how to get Postfix/Dovecot to play nice with Nginx?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You can install either iRedMail or Postfix/Dovecot manually. Doing both will most likely break your setup. <br> <br>You can install iRedMail, configure Apache to listen on port 8080, and configure nginx to reverse proxy to apache like another user did: <a href=“”></a>. <br> <br>Make sure you uninstall (with the --purge argument, e.g. <code>sudo apt-get remove postfix --purge</code>) all mail related packages such as postfix and dovecot so that existing configs do not conflict with iRedMail. <br> <br>Good luck!