Skip to main content

Posts

A crash course on Docker

A nice crash course for Docker
Recent posts

Recover Mysql ROOT Password

Stop the MySQL service # /etc/init.d/mysqld stop Add skip-grant-tables # edit /etc/my.cnf and add skip-grant-tables under [mysqld] section Start the MySQL service # /etc/init.d/mysqld start Log into the MySQL server without any password # mysql Reset the password for ‘root’ user mysql> use mysql mysql> UPDATE user SET password=PASSWORD('password.new') where user='root'; Flush privileges mysql> flush privileges; Stop the MySQL service # /etc/init.d/mysqld stop Edit my.cnf and remove skip-grant-tables Start the MySQL service # /etc/init.d/mysqld start Log-in with the new password # mysql -u root -p password.new

DKIM PROXY FOR OUTGOING MAIL IN POSTFIX

1.  Download DKIM proxy         wget http://downloads.sourceforge.net/dkimproxy/dkimproxy-1.3.tar.gz         perl -MCPAN -e'CPAN::Shell->install("Net::Server")'         perl -MCPAN -e'CPAN::Shell->install("Mail::DKIM")'         perl -MCPAN -e'CPAN::Shell->install("Mail::DKIM")'                tar -zxvf dkimproxy-1.3.tar.gz         ./configure --prefix=/usr/local/dkimproxy         make install         2. Generate Public and Private Key         Generate a private/public key pair using OpenSSL:                 openssl genrsa -out private.key 1024             opens...

Dynamic DocumentRoot for Sub-Domains.

If you have plenty of sub-domains and every subdomain routes in another directory on the server, This can be done dynamically. Add folling in httpd.conf/httpd-vhost.conf <\VirtualHost *:80\>     ServerName www.kishor.com     ServerAlias www.kishor.com     ServerAlias kishor.com     ServerAlias *.kishor.com        RewriteEngine  on     RewriteCond    %{HTTP_HOST}  ^kishor.com     RewriteRule    ^(.*)$        /var/www/html/$1 [L]     RewriteCond    %{HTTP_HOST}  ^www.*     RewriteRule    ^(.*)$        /var/www/html/$1 [L]     RewriteCond    %{HTTP_HOST}  ^(.*)\.kishor\.com     RewriteRule    ^(.*)$  ...

How to Avoid Being Blacklisted

What Are Blacklists? A blacklist usually refers to a list of e-mail or IP addresses known to send spam e-mails or some other type of unsolicited messages. Such lists are currently used by mail servers for filtering incoming e-mails and blocking the ones listed, in order to improve mail security and integrity. The blacklist is also the opposite of what is called a whitelist. The Basics First of all, being blacklisted does not mean that you have committed some kind of offense or illegal action. Blacklists have multiple purposes, including the denial of SMTP direct access for dial-up and DSL users, which mostly engage dynamically assigned IP addresses. Users are forced this way to send their mail through their provider's mail servers, which are properly configured. Blacklists may also define what is considered to be an abuse, sometimes in a debatable manner, as no strict rules are set regarding this matter. Some of them include NDR and other auto-responses in their policy in order to ...

Adding Local Storage to Xen Server

1. fdisk -l sdb is my new volume 2. pvcreate /dev/sdb 3. xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/scsi-SATA_ST3320620AS_5QF7QZZL name-label=”LOCAL SR” scsi-SATA_ST3320620AS_5QF7QZZL is the name of my volume, you’ll have to change this value with your own, and name-label is the name you want to give to your local storage. and this is it !