Report this

What is the reason for this report?

How do I install Postfix/Dovecot with Nginx Unbuntu 12.04

Posted on 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?



This textbox defaults to using Markdown to format your 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=“https://www.digitalocean.com/community/questions/nginx-reverse-proxy-with-iredmail-apache2”>https://www.digitalocean.com/community/questions/nginx-reverse-proxy-with-iredmail-apache2</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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.