Tag: master


How to install Postfix @ Debian 5.0 i686

March 30th, 2010 — 5:44am

Requirement

* GNU C Compiler and other small packages required

ervan:~# apt-get install gcc build-essential automake autoconf autoreconf libncurses5-dev g++
ervan:~# apt-get install libdb-devel

* OpenSSL
* CyrusSASL
* Courier Authlib and Courier IMAP

Package

ervan:~# wget ftp://ftp.reverse.net/pub/postfix/official/postfix-2.7.0.tar.gz
ervan:~# tar -zxvf postfix-2.7.0.tar.gz
ervan:~# cd postfix-2.7.0

Creating new user and groups for postfix

ervan:~/postfix-2.7.0# groupadd -g 1001 postfix
ervan:~/postfix-2.7.0# groupadd -g 1002 postdrop
ervan:~/postfix-2.7.0# useradd -u 1001 -g 1001 -G postdrop -d /home/postfix -s /usr/sbin/nologin postfix

Installation

ervan:~/postfix-2.7.0# mkdir /usr/include/openssl/
ervan:~/postfix-2.7.0# cp /usr/local/ssl/include/openssl/* /usr/include/openssl/
ervan:~/postfix-2.7.0# cp /usr/local/ssl/include/mysql/* /usr/include/
ervan:~/postfix-2.7.0# ln -s ./libssl.so.0.9.8 ./libssl.so
ervan:~/postfix-2.7.0# ln -s ./libcrypto.so.0.9.8 ./libcrypto.so
ervan:~/postfix-2.7.0# make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH -DUSE_TLS -DUSE_CYRUS_SASL -I/usr   /include/sasl' 'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -L/usr/lib64 -lssl -lcrypto -lsasl2'
ervan:~/postfix-2.7.0# make && make install

Continue reading »

Comment » | Linux

BIND Master Slave @ Opensuse 11.1 x86_64

March 3rd, 2010 — 6:37am

BIND Version version: 9.7.0

ns1 IP Address : 208.99.198.183
ns2 IP Address : 208.99.198.179

- Instalation

# wget ftp://ftp.nominum.com/pub/isc/bind9/9.7.0/bind-9.7.0.tar.gz
# tar -zxvf bind-9.7.0.tar.gz
# make && make install

- Configure ns1 primary name server

Login with root access

# rndc-confgen -a -k rndc-key -b 256
# cat /etc/rndc.key
key "rndc-key" {
algorithm hmac-md5;
secret "77yB4b3HtL7iz4r4n1R5xmaUlDx5sCNOcxEv6TvgQTo=";
};
# nano /etc/named.conf
key "rndc-key" {
algorithm hmac-md5;
secret "77yB4b3HtL7iz4r4n1R5xmaUlDx5sCNOcxEv6TvgQTo=";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
options {
directory "/var/lib/named";
allow-transfer { 208.99.198.179; };
notify no;
}; Continue reading »

Comment » | Linux

Back to top