SPF records question

dreamfox

Verified User
Joined
Mar 13, 2006
Messages
50
Hello,

My server runs for example under:
hostname: server.test.com
Ip adres: 1.1.1.1

Now I have a domain in directadmin on a dedicated Ip adres
Ip adres: 2.2.2.2

I've I send mail from this domain to my emailadres
and i check headers then the email is send from host: server.test.com

My SPF record for the domain on 2.2.2.2 looks like this:
v=spf1 a mx ip4:2.2.2.2 ?all

Is this correct?
Or do i need 2.2.2.2 and 1.1.1.1 in the SPF record
Or just the 1.1.1.1 ipadress?

Please advice
Thank you
 
My SPF record for the domain on 2.2.2.2 looks like this:
v=spf1 a mx ip4:2.2.2.2 ?all

Is this correct?
Yes that's correct. However, I would use - (dash) instead of ? (question mark) terminator in the SPF record. It should be like this:
v=spf1 a mx ip4:2.2.2.2 -all

MSN/Hotmail recommends using -all terminators in the SPF record. Read this article, if you have time: http://servertune.com/kbase/entry/142/
 
Yes I did read that article and thats why my question
in article stands:

In some situations, some of your customers might have a dedicated IPs for their sites and their MX and A records point to that IP, and that IP address is NOT the main IP address of the server. By default, on a cPanel powered servers, the main IP address is the one which sends out mail. So if the main IP off the server is 10.30.3.10, then you need the following as a minimal SPF record for all domains on that machine:
"v=spf1 a mx ip4:10.30.3.10 -all"
 
By default, exim on DirectAdmin sends out all email from the server's main IP#.

So you should really be using 1.1.1.1 and not 2.2.2.2.

And you should have reverse DNS set up (probably by your upstream provider) for 1.1.1.1 to resolve to your servername.

Jeff
 
I reply to this very old post... because of a problem with SPF.

I probably misunderstand something.


My problem :
I have a domain, using his own IP.
Mails for this domain are send with SMTP.
This domain send a lot of messages everyday.

It is necessary, that messages are sent with his own IP and not with the shared IP of the server.


As I read in your post, that is not possible ?

Very ennoying :
- because, it is better that this domain send message from his own IP, as to not support bad mail from the other sender in the server, with shared IP
- it is better for my server IP, as to not be banned by messages sent from this domain.

So from your last message in 2007, are there some new possibilitities ?

Best regards
 
Back
Top