Print DN not CN
Clean up option and config code
Add --restrict option to restrict mails in test mode