DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 28th, 2012, 03:47 AM
Cep's Avatar
Cep Cep is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 296 Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 58 m 28 sec
Reputation Power: 14
SPF: Is adding ip4 127.0.0.1 a bad idea?

Hi,

I just wanted to clarify something in my mind (since I cannot find a decent example on the net) regarding SPF and the use of a localhost/127.0.0.1 address.

Basically I have a problem where an SPF record has been created for a website pointing to the public IP address of the mail server and its associated A and MX records.

However since this website runs from a PHP mailer function where the shared hosting is configured to point its SMTP to 127.0.0.1 the SPF record reports mail (which is valid) as spam since 127.0.0.1 appears on the mail headers but does not appear in the SPF record as a valid sender.

Now my understanding is that it would be a very, very bad idea to add 127.0.0.1 as a valid sender in the SPF record because then anyone could send PHP mail to their own local 127.0.0.1 address and it would fool the SPF record into thinking it is valid.

Could anyone clarify this for me?

Reply With Quote
  #2  
Old February 28th, 2012, 04:43 PM
CaptPikel CaptPikel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2010
Location: Florida
Posts: 248 CaptPikel User rank is Lance Corporal (50 - 100 Reputation Level)CaptPikel User rank is Lance Corporal (50 - 100 Reputation Level)CaptPikel User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 15 h 26 m 11 sec
Reputation Power: 3
Shouldn't really be an issue having it in there. When a receiving server checks for an SPF record, it looks only at the IP it received the message from. Not the IP's prior. This is why SmartHost or forwarding services can cause SPF woes. If you need to add it to get around a current config, theoretically it shouldn't cause an issue. However if other people have a similar set up where a message is accepted and then passed off to another server and shows it came from 127.0.0.1 by the time the SPF check happens, it would essentially be useless. But how likely/common would that be...? If you have no way to change your internal config and must add it, I don't think you'd have much fallout from it. Plus there aren't too many servers that even check SPF records unfortunately.
Comments on this post
Cep agrees: Thanks for that answer CaptPikel

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > SPF: Is adding ip4 127.0.0.1 a bad idea?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap