I get softfail on most of the email send with phphmailer. I've updated the SPF many times and tied various altercations. IƤve read most related stackoverflow posts but none that hold my problem.
the spf that works best is:
"v=spf1 mx a a:mail.citynetwork.se ?all"
It still gives me a softfail and a X-Spam-Score of 1.4-1.9.
the server mail.citynetwork.se (91.123.193.200) is handling all incoming mail including smtp but when they send them they use mailout.citynetwork.se (91.123.193.63 and 91.123.193.90).
Is says either: Received-SPF: softfail (google.com: domain of transitioning [email protected] does not designate 2a00:16d8:0:12::10 as permitted sender) client-ip=2a00:16d8:0:12::10;
Received-SPF: permerror (google.com: permanent error in processing during lookup of [email protected]) client-ip=2a00:16d8:0:12::10;
or Received-SPF: softfail (google.com: domain of transitioning [email protected] does not designate 91.123.193.90 as permitted sender) client-ip=91.123.193.90;
the ip 91.123.193.90 (mailout.citynetwork.se) does not seem to hold any SPF records so if i add it it results in a permerror.
I magically got a pass once: Received-SPF: pass (google.com: domain of [email protected] designates 91.123.193.90 as permitted sender) client-ip=91.123.193.90;
but when i tried again it wen to softfail.
whith the SPF: "v=spf1 mx a include:mail.citynetwork.se -all" i've recived first permerror, then PASS, then neutral, neutral neutral....
Can anybody make sense of this? Are the SPF records not updated instantly on my server or how can i get different check with the same code, mail and SPF? Does "include:" and "a:" give the same result? Do i need a CIDR address? Should/Can i add the IPs instead of domains?