I have tried understanding SPF but the terms used are beyond my experience, so I turn to you guys now.
I have a Virtual private server (VPS) which I manage myself.
I have installed postfix on it, and have a server named:
Now, the IP of my VPS is for example this:
Then I have my DOMAIN registered at an ISP, where I can manually setup my own DNS Records.
I have these records setup (IP REPLACED WITH "184.108.40.206"):
NAME TYPE DATA www.domain.se A 220.127.116.11 domain.se A 18.104.22.168 server1.domain.se A 22.214.171.124 domain.se TXT v=spf1 a mx ptr ~all
When I send email using php:s mail function the emails are considered spam by gmail, hotmail, and all other email-servers. Why is this?
Here is how I send the mail in php:
$mail_message= "THE MESSAGE GOES HERE"; $headers="MIME-Version: 1.0"."\n"; $headers.="Content-type: text/plain; charset=UTF-8"."\n"; $headers.="From: Domain <email@example.com>"."\n"; $subject="Subject goes here"; mail($email, '=?UTF-8?B?'.base64_encode($subject).'?=', $mail_message, $headers, '-firstname.lastname@example.org');
Above, the email adress email@example.com doesn't even exist, just so you know.
I am as I said before very new to email servers, so please explain in detail how to solve this...
If you need more input, like my postfix configuration or something, just let me know.