account creation dns zone , private key

smullen

New member
Joined
Jan 22, 2007
Messages
1
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
 
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.
 
Back
Top