I
I
Ivan Sinyukov2015-06-05 20:50:38
linux
Ivan Sinyukov, 2015-06-05 20:50:38

Using proxy when sending mail via smtp?

Hello!
There is a module for sending messages: PHP + SwiftMailer
It is necessary to send mail through public smtp (mail.ru, gmail.com, etc.) using the login / password from the account, but use a proxy, but I don’t understand how to do this, because to. smtp is already an endpoint.
Those. the scheme is as follows:
Script -> Letter -> Proxying -> SMTP
PS There were thoughts to send requests to nginx, and from there to send it to smtp, but I don’t know how to do this ... Does
anyone have a solution to this problem? Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey N, 2015-06-11
@Albibek

You need any mail server running in smart host mode. For example, ssmtp or even postfix. As a rule, it is in the chapters on setting up a smart host that it is indicated where to add a login password for an account.

M
mureevms, 2015-06-06
@mureevms

It seems to me that you are confusing sour with long.
Why is the use of a proxy a requirement?
In general, if I correctly understood the task, you need an SMTP relay.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question