PDA

View Full Version : account creation dns zone , private key



smullen
08-26-2009, 09:46 PM
Hi,
I've setup DKIM and

#1. Generate private key and put it some where sensible
openssl genrsa -out example.com.key 1024 > /etc/virtual/example.com/example.com.key

#2. Generate public key
openssl rsa -in /etc/virtual/example.com/example.com.key -out /etc/virtual/example.com/example.com.pub -pubout -outform PEM

#3 Append public key to DNS Zone
/var/named/example.com.db
dkim._domainkey 14400 IN TXT "v=DKIM1; p=contents of example.com.pub here"


So.... how do I automate this process when I add an account in Directadmin?

Thanks,

Seanh

SeLLeRoNe
03-12-2010, 04:59 AM
for the dns maybe using the post_create.sh script with an echo that add the line in file of the domain created.

interfasys
04-18-2010, 11:39 AM
You should use domain_create_post.sh and don't forget to begin in test mode in case something goes wrong. You should also lower your TTL to make it easier to switch to production mode.