G
G
gremlintv22019-05-07 17:16:06
Nginx
gremlintv2, 2019-05-07 17:16:06

Can NGINX be configured as an SMTP proxy?

Hello
At the moment I have the following scheme for sending email.
mydomain.com( server1 ) -> smtp.gmail.com-> client
When requesting a password recovery, the client receives the sender's IP address (which is the application server) in the body of the message. Therefore, in order to anonymize the server with the application, I see the need to configure an smtp proxy. To do this, I want to set up the following scheme:

mydomain.com( server1 ) -> nginx proxy( server2 ) -> smtp.gmail.com  -> client

As I understand it, in this case server2 will be called smtp relay, and smtp.gmail.com will be nginx's upstream in this case.
Found an article and off. documentation , but did not understand the following points:
1) Is nginx suitable for these purposes? How to set up smtp.gmail.com as upsteam?
2) How does smtp authorization work in this article ? Is it possible to do without it and just proxy requests to smtp.gmail.com along with authorization data?
3) Maybe I am inventing a bicycle and it will be easier to install the postfix intended for this as an smtp relay?
I apologize for the noob questions, I'm just swimming in the subject of mail servers because I have no practice
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-05-07
@gremlintv2

No need for perversions.
Install postfix, configure it as a relay to gmail.
For example, a dock, I found it right away on the first page of Google, I ran my eyes diagonally - it should work like that.
https://www.shellhacks.com/en/postfix-gmail-relay-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question