If you want to take care about your users quota and your storage space, check this … 1. Create new file (for example quota_notify inside /usr/local/sbin/ ) 2. Copy next content inside quota_notify #!/usr/bin/perl -w # Author <jps@tntmax.com> # # This script assumes that virtual_mailbox_base in defined # in postfix’s main.cf file. This directory [...]
Continue reading about Postfix quota notification email script
I just want to share one link about processing millions of images. Here it is LINK
As most of us already know, PHP is one of the most popular scripting language for developing dynamic web pages. But you probably don’t know that PHP can be used as a shell scripting language. It isn’t robust as Bash or Perl but it has some advantages. The only difference between a PHP shell script [...]
Continue reading about Using PHP as a shell scripting language
To see what ports are open in your Linux box, you can use nmap port scanner or you can use netstat. nmap can be used with following command: # nmap -sS -O 127.0.0.1 The answer will be something like: Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2010-07-08 11:31 CEST Interesting ports on localhost.localdomain (127.0.0.1): Not [...]
The MS Windows OS-es uses the AUTORUN.INF file from removable drives (USB, CD, DVD,…) in order to know which actions to perform when a new external storage device is inserted into the PC. This is good for movies, install CDs and other friendly “things” but unfortunately the malware uses the same way to attack your [...]
fsck is used to check and optionally repair one or more Linux file systems. File system can be a device name (e.g. /dev/sda2), a mount point (e.g. /, /usr,… ), or an ext2 label or UUID specifier. By default, the fsck will try to handle filesystems on different physical disk drives in parallel to reduce [...]
amavisd-new is a high-performance and reliable interface between mailer (MTA) and one or more content checkers: virus scanners, and/or Mail::SpamAssassin Perl module. It is written in Perl, ensuring high reliability, portability and maintainability. It talks to MTA via (E)SMTP or LMTP protocols, or by using helper programs. No timing gaps exist in the design, which [...]
Continue reading about Releasing a message from a quarantine with amavisd-relase
Centos has a neat application for switching between alternative software packages, called alternatives. Few days ago I noticed that one server doesn’t send logwatch email. I wanted to see what was the reason and here are the few tips you can check before you dig inside logwatch settings. First, check /etc/aliases and root email inside [...]
By default, MySQL Server will be installed with root superuser without any password. You can connect to MySQL server as root without requiring password or by keying in blank password. However, if you have set the password for root and forget or unable to recall the password, then you will need to reset the root [...]
The RPMforge project is an open source project that provides RPM packages for various distributions (RH, CentOS, Fedora, …). To enable RPMforge you can install the rpmforge-release package for your distribution. For RHEL5 / CentOS-5: i386 # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm # rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm x86_64 # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm For older releases (RHEL [...]