How do I install Postfix/Dovecot with Nginx Unbuntu 12.04

April 12, 2014 2.2k views
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?
1 Answer
You can install either iRedMail or Postfix/Dovecot manually. Doing both will most likely break your setup.

You can install iRedMail, configure Apache to listen on port 8080, and configure nginx to reverse proxy to apache like another user did: https://www.digitalocean.com/community/questions/nginx-reverse-proxy-with-iredmail-apache2.

Make sure you uninstall (with the --purge argument, e.g. sudo apt-get remove postfix --purge) all mail related packages such as postfix and dovecot so that existing configs do not conflict with iRedMail.

Good luck!
Have another answer? Share your knowledge.