Nginx, Proxy, and Mail Service

Hello, when I setup my config that way: User -> Internet -> Proxy <-> My Server How I need to change settings on the Proxy (wich is nginx) to pass also and the emails, so it will proxy all, sites (port 80, 443) and email which is send from my server to my costumers? For mail server I just use sendmail, wich will use php for sending email itself, because don’t need full mail server, just that my site can handle sending messages from my server to my customers… Thanks.

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Nginx can be used to act as a reverse proxy for web services. This guide will assist you in setting that up. To the best of my knowledge, nginx can not proxy mail services.