Koozali.org: home of the SME Server

QUEUE_EXTRA for logging?

Drew

QUEUE_EXTRA for logging?
« on: July 10, 2003, 06:38:57 PM »
Hello everyone,

I have asked this before - and never really got much of a response at all.  Has anyone figured out a way to log email "content" for OUTGOING email on SME 5.5/5.6?

I did some digging and found the following information about using QUEUE_EXTRA to handle this, but this talks about "compile-time" configuration - which is over my head.  See link below:

http://www.lifewithqmail.org/lwq.html#queue_extra

Would this work on SME?  If so, has anyone ever tried it?  Instructions/tips?

Other thoughts/ideas on handling this logging issue?

Thanks,
Drew

CH Cheah

Re: QUEUE_EXTRA for logging?
« Reply #1 on: August 11, 2003, 02:14:02 AM »
Hi
Spent quite some time looking into this. Seems that recompiling is the only way. Have setup a temp station to download & compile but encountered a few problems. 1. During compilation, I've had 51 warnings -: return type of main' is not int'. Is the resultant binaries usable ?
2. Do I need to replace all qmail binaries produced by the compilation ? Seems that they are different (size) from the 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
Preparing...                ########################################### [100%]
   1:anaconda-runtime       ########################################### [  4%]
   2:automake               ########################################### [  9%]
   3:cpp                    ########################################### [ 13%]
   4:glibc-devel            ########################################### [ 18%]
   5:gcc                    ########################################### [ 22%]
   6:kernel-source          ########################################### [ 27%]
   7:libattr                ########################################### [ 31%]
   8:libacl                 ########################################### [ 36%]
   9:libacl-devel           ########################################### [ 40%]
  10:libstdc++-devel        ########################################### [ 45%]
  11:gcc-c++                ########################################### [ 50%]
  12:m4                     ########################################### [ 54%]
  13:autoconf               ########################################### [ 59%]
  14:libtool                ########################################### [ 63%]
  15:make                   ########################################### [ 68%]
  16:mkisofs                ########################################### [ 72%]
  17:ncurses-devel          ########################################### [ 77%]
  18:openssl-devel          ########################################### [ 81%]
  19:pam-devel              ########################################### [ 86%]
  20:readline-devel         ########################################### [ 90%]
  21:rpm-python             ########################################### [ 95%]
  22:anaconda               ########################################### [100%]
[root@webserv dev_tools]#
[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