#1  
Old 26th November 2005, 12:29
Lobanak Lobanak is offline
Junior Member
 
Join Date: Sep 2005
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default SPF and reverse DNS for mail

Hi all,

I start one thread for 2 problems I have at the moment. But the problems must be looked at together.

First problem:

I have set my mail-server to be reachable at mail.mydomain.dom. But when I do a reverse lookup of the IP, I get ns.mydomain.dom. Could be a problem with some mailservers.

How can I set the reverse-zone of bind, to bring mail.mydomain.dom when I do a reverse lookup? Or better, how do I set it in ISPconfig? The zone-file is generated from ISPconfig, so if I change it by hand, it will be overwritten when I do changes in ISPconfig.

My reverse-zone-file looks like this:
Code:
$TTL        86400
@               IN      SOA     ns.mydomain.dom. hostmaster.mydomain.dom. (
                                2005111601       ; serial, todays date + todays serial #
                                28800   ; Refresh
                                7200    ; Retry
                                604800  ; Expire
                                86400)  ; Minimum TTL
                        NS      ns.mydomain.dom.
                        NS      ns2.mydomain.dom.
22       PTR     mydomain.dom.
22       PTR     www.mydomain.dom.
22       PTR     secure.mydomain.dom.
22       PTR     mail.mydomain.dom.
22       PTR     ns.mydomain.dom.
22       PTR     ftp.mydomain.dom.
22       PTR     subdomain.mydomain.dom.

;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
Second problem:

How do I use the SPF records in the right way? I have not found a description in the manuals. What to set as hostname (should this be mail?)? And what are all the other things?

I think for this to work, I need to resolve the first problem.
Reply With Quote
Sponsored Links
  #2  
Old 26th November 2005, 17:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

Quote:
Originally Posted by Lobanak
First problem:

I have set my mail-server to be reachable at mail.mydomain.dom. But when I do a reverse lookup of the IP, I get ns.mydomain.dom. Could be a problem with some mailservers.

How can I set the reverse-zone of bind, to bring mail.mydomain.dom when I do a reverse lookup? Or better, how do I set it in ISPconfig? The zone-file is generated from ISPconfig, so if I change it by hand, it will be overwritten when I do changes in ISPconfig.

My reverse-zone-file looks like this:
Code:
$TTL        86400
@               IN      SOA     ns.mydomain.dom. hostmaster.mydomain.dom. (
                                2005111601       ; serial, todays date + todays serial #
                                28800   ; Refresh
                                7200    ; Retry
                                604800  ; Expire
                                86400)  ; Minimum TTL
                        NS      ns.mydomain.dom.
                        NS      ns2.mydomain.dom.
22       PTR     mydomain.dom.
22       PTR     www.mydomain.dom.
22       PTR     secure.mydomain.dom.
22       PTR     mail.mydomain.dom.
22       PTR     ns.mydomain.dom.
22       PTR     ftp.mydomain.dom.
22       PTR     subdomain.mydomain.dom.

;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
When you do a reverse lookup, only one record will be returned, not all your PTRs. In your case it's ns.mydomain.com. As long as get you get an answer when you do a reverse lookup everything is fine, and you shouldn't have problems with email providers such as Hotmail.

Quote:
Originally Posted by Lobanak
Second problem:

How do I use the SPF records in the right way? I have not found a description in the manuals. What to set as hostname (should this be mail?)? And what are all the other things?
The form for creating SPF records follows the same scheme as the one here:
http://www.openspf.org/wizard.html?mydomain=&x=27&y=5

Play around with the Openspf wizard, and you'll uderstand what you have to put into the fields.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.