Category: Linux

ZIP tips and tricks in Linux

ZIP tips and tricks in Linux

View List of files inside a zip file: unzip -l filename.zip (list files ) Extract Single File from a zip file: unzip -j "archive.zip" "archive/filename.zip" -d .

Root Alias with Qmail

Root Alias with Qmail

In order to create root alias , you have to edit the .qmail-root file on qmail server vi /var/qmail/alias/.qmail-root Now add the email address that you want to alias to and add & at...

Download RPM Packages with yum

Download RPM Packages with yum

Sometimes, it is desirable to download packages from yum repo.Here is how you can do that. Yum download only plugin is required. yum install yum-downloadonly After installing that plugin , you can download the...

Email Server Utilities

Email Server Utilities

To check for email report including SPF, Domain Keys , send a blank email to : check-auth@verifier.port25.com and wait for the reply with all the report.

Block Chinese Spam

Block Chinese Spam

## Charsets from asia: /^Content-type:.*charset\s*=[\s\"]*(big5|euc-kr|gb2312|ks_c_5601-1987|ISO-2022-JP)/ REJECT /^Subject:.*\[Big5\].*/ REJECT /^Subject: \=\?iso-8859-1.*/ REJECT

yum update error: Error: pkgKey doesn’t exist in repo base

yum update error: Error: pkgKey doesn’t exist in repo base

You can solve this problem by cleaning your yum metadata and cache. yum clean all yum clean metadata

Enabling Passive FTP Connections through IPTABLES

Enabling Passive FTP Connections through IPTABLES

Sometimes when you have an FTP Server running behind IPTABLES, some clients cannot connect to the FTP. This is generally because of the inability of the firewall to track the ftp connections. You can...

Configure Postfix as a backup MX

Configure Postfix as a backup MX

In order to configure postfix as a backup mx, you need to make some changes to the configuration file : Add the following line to the main.cf file: vi /etc/postfix/main.cf Add  permit_mx_backup to the...

Disabling SELINUX

Disabling SELINUX

In order to disable selinux , run the following commands : To Disable SeLinux For Current Session only : setenforce permissive or echo 0 > /selinux/enforce To Disable Selinux permanently: vi /etc/sysconfig/selinux SELINUX=disabled