Koozali.org: home of the SME Server

Compiling qmail (copy of in/out mail)

CH Cheah

Compiling qmail (copy of in/out mail)
« on: August 11, 2003, 07:57:50 PM »
Hi all

I tried to compile qmail on my temp SME 5.6U4 but ran into a few problems.

1. During compilation, I've had 51 warnings -: return type of main' is not int'. Are the resultant binaries usable ?
2. In order to save a copy of all in/outgoing mails I edited extra.h ( set
QUEUE_EXTRA to "Tlog\0" and QUEUE_EXTRALEN to 5  ) before recompiling. Do I need to replace all qmail binaries produced by the compilation or can anyone point me to the correct file ? Seems that they are different (size) from the original rpm of e-smith.

Anybody that can shed any light on this ? Thanks.

Steps that I went through

Download and install development tools
http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/

[root@webserv dev_tools]# /bin/rpm -Uvh --replacepkgs --nodeps *.rpm
[root@webserv dev_tools]# /sbin/e-smith/signal-event reboot

Downloaded qmail-1.03-06.src.rpm from
ftp://ftp.ibiblio.org/pub/linux/distributions/e-smith/releases/5.6/SRPMS

Expanded and extracted
1.qmail-1.03.patch.2001020500
2.[qmail-1.03]

Copied all to /usr/local/src/qmail-1.03

Edited extra.h to reflect the following
1. #define QUEUE_EXTRA "Tlog\0"
2. #define QUEUE_EXTRALEN 5

[root@webserv qmail-1.03]# pwd
/usr/local/src/qmail-1.03

Applying the patch file

[root@webserv qmail-1.03]# patch -p1 < qmail-1.03.patch.2001020500
patching file Makefile
patching file hier.c
patching file install-big.c
patching file root_auto_qmail.h
[root@webserv qmail-1.03]#

Making symbolic link into the kernel sources

[root@webserv qmail-1.03]# cd /usr/include
[root@webserv include]#
[root@webserv include]# ln -s /usr/src/linux-2.4.18-3/include/asm
[root@webserv include]# ln -s /usr/src/linux-2.4.18-3/include/linux
[root@webserv include]# cd /usr/local/src/qmail-1.03

Making subdirectories

[root@webserv qmail-1.03]# mkdir root
[root@webserv qmail-1.03]# cd root
[root@webserv root]# mkdir var
[root@webserv root]# cd var
[root@webserv var]# mkdir qmail
[root@webserv var]# cd qmail
[root@webserv qmail]# pwd
/usr/local/src/qmail-1.03/root/var/qmail
[root@webserv qmail]#
[root@webserv qmail]# cd /usr/local/src/qmail-1.03
[root@webserv qmail-1.03]#

Stopping qMail

[root@webserv qmail-1.03]# /etc/rc.d/init.d/qmail stop
Stopping qmail: [ OK ]
[root@webserv qmail-1.03]#

Start Compilation

[root@webserv qmail-1.03]# make setup check