mail server and nginx proxy

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

Everything seems to work fine so far, but I’m stuck at the end of step 4 now. Checking the port with “telnet 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”.

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.

Site Moderator
Site Moderator badge
May 4, 2020
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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel