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.
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.
NginX can proxy mail, IMAP, POP3, and SMTP. Here are some resources:
https://cristian.livadaru.net/switching-mailservers-with-nginx-mail-proxy/ https://nginx.org/en/docs/mail/ngx_mail_core_module.html https://nginx.org/en/docs/mail/ngx_mail_auth_http_module.html#protocol
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.