关天Qmail!!

由 再见理想 在 03-10-2004 23:42 发表:

关天Qmail!!

第一次用QMAIL,还不知道如何安装呢!!也不知道该下载那些包! 请高手们一一指教,安装QMAIL的时候是不是得把sendmail停掉!

谢谢了哦!


我是一名现役二级士官!!!!!!

曾经沧海(海)难为水(碎)

除却巫山(散)不是云(云)

------云散海碎


由 Snoopy 在 03-10-2004 23:45 发表:


得停掉, http://211.93.98.22/bbs/showthread....;threadid=92059


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 再见理想 在 03-11-2004 16:52 发表:


安装出错!!!我用的RH9,SENDMAIL已经关闭,难道也要打补丁吗,该怎么打!

[root@zjnx ucspi-tcp-0.88]# make

( cat warn-auto.sh; \

echo 'main="$1"; shift'; \

echo exec "head -1 conf-ld" \

'-o "$main" "$main".o ${1+"$@"}' \

) > load

chmod 755 load

( cat warn-auto.sh; \

echo exec "head -1 conf-cc" '-c ${1+"$@"}' \

) > compile

chmod 755 compile

cat warn-auto.sh choose.sh \

| sed s}HOME}"head -1 conf-home"}g \

> choose

chmod 755 choose

./choose clr trypoll iopause.h1 iopause.h2 > iopause.h

./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h

./compile tcpserver.c

( ( ./compile tryulong32.c && ./load tryulong32 && \

./tryulong32 ) >/dev/null 2>&1 \

&& cat uint32.h2 || cat uint32.h1 ) > uint32.h

rm -f tryulong32.o tryulong32

./compile rules.c

./compile remoteinfo.c

./compile timeoutconn.c

( cat warn-auto.sh; \

echo CC='head -1 conf-cc'; \

echo LD='head -1 conf-ld'; \

cat find-systype.sh; \

) | sh > systype

( cat warn-auto.sh; \

echo 'main="$1"; shift'; \

echo 'rm -f "$main"'; \

echo 'ar cr "$main" ${1+"$@"}'; \

case "cat systype" in \

sunos-5.*) ;; \

unix_sv*) ;; \

irix64-*) ;; \

irix-*) ;; \

dgux-*) ;; \

hp-ux-*) ;; \

sco*) ;; \

*) echo 'ranlib "$main"' ;; \

esac \

) > makelib

chmod 755 makelib

./compile cdb.c

./compile cdb_hash.c

./compile cdb_make.c

./makelib cdb.a cdb.o cdb_hash.o cdb_make.o

./compile dns_dfd.c

./compile dns_domain.c

./compile dns_dtda.c

./compile dns_ip.c

./compile dns_ipq.c

./compile dns_name.c

./compile dns_nd.c

./compile dns_packet.c

./compile dns_random.c

./compile dns_rcip.c

./compile dns_rcrw.c

./compile dns_resolve.c

./compile dns_sortip.c

./compile dns_transmit.c

./compile dns_txt.c

./makelib dns.a dns_dfd.o dns_domain.o dns_dtda.o dns_ip.o \

dns_ipq.o dns_name.o dns_nd.o dns_packet.o dns_random.o \

dns_rcip.o dns_rcrw.o dns_resolve.o dns_sortip.o \

dns_transmit.o dns_txt.o

./choose c trysysel select.h1 select.h2 > select.h

./compile iopause.c

./compile tai_pack.c

./compile taia_add.c

./compile taia_approx.c

./compile taia_frac.c

./compile taia_less.c

./compile taia_now.c

./compile taia_pack.c

./compile taia_sub.c

./compile taia_uint.c

./makelib time.a iopause.o tai_pack.o taia_add.o \

taia_approx.o taia_frac.o taia_less.o taia_now.o \

taia_pack.o taia_sub.o taia_uint.o

./compile alloc.c

./compile alloc_re.c

./compile buffer.c

./compile buffer_0.c

./compile buffer_1.c

./compile buffer_2.c

./compile buffer_copy.c

./compile buffer_get.c

./compile buffer_put.c

./compile env.c

./compile error.c

./compile error_str.c

./compile fd_copy.c

./compile fd_move.c

./compile getln.c

./compile getln2.c

./compile ndelay_off.c

./compile ndelay_on.c

./compile open_read.c

./compile open_trunc.c

./compile open_write.c

./compile openreadclose.c

./compile pathexec_env.c

./compile pathexec_run.c

./compile chkshsgr.c

./load chkshsgr

./chkshsgr || ( cat warn-shsgr; exit 1 )

./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h

./compile prot.c

./compile readclose.c

./compile seek_set.c

./compile sgetopt.c

./compile sig.c

./choose cl trysgprm hassgprm.h1 hassgprm.h2 > hassgprm.h

./compile sig_block.c

./choose cl trysgact hassgact.h1 hassgact.h2 > hassgact.h

./compile sig_catch.c

./compile sig_pause.c

./compile socket_accept.c

./compile socket_bind.c

./compile socket_conn.c

./compile socket_delay.c

./compile socket_listen.c

./compile socket_local.c

./compile socket_opts.c

./compile socket_remote.c

./compile socket_tcp.c

./compile socket_udp.c

./compile stralloc_cat.c

./compile stralloc_catb.c

./compile stralloc_cats.c

./compile stralloc_copy.c

./compile stralloc_eady.c

./compile stralloc_opyb.c

./compile stralloc_opys.c

./compile stralloc_pend.c

./compile strerr_die.c

./compile strerr_sys.c

./compile subgetopt.c

./choose cl trywaitp haswaitp.h1 haswaitp.h2 > haswaitp.h

./compile wait_nohang.c

./compile wait_pid.c

./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o \

buffer_1.o buffer_2.o buffer_copy.o buffer_get.o \

buffer_put.o env.o error.o error_str.o fd_copy.o fd_move.o \

getln.o getln2.o ndelay_off.o ndelay_on.o open_read.o \

open_trunc.o open_write.o openreadclose.o pathexec_env.o \

pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o \

sig.o sig_block.o sig_catch.o sig_pause.o socket_accept.o \

socket_bind.o socket_conn.o socket_delay.o socket_listen.o \

socket_local.o socket_opts.o socket_remote.o socket_tcp.o \

socket_udp.o stralloc_cat.o stralloc_catb.o stralloc_cats.o \

stralloc_copy.o stralloc_eady.o stralloc_opyb.o \

stralloc_opys.o stralloc_pend.o strerr_die.o strerr_sys.o \

subgetopt.o wait_nohang.o wait_pid.o

./compile byte_chr.c

./compile byte_copy.c

./compile byte_cr.c

./compile byte_diff.c

./compile byte_rchr.c

./compile byte_zero.c

./compile case_diffb.c

./compile case_diffs.c

./compile fmt_ulong.c

./compile ip4_fmt.c

./compile ip4_scan.c

./compile scan_ulong.c

./compile str_chr.c

./compile str_diff.c

./compile str_len.c

./compile str_start.c

./compile uint16_pack.c

./compile uint16_unpack.c

./compile uint32_pack.c

./compile uint32_unpack.c

./makelib byte.a byte_chr.o byte_copy.o byte_cr.o \

byte_diff.o byte_rchr.o byte_zero.o case_diffb.o \

case_diffs.o fmt_ulong.o ip4_fmt.o ip4_scan.o scan_ulong.o \

str_chr.o str_diff.o str_len.o str_start.o uint16_pack.o \

uint16_unpack.o uint32_pack.o uint32_unpack.o

( ( ./compile trylsock.c && \

./load trylsock -lsocket -lnsl ) >/dev/null 2>&1 \

&& echo -lsocket -lnsl || exit 0 ) > socket.lib

rm -f trylsock.o trylsock

./load tcpserver rules.o remoteinfo.o timeoutconn.o cdb.a \

dns.a time.a unix.a byte.a cat socket.lib

tcpserver.o(.text+0x55f): In function `doit':

undefined reference to `errno'

remoteinfo.o(.text+0x63): In function `mywrite':

undefined reference to `errno'

remoteinfo.o(.text+0xe7): In function `myread':

undefined reference to `errno'

timeoutconn.o(.text+0x41): In function `timeoutconn':

undefined reference to `errno'

timeoutconn.o(.text+0xc7): In function `timeoutconn':

undefined reference to `errno'

cdb.a(cdb.o)(.text+0xce): more undefined references to `errno' follow

collect2: ld returned 1 exit status

make: *** [tcpserver] Error 1

[root@zjnx ucspi-tcp-0.88]#


我是一名现役二级士官!!!!!!

曾经沧海(海)难为水(碎)

除却巫山(散)不是云(云)

------云散海碎


由 Snoopy 在 03-11-2004 17:11 发表:


root: ~ $ tar zxvf ucspi-tcp-0.88.tar.gz

root: ~ $ cd ucspi-tcp-0.88

root: ~ $ patch -p1 < ucspi-tcp-0.88.a_record.patch

root: ~ $ patch -p1 < ucspi-tcp-0.88.errno.patch

root: ~ $ patch -p1 < ucspi-tcp-0.88.nobase.patch

root: ~ $ make

root: ~ $ make setup check

打了补丁吗,打了就不会出错啊


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 再见理想 在 03-11-2004 18:07 发表:


[root@zjnx ucspi-tcp-0.88]# patch -p1 < ucspi-tcp-0.88.a_record.patch

bash: ucspi-tcp-0.88.a_record.patch: 没有那个文件或目录

[root@zjnx ucspi-tcp-0.88]# cd ..

[root@zjnx qmail]# patch -p1 < ucspi-tcp-0.88.a_record.patch

can't find file to patch at input line 4

Perhaps you used the wrong -p or --strip option?

The text leading up to this was:

--------------------------

|diff -ruN --exclude conf-* ucspi-tcp-0.88/rblsmtpd.c ucspi-tcp-0.88.fix/rblsmtpd.c

|--- ucspi-tcp-0.88/rblsmtpd.c Sat Mar 18 10:18:42 2000

|+++ ucspi-tcp-0.88.fix/rblsmtpd.c Wed Aug 9 16:42:33 2000

--------------------------

File to patch: 这个地方该填什么啊!!!!!!


我是一名现役二级士官!!!!!!

曾经沧海(海)难为水(碎)

除却巫山(散)不是云(云)

------云散海碎


由 再见理想 在 03-11-2004 18:33 发表:


我如果今后不想用QMAIL了,又想回到SENDMAIL的怀抱,我可以不进行下面的动作可以吗?

如果存在postfix和sendmail,或其他邮件服务,停用现在的mail服务,或则删除它!

root: ~ $ /etc/rc.d/init.d/sendmail stop

root: ~ $ cp /var/qmail/bin/sendmail /usr/sbin/qmail.sendmail

root: ~ $ rm -f /etc/alternatives/mta

root: ~ $ ln -s /usr/sbin/qmail.sendmail /etc/alternatives/mta

root: ~ $ ln -s /var/qmail/bin/sendmail /usr/lib/sendmail

root: ~ $ ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail

root: ~ $ chmod 777 /usr/sbin/sendmail \\ 这里特别要注意检查/usr/sbin/sendmail的属性.不然会导致装完后用igenus在web界面发信不成功


我是一名现役二级士官!!!!!!

曾经沧海(海)难为水(碎)

除却巫山(散)不是云(云)

------云散海碎


由 Snoopy 在 03-11-2004 22:20 发表:


> quote: > > * * * > > 最初由 再见理想 发表
>
> *[root@zjnx ucspi-tcp-0.88]# patch -p1 < ucspi-tcp-0.88.a_record.patch
>
> bash: ucspi-tcp-0.88.a_record.patch: 没有那个文件或目录
>
> [root@zjnx ucspi-tcp-0.88]# cd ..
>
> [root@zjnx qmail]# patch -p1 < ucspi-tcp-0.88.a_record.patch
>
> can't find file to patch at input line 4
>
> Perhaps you used the wrong -p or --strip option?
>
> The text leading up to this was:
>
> --------------------------
>
> |diff -ruN --exclude conf-
ucspi-tcp-0.88/rblsmtpd.c ucspi-tcp-0.88.fix/rblsmtpd.c
>
> |--- ucspi-tcp-0.88/rblsmtpd.c Sat Mar 18 10:18:42 2000
>
> |+++ ucspi-tcp-0.88.fix/rblsmtpd.c Wed Aug 9 16:42:33 2000
>
> --------------------------
>
> File to patch: 这个地方该填什么啊!!!!!! ** > > * * *

你之前打过补丁吗?

patch -p1 < ucspi-tcp-0.88.a_record.patch 像这样是补丁在本目录下,你补丁有放在此吗?


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 再见理想 在 03-12-2004 07:27 发表:


这个地方我已经搞定了,谢谢,我只是想问一下:

我如果今后不想用QMAIL了,又想回到SENDMAIL的怀抱,我可以不进行下面的动作可以吗?

如果存在postfix和sendmail,或其他邮件服务,停用现在的mail服务,或则删除它!

root: ~ $ /etc/rc.d/init.d/sendmail stop

root: ~ $ cp /var/qmail/bin/sendmail /usr/sbin/qmail.sendmail

root: ~ $ rm -f /etc/alternatives/mta

root: ~ $ ln -s /usr/sbin/qmail.sendmail /etc/alternatives/mta

root: ~ $ ln -s /var/qmail/bin/sendmail /usr/lib/sendmail

root: ~ $ ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail

root: ~ $ chmod 777 /usr/sbin/sendmail \\ 这里特别要注意检查/usr/sbin/sendmail的属性.不然会导致装完后用igenus在web界面发信不成功


我是一名现役二级士官!!!!!!

曾经沧海(海)难为水(碎)

除却巫山(散)不是云(云)

------云散海碎


由 Snoopy 在 03-12-2004 12:40 发表:


这里已经删除了它,以后要用得重新装,你用rpm包装不就行了,


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 再见理想 在 03-12-2004 17:20 发表:


[root@zjnx vpopmail-5.2.1]# ./configure --prefix=/home/vpopmail --enable-mysql=y --enable-incdir=/opt/mysql/include --enable-libdir=/opt/mysql/lib --enable-default-domain=zjnx.com --enable-passwd=n --enable-defaultquota=10485760 --enable-tcprules-prog=/usr/local/bin/tcprules --enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp --enable-vpopuser=vpopmail --enable-vpopgroup=vchkpw --enable-ip-alias-domains=n --enable-sqwebmail-pass=y

loading cache ./config.cache

checking for a BSD compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking whether make sets ${MAKE}... yes

checking for working aclocal... found

checking for working autoconf... found

checking for working automake... found

checking for working autoheader... found

checking for working makeinfo... found

checking host system type... i686-unknown-linux

checking for gcc... gcc

checking whether the C compiler (gcc ) works... yes

checking whether the C compiler (gcc ) is a cross-compiler... no

checking whether we are using GNU C... yes

checking whether gcc accepts -g... yes

checking for ranlib... ranlib

checking for POSIXized ISC... no

checking how to run the C preprocessor... gcc -E

checking for AIX... no

yes

checking for floor in -lm... yes

checking for compress in -lz... yes

checking for crypt in -lcrypt... yes

checking for gethostbyaddr in -lnsl... yes

checking for getsockname in -lsocket... no

checking for dirent.h that defines DIR... yes

checking for opendir in -ldir... no

checking for ANSI C header files... yes

checking for unistd.h... yes

checking for sys/varargs.h... no

checking for working const... yes

checking for size_t... yes

checking whether struct tm is in sys/time.h or time.h... time.h

checking for getcwd... yes

checking for mkdir... yes

checking for strdup... yes

checking for strstr... yes

checking for fdatasync... yes

checking for sigaction... yes

updating cache ./config.cache

creating ./config.status

creating Makefile

creating config.h

vpopmail 5.2.1

Current settings

---------------------------------------

vpopmail directory = /home/vpopmail

uid = 510

gid = 504

ip alias = OFF --enable-ip-alias-domains=n (default)

address extentions = OFF --enable-qmail-ext=n (default)

roaming users = OFF --enable-roaming-users=n default

user quota = 10485760 -enable-hardquota=10485760

auth module = mysql --enable-mysql=y

mysql replication = OFF --enable-mysql-replication=n default

table optimization = many domains --enable-many-domains=y default

system passwords = OFF --enable-passwd=n default

file locking = ON --enable-file-locking=y default

file sync = OFF --enable-file-sync=n default disable vdelivermail fsync

auth logging = ON --enable-auth-logging=y default

mysql logging = OFF --enable-mysql-logging=n default

clear passwd = ON --enable-clear-passwd=y (default)

valias processing = OFF --enable-valias=n

pop syslog = show only failure attempts

--enable-logging=e default

default domain = zjnx.com --enable-default-domain=zjnx.com

auth inc = -I/opt/mysql/include

auth lib = -L/opt/mysql/lib -lmysqlclient -lz

[root@zjnx vpopmail-5.2.1]# make

make all-recursive

make[1]: Entering directory `/opt/soft/qmail/vpopmail-5.2.1'

Making all in cdb

make[2]: Entering directory `/opt/soft/qmail/vpopmail-5.2.1/cdb'

( cat warn-auto.sh; \

echo CC='head -1 conf-cc'; \

echo LD='head -1 conf-ld'; \

cat find-systype.sh; \

) | sh > systype

( cat warn-auto.sh; \

echo 'main="$1"; shift'; \

echo 'rm -f "$main"'; \

echo 'ar cr "$main" ${1+"$@"}'; \

case "cat systype" in \

sunos-5.*) ;; \

unix_sv*) ;; \

irix64-*) ;; \

irix-*) ;; \

dgux-*) ;; \

hp-ux-*) ;; \

sco*) ;; \

*) echo 'ranlib "$main"' ;; \

esac \

) > makelib

chmod 755 makelib

( ( ./compile tryulong32.c && ./load tryulong32 && \

./tryulong32 ) >/dev/null 2>&1 \

&& cat uint32.h2 || cat uint32.h1 ) > uint32.h

rm -f tryulong32.o tryulong32

./compile cdb_hash.c

./compile cdb_unpack.c

./compile cdb_seek.c

./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o

./compile cdbmake_pack.c

./compile cdbmake_hash.c

./compile cdbmake_add.c

./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o \

cdbmake_add.o

make[2]: Leaving directory `/opt/soft/qmail/vpopmail-5.2.1/cdb'

make[2]: Entering directory `/opt/soft/qmail/vpopmail-5.2.1'

gcc -I. -I/opt/mysql/include -g -O2 -Wall -c vpopmail.c

gcc -I. -I/opt/mysql/include -g -O2 -Wall -c md5.c

gcc -I. -I/opt/mysql/include -g -O2 -Wall -c bigdir.c

gcc -I. -I/opt/mysql/include -g -O2 -Wall -c vauth.c

vauth.c:28:19: mysql.h: 没有那个文件或目录

In file included from vauth.c:32:

vmysql.h:53:22: warning: multi-line string literals are deprecated

vauth.c:35: parse error before "mysql_update"

vauth.c:35: warning: type defaults to int' in declaration of mysql_update'

vauth.c:35: warning: data definition has no type or storage class

vauth.c:36: parse error before "mysql_read_getall"

vauth.c:36: warning: type defaults to int' in declaration of mysql_read_getall'

vauth.c:36: warning: data definition has no type or storage class

vauth.c:54: parse error before '*' token

vauth.c:54: warning: type defaults to int' in declaration of res_update'

vauth.c:54: warning: data definition has no type or storage class

vauth.c:55: parse error before '*' token

vauth.c:55: warning: type defaults to int' in declaration of res_read_getall'

vauth.c:55: warning: data definition has no type or storage class

vauth.c:63: parse error before "row"

vauth.c:63: warning: type defaults to int' in declaration of row'

vauth.c:63: warning: data definition has no type or storage class

vauth.c:64: parse error before "row_getall"

vauth.c:64: warning: type defaults to int' in declaration of row_getall'

vauth.c:64: warning: data definition has no type or storage class

vauth.c: In function `vauth_open_update':

vauth.c:108: warning: implicit declaration of function `mysql_init'

vauth.c:111: warning: implicit declaration of function `mysql_real_connect'

vauth.c:116: warning: implicit declaration of function `mysql_error'

vauth.c:116: warning: format argument is not a pointer (arg 3)

vauth.c:127: warning: format argument is not a pointer (arg 3)

vauth.c:135: warning: implicit declaration of function `mysql_query'

vauth.c:140: warning: format argument is not a pointer (arg 2)

vauth.c:143: warning: implicit declaration of function `mysql_store_result'

vauth.c:143: warning: assignment makes pointer from integer without a cast

vauth.c:144: warning: implicit declaration of function `mysql_free_result'

vauth.c:147: warning: implicit declaration of function `mysql_select_db'

vauth.c: In function `vauth_adddomain':

vauth.c:239: warning: assignment makes pointer from integer without a cast

vauth.c: In function `vauth_adduser':

vauth.c:314: warning: format argument is not a pointer (arg 2)

vauth.c:317: warning: assignment makes pointer from integer without a cast

vauth.c: In function `vauth_getpw':

vauth.c:366: warning: format argument is not a pointer (arg 2)

vauth.c:370: warning: assignment makes pointer from integer without a cast

vauth.c:375: warning: implicit declaration of function `mysql_num_rows'

vauth.c:394: warning: implicit declaration of function `mysql_fetch_row'

vauth.c:395: subscripted value is neither array nor pointer

vauth.c:395: subscripted value is neither array nor pointer

vauth.c:395: subscripted value is neither array nor pointer

vauth.c:395: subscripted value is neither array nor pointer

vauth.c:395: subscripted value is neither array nor pointer

vauth.c:396: subscripted value is neither array nor pointer

vauth.c:396: subscripted value is neither array nor pointer

vauth.c:396: subscripted value is neither array nor pointer

vauth.c:396: subscripted value is neither array nor pointer

vauth.c:396: subscripted value is neither array nor pointer

vauth.c:396: subscripted value is neither array nor pointer

vauth.c:397: subscripted value is neither array nor pointer

vauth.c:397: subscripted value is neither array nor pointer

vauth.c:398: subscripted value is neither array nor pointer

vauth.c:398: subscripted value is neither array nor pointer

vauth.c:399: subscripted value is neither array nor pointer

vauth.c:399: subscripted value is neither array nor pointer

vauth.c:399: subscripted value is neither array nor pointer

vauth.c:399: subscripted value is neither array nor pointer

vauth.c:399: subscripted value is neither array nor pointer

vauth.c:399: subscripted value is neither array nor pointer

vauth.c:400: subscripted value is neither array nor pointer

vauth.c:400: subscripted value is neither array nor pointer

vauth.c:400: subscripted value is neither array nor pointer

vauth.c:400: subscripted value is neither array nor pointer

vauth.c:400: subscripted value is neither array nor pointer

vauth.c:400: subscripted value is neither array nor pointer

vauth.c:401: subscripted value is neither array nor pointer

vauth.c:401: subscripted value is neither array nor pointer

vauth.c:401: subscripted value is neither array nor pointer

vauth.c:401: subscripted value is neither array nor pointer

vauth.c:401: subscripted value is neither array nor pointer

vauth.c:401: sub

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus