Setting Up Of DKIM key in A Cpanel Server


Check if exim is compiled with DKIM support enabled.

root@server # /usr/sbin/exim -dd 2>&1 | grep Experimental_DKIM

Support for: crypteq iconv() IPv6 PAM Perl OpenSSL Content_Scanning Old_Demime Experimental_SPF Experimental_SRS



Generate the SSL keys.

1 cd /usr/local/cpanel/etc/exim

openssl genrsa -out dkim.key 1024
openssl rsa -in dkim.key -out dkim.public -pubout -outform PEM

You will find two keys, dkim.key & dkim.public

Open dkim.public and copy the contents excluding the –Begin– and –End– section. This is your DKIM key.  Now open exim configuration file and append the below entries under the section ‘remote_smtp’


Sample exim.conf file

remote_smtp:

driver = smtp



dkim_domain=your_domain_name.com

dkim_selector=mail

dkim_private_key=/usr/local/cpanel/etc/exim/dkim.key#path to the dkim.key key.

interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*

{/etc/mailips}{$value}{}}}{}}


helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*

{/etc/mailhelo}{$value}{$primary_hostname}}}


{$primary_hostname}}



In WHM, open DNS editor for the particular domain and add the TXT entry with DKIM key like below.

mail._domainkey.rosesource.com. IN TXT "v=DKIM1; g=*; k=r

sa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDv4PSEM9P

Here p=the_key_you_have_copied_from_dkim.public

Then restart exim and named.

You can check it using the site  http://www.brandonchecketts.com/emailtest.php.
Also there is an option in cpanel > Email Authentication > DKIM Keys

What is an EggDrop?

Eggdrop is the most advanced, most popular, and best supported IRC bot. If you’ve never used a bot before, you’ll find Eggdrop provides a staggering array of options for channel management, and can easily be expanded further to provide even more functions. The Eggdrop code is free for anyone to download and use. Some of the main features of Eggdrop include:

– Support for multiple channels.

– An advanced, flexible userfile structure.

– The ‘party line’, a unique feature accessed by DCC chat which allows you to speak to others connected to the bot’s party line, and is also used as a console where you can control and use most of Eggdrop’s features.

– Botnet support, allowing you to link multiple bots to create a ‘botnet’ and synchronise userfiles with automatic userfile sharing.

– Multi-language support, with English, German and French included.

– Support for Tcl scripts and modules, allowing you to easily add extra features to the bot.

An IRC bot is a program that sits in an IRC channel around the clock, keeping it open 24 hours a day. It looks just like a normal user on the channel, but is usually idle until it’s called upon to perform a particular function. A bot can contribute greatly to the stability of a channel by protecting it from takeovers and abusers, and providing a central location for storage of the channel op list and giving ops to those users when they join the channel. It can also perform many other useful functions, such as logging channel events, providing frequently-requested information, hosting trivia games, and so on. IRC bots are particularly important on IRC networks.