Tuesday, April 12, 2011

mysql tuning

this is good reference how to do about optimizing mysql setting

how to install rpmforge repository

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

2011-04-12 12:01:04 (11.8 KB/s) - `rpmforge-release-0.5.2-2.el5.rf.i386.rpm' saved [12680/12680]


rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm

warning: rpmforge-release-0.5.2-2.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:rpmforge-release ########################################### [100%]

# yum update

rpmforge | 1.1 kB 00:00
rpmforge/primary | 2.2 MB 00:12
rpmforge 10694/10694

Done.


Monday, April 11, 2011

install domainkey on cpanel

http://karthickv.wordpress.com/2008/06/28/how-to-install-domain-keys-on-a-cpanel-server/

/usr/local/cpanel/bin/domain_keys_installer username  It will install for the domain (test.com) successfully. Now you can verify it from the db record of the domain. The following new entry will be added in the db record.
vi /var/named/test.com.db  default._domainkey.username IN TXT "k=rsa; p=MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAOmrn9fVOia0KET1UwIDAQAB;"  rndc reload test.com Restart exim service.

Now you can verify it by creating a new mail account test123@test.com and send an email to yahoo account, then verify the headers.

Return-Path:        Authentication-Results:  mta398.mail.re4.yahoo.com from=test.com; domainkeys=pass (ok) Received:    from mta398.mail.re4.yahoo.com with SMTP; Sun, 27 Apr 2008 03:49:29 -0700 DomainKey-Signature:     a=rsa-sha1; q=dns; c=nofws; s=default; d=test.com; 9BZnoI9FAPMSTPY;  From the above headers you can confirm that domain key is working fine for
another reference
http://www.sohailriaz.com/how-to-add-domainkeys-and-spf-records-on-cpanel-servers/
this is my script
#!/usr/bin/perl print “\nStarting install of Domainkeys\n”; my %OPTS = @ARGV; my $user = $OPTS{‘user’}; system(“/usr/local/cpanel/bin/domain_keys_installer”,$user); system(“/usr/local/cpanel/bin/spf_installer”,$user); print “\nDone with install of Domainkeys\n”;exit;
Related Posts Plugin for WordPress, Blogger...