SPF and mail domain problem with PHP mail

JohnyByk

Verified User
Joined
Mar 7, 2012
Messages
251
I have 2 problems with mails sent directly from PHP mail() function (non authenticated).

1.1.1.1 - server IP
2.2.2.2 - shared IP

server.serverdomain.com - servername in directadmin.conf

When i sent email directly form PHP email have SPF fail. Any ideas why?

Second problem.
After email send directly from PHP:
2014-01-04 12:30:13 1VzPQj-00054e-L0 <= [email protected] U=userfromdDA P=local S=662 T="Delivery Test" from <[email protected]> for [email protected] [email protected]
2014-01-04 12:30:15 1VzPQj-00054e-L0 => [email protected] F=<[email protected]> R=lookuphost T=remote_smtp S=684 H=gmail-smtp-in.l.google.com [74.125.136.26] X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 C="250 2.0.0 OK 1388835041 i1si75256082eev.68 - gsmtp"
2014-01-04 12:30:15 1VzPQj-00054e-L0 Completed

Why email is sent from [email protected] but not from [email protected]

It's very dificult situation because all replays and information from another servers (for example delivery failed) are sended for server adress but not for user addres. Is any possibility to resolve this problem.

I have 2 servers with DA and this problem i on both.

Sorry for my english
Regards
 
Last edited:
Back
Top