How to forward mails for root to external email address using Postfix in Plesk environment

I am running Centos 5 with Parallels Plesk Panel 10.3.1. My MTA is Postfix. I was looking for some solution to forward all the mails for user root to some external email address. Follow these steps at your own risk to achieve this.

Plesk stores the mail aliases database in /var/spool/postfix/plesk/aliases.db file. If this is the first time you are browsing the folder /var/spool/postfix/plesk then you will not find the file named aliases but instead you will find aliases.db file. These db files are binary files so you need to have some tool to decode this file to text format ; make the changes in the text file and convert it back to the database file. Continue reading How to forward mails for root to external email address using Postfix in Plesk environment

How to install and configure Fail2ban to secure your Apache Webserver

Fail2ban is used to prevent various types of DoS attacks. In combination with iptables it will ban the IP addresses which is found to be suspicious by the fail2ban filters. Banning will be done if there are very significant number of authentication failures or 400 errors or 500 errors. This article will guide you on how to make your Apache web server much more secure. Fail2ban also prevents attacks other than Apache related. For eg: ssh, vsftpd, proftpd etc.

Continue reading How to install and configure Fail2ban to secure your Apache Webserver

Syslog-ng logging IP Address instead of Hostname

I have setup the syslog-ng server to accept log messages from remote host through syslogd in Linux and Snare in Windows platform. After successfully implementing this, I started to configure hosts to send the log messages to the central syslog-ng server. During this, it was found that the remote servers were able to send messages successfully but the messages logged had IP address in place of hostname.

Continue reading Syslog-ng logging IP Address instead of Hostname

The only Linux site of Nepal