qmail installation on FreeBsd

http://www.enderunix.org/docs/qmail-install.php#1
Qmail Ldap installation on free bsd. http://www.qmail-ldap.org/wiki/Full_Installation_Guide_-_Basic_Qmail_Installation
1- APACHE+PHP+MYSQL KURULUMU
Qmail kurulumundan once hizlica Apache+PHP+MySQL kurulumuyla ise baslayalim. Burada;
Apache: WebMail, Vpopmail Yonetim Arabirimi, Qmail Yonetim Arabirimi
PHP: Webmail Uygulamasinin Calistirilmasi
MySQL: Vpopmail kullanici bilgilerinin saklanmasi
icin kullanilacaktir denilebilir.
Sorunsuz ve basit bir kurulum icin bu uygulamalari ports uzerinden kuracagiz.
1.1- MySQL Kurulumu:
Web Adresi: http://www.mysql.org
Vpopmail’i MySQL destegiyle kurmayi dusunmuyorsaniz, konumuz dahilinde MySQL’e ihtiyacimiz yok; 1.2 adimina gecebilirsiniz. Farkli bir amac icin gerekecek ya da MySQL destekli Vpopmail tercih edecekseniz; devam edin.
# cd /usr/ports/databases/mysql50-server
# make WITH_CHARSET=latin5 install …

Read On »

qmail installation made easy…

This HOWTO describes how to install qmail from the provided source RPM’s.

Download the following packages.
daemontools-0.70-quint1.src.rpm
supervise-scripts-3.3-quint1.src.rpm
ucspi-tcp-0.88-quint1.src.rpm
ucspi-unix-0.34-1.src.rpm
qmail-1.03+patches-quint2.src.rpm

Build the first four packages.

rpm –rebuild daemontools-0.70-2.src.rpm
rpm –rebuild supervise-scripts-3.3-quint1.src.rpm
rpm –rebuild ucspi-tcp-0.88-1.src.rpm
rpm –rebuild ucspi-unix-0.34-1.src.rpm

Install these packages and start supervise

rpm -Uvh /usr/src/redhat/RPMS/i386/daemontools-0.70-2.i386.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/ucspi-tcp-0.88-1.i386.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/ucspi-unix-0.34-1.i386.rpm
rpm-Uvh/usr/src/redhat/RPMS/noarch/supervise-scripts-3.3-quint1.i386.rpm
telinit q

Finally build the qmail package and install it

rpm –rebuild qmail-1.03+patches-quint2.src.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/qmail-1.03+patches-quint2.i386.rpm

Check the following configuration files to see if qmail found the correct domain and host names.
/etc/qmail/control/defaultdomain
/etc/qmail/control/defaulthost
/etc/qmail/control/locals
/etc/qmail/control/me
/etc/qmail/control/rcpthosts

If you changed anything in the above files use svc-restart qmail to activate the changes.
Edit the …

Read On »

blocking ip

#!/bin/bash
echo ” “;
echo “USAGE :  /scripts/block_ipaddress ip1 ip2 ….”
echo ” “;
for i in $*
do
echo $i;
CHECK_IF_LOCALIP=0;
/sbin/ifconfig | grep $i > /dev/null;
if [ $? -ne $CHECK_IF_LOCALIP ]
then
{
FLAG=0;
grep $i /etc/sysconfig/iptables | grep DROP  > /dev/null;
if [ $? -ne $FLAG ]
then
printf ” \nBLOCKING ALL CONNECTIONS FROM  $i \t\n”;
iptables -I INPUT -p tcp -s $i -j DROP;
/etc/rc.d/init.d/iptables save;
printf “All connections from  $i is now blocked \t\n”;
else
printf ” \t\tIpaddress $i is already blocked \n”;
fi
}
else
echo ” Sorry, the ip $i cannot be blocked since this is a …

Read On »

Server Restore

1)After reinstalling cpanel, first confiigure WHM.
2)Mount old drives
3)Take backup of the following.
/var/cpanel
/etc/passwd
/etc/shadow
/etc/group
/var/named
cp -rpf /var/cpanel /var/cpanel.bak
cp -rpf /etc/passwd /etc/passwd.bak
cp -rpf /etc/shadow /etc/shadow.bak
cp -rpf /etc/group /etc/group.bak
cp -rpf /var/named /var/named.bak
4)First restore /var/cpanel
cp -rpf /oldvar/cpanel/* /var/cpanel
5)Please take little care while doing this step
Take the backup of old /etc/passwd, /etc/shadow, /etc/group
Edit backup of old etc/passwd.
Remove the Entires which are currentlly present in new /etc/passwd
Save the file. cat /olddrive/etc/passwd.bkp >>/etc/passwd
do the same for shadow and group
Note:After doing the above step please make sure that you are …

Read On »

 Page 1 of 3  1  2  3 »