发新话题
打印

在Linux平台上安装基于Postfix、Courier-imap、Extmail的邮件系统 V 0.2.10

大哥帮帮我吧,按照你的方法安装好了系统,但是登陆extman,出现了这样的错误,如何解决?
谢谢先!
Can't locate Ext/CGI.pm in @INC (@INC contains: /usr/local/httpd/htdocs/extman/libs /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/local/httpd/htdocs/extman/libs/Ext/MgrApp.pm line 21. BEGIN failed--compilation aborted at /usr/local/httpd/htdocs/extman/libs/Ext/MgrApp.pm line 21. Compilation failed in require at /usr/local/httpd/htdocs/extman/libs/Ext/MgrApp/Login.pm line 19. BEGIN failed--compilation aborted at /usr/local/httpd/htdocs/extman/libs/Ext/MgrApp/Login.pm line 19. Compilation failed in require at index.cgi line 20.

我安装的是extman-0.13版的.

TOP

引用:
下面是引用feiwupiaoxue于2006-04-24 01:18发表的:
大哥帮帮我吧,按照你的方法安装好了系统,但是登陆extman,出现了这样的错误,如何解决?
谢谢先!
Can't locate Ext/CGI.pm in @INC (@INC contains: /usr/local/httpd/htdocs/extman/libs /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/local/httpd/htdocs/extman/libs/Ext/MgrApp.pm line 21. BEGIN failed--compilation aborted at /usr/local/httpd/htdocs/extman/libs/Ext/MgrApp.pm line 21. Compilation failed in require at /usr/local/httpd/htdocs/extman/libs/Ext/MgrApp/Login.pm line 19. BEGIN failed--compilation aborted at /usr/local/httpd/htdocs/extman/libs/Ext/MgrApp/Login.pm line 19. Compilation failed in require at index.cgi line 20.

我安装的是extman-0.13版的.
问题应当出在这步:
cd /usr/local/httpd/htdocs/extman/libs/Ext
./buildlink.sh build /usr/local/httpd/htdocs/extmail/libs/Ext/
确定一下有CGI.pm在/usr/local/httpd/htdocs/extman/libs/Ext/目录下面,它应当是一个逻辑链接。如果没有就建立一个逻辑链接到:/usr/local/httpd/htdocs/extmail/libs/Ext目录下。
欢迎访问我的blog http://www.7sunshine.cn/

TOP

非常感谢,根据大哥提示,我搞掂了,谢谢!

TOP

但是查看端口25并没有开启?不知道怎么办?
[root@asiamail ~]# netstat -ant | grep LISTEN
tcp      0    0 127.0.0.1:10024         0.0.0.0:*             LISTEN
tcp      0    0 0.0.0.0:139            0.0.0.0:*             LISTEN
tcp      0    0 0.0.0.0:110            0.0.0.0:*             LISTEN
tcp      0    0 0.0.0.0:143            0.0.0.0:*             LISTEN
tcp      0    0 0.0.0.0:111            0.0.0.0:*             LISTEN
tcp      0    0 0.0.0.0:23            0.0.0.0:*             LISTEN
tcp      0    0 0.0.0.0:631            0.0.0.0:*             LISTEN
tcp      0    0 0.0.0.0:824            0.0.0.0:*             LISTEN
tcp      0    0 0.0.0.0:445            0.0.0.0:*             LISTEN
tcp      0    0 :::80                :::*                LISTEN
tcp      0    0 :::22                :::*                LISTEN
[root@asiamail ~]#

不能收发信件啊,郁闷!

TOP

引用:
下面是引用feiwupiaoxue于2006-04-24 22:51发表的Re:在Linux平台上安装基于Postfix、Courier-imap、Extmail的:
但是查看端口25并没有开启?不知道怎么办?
[root@asiamail ~]# netstat -ant | grep LISTEN
tcp       0      0 127.0.0.1:10024             0.0.0.0:*                   LISTEN
tcp       0      0 0.0.0.0:139                0.0.0.0:*                   LISTEN
tcp       0      0 0.0.0.0:110                0.0.0.0:*                   LISTEN
.......
应该是postfix没启动,或启动不成功,呼叫postfix命令,参数start,即:
引用:
postfix start
如果系统报命令找不到,则使用全路径。
欢迎使用下列开源软件: 高性能邮件系统- ExtMail Spam Locker反垃圾邮件系统

TOP

按照楼主的方法make postfix2.2.8或者postfix2.2.10都会出现下面的错误!
[src/smtpd]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl -DUSE_TLS -g -O -I. -I../../include -DLINUX2 -c smtpd.c
In file included from smtpd.c:799:
./smtpd.h:20:18: sasl.h: No such file or directory
./smtpd.h:21:22: saslutil.h: No such file or directory
In file included from smtpd.c:799:
./smtpd.h:117: error: syntax error before "sasl_conn_t"
./smtpd.h:117: warning: no semicolon at end of struct or union
./smtpd.h:166: error: syntax error before '}' token
./smtpd.h:166: warning: data definition has no type or storage class
./smtpd.h:180: error: syntax error before '*' token
./smtpd.h:181: error: syntax error before '*' token
./smtpd.h:232: error: syntax error before '*' token
./smtpd.h:233: error: syntax error before '*' token
./smtpd.h:274: error: syntax error before '*' token
./smtpd.h:275: error: syntax error before '*' token
./smtpd.h:276: error: syntax error before '*' token
In file included from smtpd.c:800:
./smtpd_check.h:17: error: syntax error before '*' token
./smtpd_check.h:18: error: syntax error before '*' token
./smtpd_check.h:19: error: syntax error before '*' token
./smtpd_check.h:20: error: syntax error before '*' token
./smtpd_check.h:21: error: syntax error before '*' token
./smtpd_check.h:22: error: syntax error before '*' token
./smtpd_check.h:23: error: syntax error before '*' token
./smtpd_check.h:24: error: syntax error before '*' token
./smtpd_check.h:25: error: syntax error before '*' token
./smtpd_check.h:26: error: syntax error before '*' token
In file included from smtpd.c:801:
./smtpd_chat.h:15: error: syntax error before '*' token
./smtpd_chat.h:16: error: syntax error before '*' token
./smtpd_chat.h:17: error: syntax error before '*' token
./smtpd_chat.h:18: error: syntax error before '*' token
In file included from smtpd.c:802:
./smtpd_sasl_proto.h:14: error: syntax error before '*' token
./smtpd_sasl_proto.h:15: error: syntax error before '*' token
./smtpd_sasl_proto.h:16: error: syntax error before '*' token
./smtpd_sasl_proto.h:17: error: syntax error before '*' token
./smtpd_sasl_proto.h:18: error: syntax error before '*' token
In file included from smtpd.c:803:
./smtpd_sasl_glue.h:15: error: syntax error before '*' token
./smtpd_sasl_glue.h:16: error: syntax error before '*' token
./smtpd_sasl_glue.h:17: error: syntax error before '*' token
./smtpd_sasl_glue.h:18: error: syntax error before '*' token
./smtpd_sasl_glue.h:19: error: syntax error before '*' token
In file included from smtpd.c:804:
./smtpd_proxy.h:26: error: syntax error before '*' token
./smtpd_proxy.h:27: error: syntax error before '*' token
./smtpd_proxy.h:30: error: syntax error before '*' token
smtpd.c:966: error: syntax error before '*' token
smtpd.c:967: error: syntax error before '*' token
smtpd.c:968: error: syntax error before '*' token
smtpd.c:969: error: syntax error before '*' token
smtpd.c:1001: error: syntax error before '*' token
smtpd.c: In function `sasl_client_exception':
smtpd.c:1014: error: `state' undeclared (first use in this function)
smtpd.c:1014: error: (Each undeclared identifier is reported only once
smtpd.c:1014: error: for each function it appears in.)
smtpd.c: At top level:
smtpd.c:1040: error: syntax error before '*' token
smtpd.c: In function `helo_cmd':
smtpd.c:1044: error: `argc' undeclared (first use in this function)
smtpd.c:1045: error: `state' undeclared (first use in this function)
smtpd.c:1050: error: `argv' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:1076: error: syntax error before '*' token
smtpd.c: In function `ehlo_cmd':
smtpd.c:1088: error: `argc' undeclared (first use in this function)
smtpd.c:1089: error: `state' undeclared (first use in this function)
smtpd.c:1094: error: `argv' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:1218: error: syntax error before '*' token
smtpd.c:1219: warning: 'helo_reset' was used with no prototype before its definition
smtpd.c: In function `helo_reset':
smtpd.c:1220: error: `state' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:1227: error: syntax error before '*' token
smtpd.c: In function `mail_open_stream':
smtpd.c:1251: error: `state' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:1333: error: syntax error before '*' token
smtpd.c: In function `extract_addr':
smtpd.c:1366: error: `arg' undeclared (first use in this function)
smtpd.c:1402: error: `strict_rfc821' undeclared (first use in this function)
smtpd.c:1404: error: `state' undeclared (first use in this function)
smtpd.c:1425: error: `allow_empty_addr' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:1445: error: syntax error before '*' token
smtpd.c: In function `mail_cmd':
smtpd.c:1453: error: `state' undeclared (first use in this function)
smtpd.c:1476: error: `argc' undeclared (first use in this function)
smtpd.c:1477: error: `argv' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:1600: error: syntax error before '*' token
smtpd.c:1601: warning: 'mail_reset' was used with no prototype before its definition
smtpd.c: In function `mail_reset':
smtpd.c:1602: error: `state' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:1665: error: syntax error before '*' token
smtpd.c: In function `rcpt_cmd':
smtpd.c:1681: error: `state' undeclared (first use in this function)
smtpd.c:1686: error: `argc' undeclared (first use in this function)
smtpd.c:1687: error: `argv' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:1805: error: syntax error before '*' token
smtpd.c:1806: warning: 'rcpt_reset' was used with no prototype before its definition
smtpd.c: In function `rcpt_reset':
smtpd.c:1807: error: `state' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:1853: error: syntax error before '*' token
smtpd.c: In function `data_cmd':
smtpd.c:1880: error: `state' undeclared (first use in this function)
smtpd.c:1889: error: `argc' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2177: error: syntax error before '*' token
smtpd.c: In function `rset_cmd':
smtpd.c:2183: error: `argc' undeclared (first use in this function)
smtpd.c:2184: error: `state' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2201: error: syntax error before '*' token
smtpd.c: In function `noop_cmd':
smtpd.c:2222: error: `state' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2228: error: syntax error before '*' token
smtpd.c: In function `vrfy_cmd':
smtpd.c:2257: error: `state' undeclared (first use in this function)
smtpd.c:2261: error: `argc' undeclared (first use in this function)
smtpd.c:2267: error: `argv' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2294: error: syntax error before '*' token
smtpd.c: In function `etrn_cmd':
smtpd.c:2301: error: `state' undeclared (first use in this function)
smtpd.c:2311: error: `argc' undeclared (first use in this function)
smtpd.c:2316: error: `argv' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2368: error: syntax error before '*' token
smtpd.c: In function `quit_cmd':
smtpd.c:2374: error: `state' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2387: error: syntax error before '*' token
smtpd.c: In function `xclient_cmd':
smtpd.c:2410: error: `state' undeclared (first use in this function)
smtpd.c:2415: error: `argc' undeclared (first use in this function)
smtpd.c:2435: error: `argv' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2548: error: syntax error before '*' token
smtpd.c: In function `xforward_cmd':
smtpd.c:2578: error: `state' undeclared (first use in this function)
smtpd.c:2583: error: `argc' undeclared (first use in this function)
smtpd.c:2604: error: `argv' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2749: error: syntax error before '*' token
smtpd.c:2750: warning: 'chat_reset' was used with no prototype before its definition
smtpd.c: In function `chat_reset':
smtpd.c:2759: error: `state' undeclared (first use in this function)
smtpd.c:2759: error: `threshold' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2772: error: syntax error before '*' token
smtpd.c: In function `smtpd_start_tls':
smtpd.c:2785: error: `state' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2815: error: syntax error before '*' token
smtpd.c: In function `starttls_cmd':
smtpd.c:2817: error: `argc' undeclared (first use in this function)
smtpd.c:2818: error: `state' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2859: error: syntax error before '*' token
smtpd.c: In function `tls_reset':
smtpd.c:2866: error: `state' undeclared (first use in this function)
smtpd.c: At top level:
smtpd.c:2885: error: syntax error before '*' token
smtpd.c:2919: error: syntax error before '*' token
smtpd.c: In function `smtpd_proto':
smtpd.c:2945: error: `state' undeclared (first use in this function)
smtpd.c:2996: error: `service' undeclared (first use in this function)
smtpd.c: In function `smtpd_service':
smtpd.c:3143: error: syntax error before "state"
smtpd.c:3160: error: `state' undeclared (first use in this function)
make: *** [smtpd.o] Error 1
make: *** [update] Error 1


结果我改make -f Makefile.init makefiles \ OPT='-march=pentium4 -O2 -pipe -fomit-frame-pointer' \
'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl -DUSE_TLS' \
'AUXLIBS=-L/usr/lib -lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -lssl -lcrypto'
为:
make -f Makefile.init makefiles \ OPT='-march=pentium4 -O2 -pipe -fomit-frame-pointer' \
'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -DUSE_TLS' \
'AUXLIBS=-L/usr/lib -lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -lssl -lcrypto'

结果没有出现类似的错误,但是出现了上面的postfix启动不了的情况,察看日志也没有什么错误,不知道楼主碰到这种情况没有!

TOP

Building Postfix with Cyrus SASL support

The following assumes that the Cyrus SASL include files are in /usr/local/include, and that the Cyrus SASL libraries are in /usr/local/lib.

On some systems this generates the necessary Makefile definitions:

(for Cyrus SASL version 1.5.5):

   % make tidy # if you have left-over files from a previous build
   % make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
      -I/usr/local/include" AUXLIBS="-L/usr/local/lib -lsasl"

(for Cyrus SASL version 2.1.1):

   % make tidy # if you have left-over files from a previous build
   % make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
      -I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib -lsasl2"

On Solaris 2.x you need to specify run-time link information, otherwise ld.so will not find the SASL shared library:

(for Cyrus SASL version 1.5.5):

   % make tidy # if you have left-over files from a previous build
   % make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
      -I/usr/local/include" AUXLIBS="-L/usr/local/lib \
      -R/usr/local/lib -lsasl"

(for Cyrus SASL version 2.1.1):

   % make tidy # if you have left-over files from a previous build
   % make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
      -I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib \
      -R/usr/local/lib -lsasl2"

上面是postfix主页的说明.

TOP

现在终于可以收发信件了,原因是我配置amavisd-new时出现了问题.但是如何详细的配置amavisd-new,我还要慢慢的研究一下,多谢!

好文!

TOP

引用:
下面是引用feiwupiaoxue于2006-04-26 16:32发表的:
按照楼主的方法make postfix2.2.8或者postfix2.2.10都会出现下面的错误!
[src/smtpd]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl -DUSE_TLS -g -O -I. -I../../include -DLINUX2 -c smtpd.c
In file included from smtpd.c:799:
./smtpd.h:20:18: sasl.h: No such file or directory
.......
看看66楼

TOP

各位好,现在已经创建了一个新的讨论各种软件技术的群,包括EMail技术和其它软件技术,欢迎各位加入这个群。这个群的号码是:24071784。

TOP

好帖啊~我正好要做这个邮件系统 ~嘿嘿~多谢了~加油~楼主

TOP

http://192.168.1.1/extman/cgi/index.cgi 登录后,输入用户名:root@extmail.org  密码:extmail  后页面是这样的。
Can't call method "prepare" on an undefined value at /var/www/extman/libs/Ext/Mgr/MySQL.pm line 60.
[ Go Back ] >> Re-Login

好像是连不到数据库,这是怎么回事。

TOP

引用:
下面是引用huanghaojie于2006-08-10 15:29发表的Re:在Linux平台上安装基于Postfix、Courier-imap、Extmail的:
http://192.168.1.1/extman/cgi/index.cgi 登录后,输入用户名:root@extmail.org  密码:extmail  后页面是这样的。
Can't call method "prepare" on an undefined value at /var/www/extman/libs/Ext/Mgr/MySQL.pm line 60.
[ Go Back ] >> Re-Login

好像是连不到数据库,这是怎么回事。
楼上,你的这个问题在坛子里已经人给过答案了,你只要把MySQL.pm中的'RaiseError' => 0改为 1 就可以了。

TOP

我装好后,打不开 extmail 和 extman 页面。我查看了 http 日志,里面显示:
Premature end of script headers: index.cgi

怎么回事呢?

TOP

发新话题