qmailadmin の導入。 〜書きかけ〜

途轍も無く面倒臭い事に、qmailadmin はいくつかのアプリケーションを必要とします。激しくファック!な感じですね。

  1. qmail
  2. vpopmail
  3. autorespond 2.0 (or greater)
  4. ezmlm or ezmlm-idx

qmail, vpopmail については先日のエントリで導入済みなので、autorespond と ezmlm のインストールから。

autorespond のインストール


wget http://www.inter7.com/devel/autorespond-2.0.2.tar.gz
tar xfzv autorespond-2.0.2.tar.gz
cd autorespond-2.0.2
make
install -o root -g root -m 0555 -s autorespond /usr/local/bin
make install しちゃうと /usr/bin にインストールされるようなので、手作業で /usr/local/bin にインストール。

ezmlm のインストール。

qmail とかでもアレだった glibc 2.3.1 以降の問題や、その他の問題があったりするので、適当に修正が必要になる。はいはい、ファックファック。


diff -Naru ezmlm-0.53/error.h ezmlm-0.53-mod/error.h
--- ezmlm-0.53/error.h 1997-06-30 12:11:54.000000000 +0900
+++ ezmlm-0.53-mod/error.h 2006-08-07 17:09:45.000000000 +0900
@@ -1,7 +1,6 @@
#ifndef ERROR_H
#define ERROR_H
-
-extern int errno;
+#include

extern int error_intr;
extern int error_nomem;
diff -Naru ezmlm-0.53/ezmlm-manage.c ezmlm-0.53-mod/ezmlm-manage.c
--- ezmlm-0.53/ezmlm-manage.c 1997-06-30 12:11:54.000000000 +0900
+++ ezmlm-0.53-mod/ezmlm-manage.c 2006-08-07 17:15:10.000000000 +0900
@@ -30,6 +30,7 @@
{
strerr_die2x(100,FATAL,"I do not accept messages at this address (#5.1.1)");
}
+void log(char *,char *);

stralloc inhost = {0};
stralloc outhost = {0};
diff -Naru ezmlm-0.53/ezmlm-return.c ezmlm-0.53-mod/ezmlm-return.c
--- ezmlm-0.53/ezmlm-return.c 1997-06-30 12:11:54.000000000 +0900
+++ ezmlm-0.53-mod/ezmlm-return.c 2006-08-07 17:15:43.000000000 +0900
@@ -29,6 +29,7 @@
{
strerr_die1x(0,"ezmlm-return: info: trash address");
}
+void log(char *,char *);

char outbuf[1024];
substdio ssout;

qmailadmin のインストール


./configure \
--enable-htmldir=/home/htdocs/qmailadmin \
--enable-cgibindir=/home/htdocs/qmailadmin/cgi-bin \
--enable-imagedir=/home/htdocs/qmailadmin/images \
--enable-imageurl=/qmailadmin/images \
--enable-cgipath=/qmailadmin/cgi-bin/qmailadmin
make
make install-strip
ちなみに configure 結果はこんな感じ。

qmailadmin 1.2.9
Current settings
---------------------------------------
cgi-bin dir = /home/htdocs/qmailadmin/cgi-bin
html dir = /home/htdocs/qmailadmin
image dir = /home/htdocs/qmailadmin/images
image URL = /qmailadmin/images
template dir = /usr/local/share/qmailadmin
qmail dir = /var/qmail
vpopmail dir = /home/vpopmail
autorespond dir = /usr/local/bin
ezmlm dir = /usr/local/bin/ezmlm
ezmlm idx = yes
mysql for ezmlm = yes
help = no
modify quota = no
domain autofill = no
modify spam check = no