Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install DKIM for my postfix so that i have a signature. I am following this guide:

But how do i create a DNS record for TXT ? Where is the file. My is running in a hosted server, where i dont have terminal access. And i have another server where i am trying to install this setup. Which is only for outgoing emails for newsletters.

Step 1:
[root@out tmp]# openssl genrsa -out rsa.private 1024
[root@out tmp]# openssl rsa -in rsa.private -out rsa.public -pubout -outform PEM
[root@out tmp]# ls
rsa.private  rsa.public

Step 2: How can i know assign dkim postfix signatures?
[root@out tmp]# yum list dkim-milter
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * addons:
 * base:
 * epel:
 * extras:
 * ius:
 * rpmforge:
 * updates:
Installed Packages
dkim-milter.x86_64                                                                                     2.8.3-4.el5                                                                                      installed
[root@out tmp]# 
share|improve this question
up vote 0 down vote accepted

I have had good success using DKIMProxy. Check out this article:

And in your comments to @mattdm you are confusing SPF with DKIM-Signature. Both use DNS TXT records but they are separate things/records. With some Registrars/DNS Providers you need to turn on "Advanced DNS Records" or similar description in order to create TXT records.

You basically publish the public part of your key in the TXT record for DKIM-Signature.



share|improve this answer
For my domain provider, how can i add to achieve this according to your guide ? ex: "create mail._domainkey.domain.tld with the contents of Your public key will span at least two lines, so combine all of the lines of the key together when putting it in your DNS record. The whole DNS record will look something like this: k=rsa; t=s; p=MFwwDQYJ......0JMCAwEAAQ==" – YumYumYum Dec 9 '10 at 8:22
When you create a TXT record you provide as the Host and k,t & p parameter/values as the Text Record. _domainkey is not a variable, that is what should be in the value for the Host part. selector is a variable and is usually default or mail or whatever you chose as the selector. HTH – HTTP500 Dec 9 '10 at 16:50

But how do i create a DNS record for TXT ? Where is the file.

There's not a file. A TXT record is a certain type of response to a DNS query, just like an A record provides an IP address for a name, or a CNAME record provides an alias. You can't change it on your mail server — you need to update the records associated with your domain name.

My is running in a hosted server, where i dont have terminal access.

You don't need terminal access. You need to talk to the company that hosts your DNS service. This is probably the site that you registered "" with. (Note, though, that that's actually a real domain that belongs to someone. Use for examples.) It may be your a web hosting provider or someone else, though. (It's rare for small or even moderate-sized organizations to run their own DNS servers these days.)

So, you need to look in the web interface those people provide you, and if there's no obvious way to set a TXT record, you should contact their tech support. And if they can't help you, you should strongly consider moving your domain name to a better service.

share|improve this answer
I have access i tried this " 3600 IN TXT "v=spf1 a mx ptr ~all" and then i tried a test email, i get all softfail "" – YumYumYum Dec 9 '10 at 1:16 is the main domain name, there i have web access to change the TXT settings zone files. And is the A record server i am testing now, from that we are trying to setup our newsletter. – YumYumYum Dec 9 '10 at 1:18
I am using to manage my DNS, do they have PTR and DKIM support ? Or i have to move then. thank you – YumYumYum Dec 9 '10 at 1:35
I added this lines, is this ok ? @ 3600 IN TXT v=spf1 a mx ptr ~all mail 3600 IN TXT v=spf1 a -all @ 3600 IN TXT ptr @ 3600 IN TXT ptr – YumYumYum Dec 9 '10 at 1:45
In this site i am testing but still says SPF not found.… – YumYumYum Dec 9 '10 at 2:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.