Article 59N8H SPF not working

SPF not working

by
banderas20
from LinuxQuestions.org on (#59N8H)
Hi!

I am running Postfix and I have set this SPF record in my DNS hosting in "domain.com":

Code:
"v=spf1 include:<public_ip> ~all"
Where "public_ip" is my public IP.

I am running Postfix from inside a VM with its own internal IP.

The command issued is:

Code:
echo "Message body" | mail -s "Subject" name@gmail.com -aFrom:name@domain.com
I am able to send the e-mail to GMAIL. However, it flags the mail with a:

Code:
SPF: PERMERROR with IP <public_ip>
What am I doing wrong?

Thanks!latest?d=yIl2AUoC8zA latest?i=8W80O2BESe8:1rSRv9emD-Y:F7zBnMy latest?i=8W80O2BESe8:1rSRv9emD-Y:V_sGLiP latest?d=qj6IDK7rITs latest?i=8W80O2BESe8:1rSRv9emD-Y:gIN9vFw8W80O2BESe8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments