Daniel_scx 发表于 2012-3-2 02:24:21

imap 探针显示支持 发信却失败

imap 探针显示支持 发信却失败

licess 发表于 2012-3-2 08:24:33

看看有木有错误信息

mervin 发表于 2012-3-2 08:35:28

回复 2# 的帖子

我今天上午安装的lnmp,然后安装军哥的方法安装的imp模块,通过探针的邮件测试,也不成功。

Daniel_scx 发表于 2012-3-2 16:57:45

没有任何错误 ......

mervin 发表于 2012-3-4 21:28:24

回复 2# 的帖子



军哥,我将“imap.so”放的位置对吗?

mervin 发表于 2012-3-4 21:39:06

# cd php-5.2.17/ext/imap
# ls
CREDITS               Makefile.objectsconfig.guessconfig.nice    configure.inlibtool      php_imap.c
IMAP_Win32_HOWTO.txtacinclude.m4      config.h      config.statusimap.dsp      ltmain.sh      php_imap.h
Makefile            aclocal.m4      config.h.in   config.sub   imap.la       missing      php_imap.lo
Makefile.fragments    autom4te.cache    config.log    config.w32   include       mkinstalldirsrun-tests.php
Makefile.global       build             config.m4   configure      install-sh    modules      tests
# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
# ./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap --with-imap-s                              sl
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -                              I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for IMAP support... yes, shared
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... old
checking for U8T_DECOMPOSE...
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... yes
checking for krb5-config... /usr/kerberos/bin/krb5-config
checking for pkg-config... /usr/bin/pkg-config
checking whether build with IMAP works... yes
checking whether rfc822_output_address_list function present... no
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
这是安装时的信息,给参考下吧

mervin 发表于 2012-3-4 21:48:11

回复 2# 的帖子

这是我“make test”后的信息
PASS Bug #31142 test #1 (imap_mail_compose() generates incorrect output)
PASS Bug #31142 test #2 (imap_mail_compose() generates incorrect output)
PASS Bug #32589 (crash inside imap_mail_compose() function)
PASS Bug #35669 (imap_mail_compose() crashes with multipart-multiboundary-email)
PASS Bug #40854 (imap_mail_compose() creates an invalid terminator for multipart e-mails)
PASS Bug #44098 (imap_utf8() returns only capital letters)
PASS Bug #45705 test #1 (imap rfc822_parse_adrlist() modifies passed address parameter)
PASS Bug #45705 test #2 (imap rfc822_parse_adrlist() modifies passed address parameter)
PASS Bug #46918 (imap_rfc822_parse_adrlist host part not filled in correctly)
PASS Test imap_8bit() function : basic functionality
SKIP Test imap_alerts() function : error conditions reason: could not connect to mailbox {localh                              ost/norsh}
SKIP Test imap_append() function : basic functionality reason: could not connect to mailbox {loc                              alhost/norsh}
PASS Test imap_base64() function : basic functionality
PASS Test imap_binary() function : basic functionality
SKIP imap_body() incorrect parameter count reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_body() function : basic functionality reason: could not connect to mailbox {localho                              st/norsh}
SKIP Test imap_bodystruct() function : basic functionality reason: could not connect to mail                              box {localhost/norsh}
SKIP Test imap_clearflag_full() function : basic functionality reason: could not connect                               to mailbox {localhost/norsh}
SKIP Test imap_close() function : basic functionality reason: could not connect to mailbox {local                              host/norsh}
SKIP Test imap_close() function : error conditions - incorrect number of args reason: could not c                              onnect to mailbox {localhost/norsh}
PASS Test imap_close() function : usage variations - different data types as $stream_id arg
SKIP Test imap_close() function : usage variations - different data types as $options arg re                              ason: could not connect to mailbox {localhost/norsh}
PASS Test imap_close() function : usage variations - different streams
SKIP Test imap_close() function : usage variations - different ints as $options arg reason:                               could not connect to mailbox {localhost/norsh}
SKIP Test imap_createmailbox() function : basic functionality reason: could not connect t                              o mailbox {localhost/norsh}
SKIP Test imap_errors() function : basic functionality reason: could not connect to mailbox {loc                              alhost/norsh}
SKIP imap_num_recent() incorrect parameter count reason: could not connect to mailbox {localhos                              t/norsh}
SKIP Test imap_fetch_overview() function : basic functionality reason: could not connect                               to mailbox {localhost/norsh}
SKIP Test imap_fetch_overview() function : error conditions - incorrect number of args r                              eason: could not connect to mailbox {localhost/norsh}
PASS Test imap_fetch_overview() function : usage variations - diff data types as $stream_id arg
SKIP Test imap_fetch_overview() function : usage variations - diff data types as $msg_no arg reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetch_overview() function : usage variations - FT_UID option reason:                               could not connect to mailbox {localhost/norsh}
PASS Test imap_fetch_overview() function : usage variations - different resources as $stream_id
SKIP Test imap_fetch_overview() function : usage variations - $msg_no argument reas                              on: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetch_overview() function : usage variations - multipart message rea                              son: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetchbody() function : basic functionality reason: could not connect to mailbo                              x {localhost/norsh}
SKIP Test imap_fetchbody() function : error conditions - incorrect number of args reason: cou                              ld not connect to mailbox {localhost/norsh}
PASS Test imap_fetchbody() function : usage variation - diff data types as $stream_id arg
SKIP Test imap_fetchbody() function : usage variation - diff data types as $msg_no arg r                              eason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetchbody() function : usage variation - diff data types as $section arg                                reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetchbody() function : usage variations - FT_UID option reason: could not                               connect to mailbox {localhost/norsh}
PASS Test imap_fetchbody() function : usage variation - different resources as $stream_id arg
SKIP Test imap_fetchbody() function : usage variations - $msg_no arg reason: could not c                              onnect to mailbox {localhost/norsh}
SKIP Test imap_fetchheader() function : basic functions reason: could not connect to mailbo                              x {localhost/norsh}
SKIP Test imap_fetchheader() function : error conditions - incorrect number of args reason:                               could not connect to mailbox {localhost/norsh}
PASS Test imap_fetchheader() function : usage variations - diff data types as $stream_id arg
SKIP Test imap_fetchheader() function : usage variations - diff data types for $msg_no arg reason: could not connect to mailbox {localhost/norsh}
SKIP Test imap_fetchheader() function : usage variations - FT_UID option reason: could                               not connect to mailbox {localhost/norsh}
PASS Test imap_fetchheader() function : usage variations - diff resource types as $stream_id
SKIP Test imap_fetchheader() function : usage variations - $msg_no argument reason: co                              uld not connect to mailbox {localhost/norsh}
SKIP imap_headers() incorrect parameter count reason: could not connect to mailbox {localhost/norsh}
SKIP imap_num_msg() incorrect parameter count reason: could not connect to mailbox {localhost/n                              orsh}
SKIP imap_expunge() incorrect parameter count reason: could not connect to mailbox {localhos                              t/norsh}
SKIP imap_open() incorrect parameter count reason: could not connect to mailbox {localhost/norsh}
SKIP imap_ping() incorrect parameter count reason: could not connect to mailbox {localhost/norsh}
PASS imap_utf8() tests
=====================================================================
TIME END 2012-03-04 21:41:11

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested   :   43
---------------------------------------------------------------------

Number of tests :   56                21
Tests skipped   :   35 ( 62.5%) --------
Tests warned    :    0 (0.0%) (0.0%)
Tests failed    :    0 (0.0%) (0.0%)
Expected fail   :    0 (0.0%) (0.0%)
Tests passed    :   21 ( 37.5%) (100.0%)
---------------------------------------------------------------------
Time taken      :    2 seconds
=====================================================================

mervin 发表于 2012-3-4 21:49:27

/bin/sh /root/lnmp0.8/php-5.2.17/ext/imap/libtool --mode=install cp ./imap.la /root/lnmp0.8/php-5.2.17/ext/imap/modules
cp ./.libs/imap.so /root/lnmp0.8/php-5.2.17/ext/imap/modules/imap.so
cp ./.libs/imap.lai /root/lnmp0.8/php-5.2.17/ext/imap/modules/imap.la
PATH="$PATH:/sbin" ldconfig -n /root/lnmp0.8/php-5.2.17/ext/imap/modules
----------------------------------------------------------------------
Libraries have been installed in:
/root/lnmp0.8/php-5.2.17/ext/imap/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.


=====================================================================
PHP : /usr/local/php/bin/php
PHP_SAPI : cli
PHP_VERSION : 5.2.17p1
ZEND_VERSION: 2.2.0
PHP_OS : Linux - Linux diahosting.com 2.6.18-238.9.1.el5xen #1 SMP Tue Apr 12 19:32:47 EDT 2011 i686
INI actual : /root/lnmp0.8/php-5.2.17/ext/imap/tmp-php.ini
More .INIs :
CWD : /root/lnmp0.8/php-5.2.17/ext/imap
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START 2012-03-04 21:41:09
=====================================================================
页: [1]
查看完整版本: imap 探针显示支持 发信却失败