th£ lord
Verified User
- Joined
- Jan 6, 2007
- Messages
- 47
Hello friends.
I've been doing a lot of research for days, but I couldn't fully solve this problem. I would be glad if friends with knowledge on the subject could help.
Problem: There is a security vulnerability with the php mail codes of my own domain, as if they were sent from a different server through my domain. Thus, it looks like the e-mail that I did not send was sent through my domain.
In my research; It is required to have records such as SPF, DKIM, DMARC. I have all the records
Server Infor.. :
Exim 4.96.1
dovecot 2.3.21 (47349e2482)
Server Version 1.653
PHP Code :
<?php
$to = "[email protected]";
$subject = "Password Change";
$txt = "Change your password by visiting here - www.yourdomain.com";
$headers = "From:[email protected]";
echo mail($to,$subject,$txt,$headers);
?>
Server DNS Reccords :
yourdomain.com. 3600 TXT "v=spf1 mx a ip4:1xx.2x.1x.2x -all"
_dmarc 3600 TXT "v=DMARC1;p=reject;sp=reject;pct=100;rua=mailto:dmarc@yourdomain;ruf=mailto:[email protected];ri=86400;aspf=s;adkim=s;fo=1"
x._domainkey 3600 TXT "v=DKIM1; k=rsa; p=MIIBIjAjsodıjweoıuro3248fewş............................................................................xxxxxxxxxxxx........xxx.."
I've been doing a lot of research for days, but I couldn't fully solve this problem. I would be glad if friends with knowledge on the subject could help.
Problem: There is a security vulnerability with the php mail codes of my own domain, as if they were sent from a different server through my domain. Thus, it looks like the e-mail that I did not send was sent through my domain.
In my research; It is required to have records such as SPF, DKIM, DMARC. I have all the records
Server Infor.. :
Exim 4.96.1
dovecot 2.3.21 (47349e2482)
Server Version 1.653
PHP Code :
<?php
$to = "[email protected]";
$subject = "Password Change";
$txt = "Change your password by visiting here - www.yourdomain.com";
$headers = "From:[email protected]";
echo mail($to,$subject,$txt,$headers);
?>
Server DNS Reccords :
yourdomain.com. 3600 TXT "v=spf1 mx a ip4:1xx.2x.1x.2x -all"
_dmarc 3600 TXT "v=DMARC1;p=reject;sp=reject;pct=100;rua=mailto:dmarc@yourdomain;ruf=mailto:[email protected];ri=86400;aspf=s;adkim=s;fo=1"
x._domainkey 3600 TXT "v=DKIM1; k=rsa; p=MIIBIjAjsodıjweoıuro3248fewş............................................................................xxxxxxxxxxxx........xxx.."