Tag: mail server


How Install Courier Authlib & Courier IMAP @ Debian 5.0 i686

March 31st, 2010 — 7:52am

Requirement

* GNU C Compiler and other small packages required

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

COURIER AUTHLIB

Package

debian:~# wget http://nchc.dl.sourceforge.net/project/courier/authlib/0.63.0/courier-authlib-0.63.0.tar.bz2
debian:~# tar -jxvf courier-authlib-0.63.0.tar.bz2

Installation

debian:~# cd courier-authlib-0.63.0
debian:~/courier-authlib-0.63.0# ./configure --with-authshadow
debian:~/courier-authlib-0.63.0# make && make install

Configuration

debian:~# cp /usr/local/etc/authlib/authdaemonrc.dist /usr/local/etc/authlib/authdaemonrc
debian:~# cd /usr/lib/sasl2/
debian:~/usr/lib/sasl2# nano smtpd.conf
pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/usr/local/var/spool/authdaemon/socket

Starting Courier Authlib

debian:~# /usr/local/sbin/authdaemond start
debian:~# tail -f /var/log/mail.log
Mar 31 04:35:15 debian authdaemond: modules="authuserdb authpam authshadow authcustom authpipe", daemons=5
Mar 31 04:35:15 debian authdaemond: Installing libauthuserdb
Mar 31 04:35:15 debian authdaemond: Installation complete: authuserdb
Mar 31 04:35:15 debian authdaemond: Installing libauthpam
Mar 31 04:35:15 debian authdaemond: Installation complete: authpam
Mar 31 04:35:15 debian authdaemond: Installing libauthshadow
Mar 31 04:35:15 debian authdaemond: Installation complete: authshadow
Mar 31 04:35:15 debian authdaemond: Installing libauthcustom
Mar 31 04:35:15 debian authdaemond: Installation complete: authcustom
Mar 31 04:35:15 debian authdaemond: Installing libauthpipe
Mar 31 04:35:15 debian authdaemond: Installation complete: authpipe

Continue reading »

1 comment » | Linux

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

Back to top