R
R
Ramsan82020-01-26 08:39:08
SPF
Ramsan8, 2020-01-26 08:39:08

How to prescribe SPF for a site so that mail is sent via smtp.mail.ru?

Hello, I have 2 php scripts on my site: password recovery and registration confirmation via e-mail, I need mail to be sent via smtp.mail.ru and my server ip was not visible, I wrote v=spf1 include:smtp.mail .ru redirect=_spf.mail.ru +a +mx, but it doesn't help, the mail is sent so that my server's ip is visible. All mx, dkim, spf entries for biz.mail.ru are configured correctly, only the standard spf setting is not suitable, because for the site, it does not cool down through smtp.mail.ru.
I also tried to use ssmtp for centos 7, but I didn’t find how to use it for mail.ru on the Internet, so it doesn’t work for me.
Please tell me how to correctly register spf so that it is really sent via smtp.mail.ru without the participation of my server. Thank you in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
AUser0, 2020-01-26
@Ramsan8

IMHO, If you send letters on behalf of the user of your MX server, then you will not be able to hide the source IP. SMTP.mail.ru as an intermediate server is simply obliged to indicate the IP of the source server, that is, your SMTP.
If you send letters on behalf of [email protected], logging in to SMTP.mail.ru as user_name - then yes, the source of the letter will be SMPT.mail.ru itself, and it will itself provide an SPF record for the letter, the source of which himself is. And your IP will not appear.

D
Dimonchik, 2020-01-26
@dimonchik2013

API - if anything, use gmail, there is definitely a simple API there

S
Sanes, 2020-01-26
@Sanes

standard notation
v=spf1 ip4:91.188.xxx.xxx a mx ~all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question