Question

mail server and nginx proxy

Hi, I’m trying to set up a mail server.

https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin

Everything seems to work fine so far, but I’m stuck at the end of step 4 now. Checking the port with “telnet example.com 993” fails. I’ve figured out this is most probably because I’m using nginx as a proxy.

How do i need to set up nginx.conf to make this work?

In the nginx documentation you can find “Configuring NGINX as a Mail Proxy Server”. https://docs.nginx.com/nginx/admin-guide/mail-proxy/mail-proxy/

Is that what i need to do? What is “auth_http” in my case, though?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Accepted Answer

Hi @carnifex,

Let’s start with the unknowns.

  • Auth_http sets the URL of the HTTP authentication serve

In your case Auth_http should just be ‘localhost’ as you’ll be using your server for the authentications.

Additionally, make sure you have access to the 993 port and that something is actually listening on it. You can do that with the command

netstat -tulpen | grep 993

If nothing is listening on the port, then you’ll need to configure it in your Postfix service.

Regards, KDSys