发新话题
打印

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

我编译的时候是 mods-shared=most ,到moudles目录下一看 好象没有mod-suexec.so文件。是不是要重新编译httpd 和 php了呀,或者有哪位朋友可以传个mod_suexec.so文件给我 我的apache2是2.2.0版本

TOP

现在suexec.so模块是编译进去了
可是虚拟主机这一块还是有问题呀
[root@localhost bin]# ./apachectl restart
[Tue Dec 20 15:04:01 2005] [warn] The ScriptAlias directive in /opt/apache2/conf/httpd.conf at line 471 will probably never match because it overlaps an earlier Alias.
引用:
NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin admin@leegoo.cn
DocumentRoot /opt/apache2/htdocs/extmail/html
Alias /extmail/cgi/ /opt/apache2/htdocs/extmail/cgi/
Alias /extmail/ /opt/apache2/htdocs/extmail/html/
Alias /extman/cgi/ /opt/apache2/htdocs/extman/cgi/
Alias /extman/ /opt/apache2/htdocs/extman/html/
ScriptAlias /extmail/cgi/ /opt/apache2/cgi-bin/extmail/cgi/
SuexecUserGroup postfix postfix
ServerName mail.leegoo.cn
ErrorLog logs/mail.example.com-error_log
CustomLog logs/mail.example.com-access_log common
</VirtualHost>

TOP

引用:
下面是引用akenlx于2005-12-20 11:54发表的:
现在suexec.so模块是编译进去了
可是虚拟主机这一块还是有问题呀
[root@localhost bin]# ./apachectl restart
[Tue Dec 20 15:04:01 2005] [warn] The ScriptAlias directive in /opt/apache2/conf/httpd.conf at line 471 will probably never match because it overlaps an earlier Alias.
注意:
引用:
Alias /extmail/cgi/ /opt/apache2/htdocs/extmail/cgi/
和:
引用:
ScriptAlias /extmail/cgi/ /opt/apache2/cgi-bin/extmail/cgi/
是重复的,所以有警告提示。

解决办法:
1)要么将Alias /extmail/cgi/ 换成ScriptAlias
2)要么不使用ScriptAlias,并增加:
<Location "/extmail/cgi/">
  Options +ExecCGI
</Location>

测试一下。
请引用或摘抄本站文章信息的朋友,保留本站链接及作者信息,保护版权,谢谢。

构建高性能大容量开源邮件系统- ExtMail

Postfix在中国官方网站

TOP

Can&#39;t call method "prepare" on an undefined value at /opt/httpd/htdocs/extman/libs/Ext/Mgr/MySQL.pm line 59.

在extman界面用初始用户名和密码登录时出的错,这是怎么回事呀


我在应用了0.12版的extman时,问题解决了

TOP

老大我在用WEB页面发信的时候总是被当成垃圾邮件给退回来,用foxmail客户端就没有问题,这是为什么呀
maillog内容如下:Jan  7 10:35:22 staffmail postfix/qmgr[3916]: 3BE061C4086: removed
Jan  7 10:35:22 staffmail postfix/smtp[4960]: 6D6CE1C4087: to=<harvey_liu@126.com>, relay=mx.mail.126.com[220.181.15.134], delay=0, status=sent (250 Mail OK queued as mx4,ZUETQwopv0OlK0gG.57149S2)
Jan  7 10:35:22 staffmail postfix/qmgr[3916]: 6D6CE1C4087: removed
Jan  7 10:37:18 staffmail postfix/pickup[4732]: 111671C4086: uid=503 from=<harvey.liu@zhaopin.com> orig_id=0FAF11C4087
Jan  7 10:37:18 staffmail postfix/cleanup[4985]: 111671C4086: message-id=<20060107023718.111671C4086@staffmail.zhaopin.com>
Jan  7 10:37:18 staffmail postfix/qmgr[3916]: 111671C4086: from=<harvey.liu@zhaopin.com>, size=499, nrcpt=1 (queue active)
Jan  7 10:37:18 staffmail postfix/smtpd[4990]: connect from staffmail[127.0.0.1]
Jan  7 10:37:18 staffmail postfix/smtpd[4990]: 384A41C4087: client=staffmail[127.0.0.1]
Jan  7 10:37:18 staffmail postfix/cleanup[4985]: 384A41C4087: message-id=<SSF8koB1Aw8Enw@staffmail>
Jan  7 10:37:18 staffmail postfix/qmgr[3916]: 384A41C4087: from=<>, size=2349, nrcpt=1 (queue active)
Jan  7 10:37:18 staffmail postfix/smtpd[4990]: disconnect from staffmail[127.0.0.1]
Jan  7 10:37:18 staffmail postfix/virtual[4993]: 384A41C4087: to=<harvey.liu@zhaopin.com>, relay=virtual, delay=0, status=sent (delivered to maildir)
Jan  7 10:37:18 staffmail postfix/qmgr[3916]: 384A41C4087: removed
Jan  7 10:37:18 staffmail amavis[3852]: (03852-04) Blocked SPAM, <harvey.liu@zhaopin.com> -> <harvey_liu@126.com>, quarantine: spam-F8koB1Aw8Enw.gz, Message-ID: <20060107023718.111671C4086@staffmail.zhaopin.com>, mail_id: F8koB1Aw8Enw, Hits: 6.629, 213 ms
Jan  7 10:37:18 staffmail postfix/smtp[4987]: 111671C4086: to=<harvey_liu@126.com>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.5.0 Ok, id=03852-04, BOUNCE)
Jan  7 10:37:18 staffmail postfix/qmgr[3916]: 111671C4086: removed

然后退信的内容如下:
标题: Considered UNSOLICITED BULK EMAIL from you
来自: "Content-filter at staffmail.zhaopin.com" <postmaster@staffmail.zhaopin.com>  
发给: <harvey.liu@zhaopin.com>
日期: Sat, 7 Jan 2006 10:37:18 +0800 (CST)
附件列表: unknown.bin (0.49K) unknown.txt (0.59K)

Your message to:
-> harvey_liu@126.com

was considered unsolicited bulk e-mail (UBE).
Subject: =3D?gb2312?B?dGVzdA=3D=3D?=3D
Return-Path: <harvey.liu@zhaopin.com>
Our internal reference code for your message is 03852-04/F8koB1Aw8Enw.

Delivery of the email was stopped!

TOP

引用:
下面是引用bios于2006-01-07 10:42发表的:
Jan 7 10:37:18 staffmail amavis[3852]: (03852-04) Blocked SPAM, <harvey.liu@zhaopin.com> -> <harvey_liu@126.com>, quarantine: spam-F8koB1Aw8Enw.gz, Message-ID: <20060107023718.111671C4086@staffmail.zhaopin.com>, mail_id: F8koB1Aw8Enw, Hits: 6.629, 213 ms
.......
在amavisd.conf文件设置$log_level = 5;,在日志中你可以看到更多的信息,试着调整一下你的amavisd和spam的设置,spam的调整是一个很耗费时间的事情。
欢迎访问我的blog http://www.7sunshine.cn/

TOP

必须要更新内核嘛??
为何一上来就要更新内核呀??
引用:
更新系统内核、BerkeleyDB、openssl 和zlib 等软件。

TOP

virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
-----mysql_virtual_alias_maps.cf ,mysql_virtual_domains_maps.cf等文件是自己创建的么?怎么我在/etc/postfix下看不到?

TOP

引用:
下面是引用ericzhao82于2006-02-14 13:56发表的:
必须要更新内核嘛??
为何一上来就要更新内核呀??
因为zlib软件前一段时间出了安全漏洞,amavisd安装的时候会检测zlib软件的版本,所以必须更新。其他几项我建议也更新一下,这样可以解决一些已知的bug,避免一些安全和性能问题。
欢迎访问我的blog http://www.7sunshine.cn/

TOP

引用:
下面是引用wozhaihu于2006-02-16 10:06发表的:
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
-----mysql_virtual_alias_maps.cf ,mysql_virtual_domains_maps.cf等文件是自己创建的么?怎么我在/etc/postfix下看不到?
extmail的发行包里面有,你可以copy过来然后按照自己的需要修改一下。
欢迎访问我的blog http://www.7sunshine.cn/

TOP

提交一个问题:
make -f Makefile.init makefiles \ OPT=&#39;-march=pentium4 -O2 -pipe -fomit-frame-pointer&#39; \
&#39;CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/(此处时否应该加入local/)include/sasl -DUSE_TLS&#39; \
&#39;AUXLIBS=-L/usr/lib -lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -lssl -lcrypto&#39;

因为如果按您这个指令做会make时会报错。
http://www.extmail.org/forum/viewthread.php?tid=1130

后经精灵萌萌大大指点,找到是sasl路径错误。

但这以上的步骤完全是按这个贴走的。

还有一个问题:
MySQL-devel-standard-4.1.16-1.rhel4.i386.rpm
MySQL-shared-standard-4.1.16-1.rhel4.i386.rpm
可以找到,但4.1.16.0的实在是找不到啊。


Apache安装中

MaxClients     1024

启动httpd时会出现警告:
WARNING: MaxClients (1024) is not an integer multiple
of ThreadsPerChild (25), lowering MaxClients to 1000
for a maximum of 40 child processes,
WARNING: MaxClients of 1000 would require 40 servers,
and would exceed the ServerLimit value of 16.
Automatically lowering MaxClients to 400.  To increase,
please see the ServerLimit directive.



mysql-max-4.1.16-pc-linux-gnu-i686-glibc23.tar.gz
安装时会报告好像是什么手册没有安装什么的错误,但MySQL可以正常启动。在info.php中也可以显示出mysql的版本号来。

目前发现上面这些问题。

TOP

安装完成 后  

收发邮件的时候 出错了  
日志:
Mar 17 14:42:24 www amavis[2266]: (01917-01) run_command: child process [2266]: Error closing main::stdin: Bad file descriptor at /usr/local/sbin/amavisd line 1872.\n
Mar 17 14:42:24 www amavis[1917]: (01917-01) TROUBLE in check_mail: parts_decode_ext FAILED: parsing file(1) results - missing last 1 results at (eval 38) line 154.
Mar 17 14:42:24 www amavis[1917]: (01917-01) sending SMTP response: "451 4.5.0 Error in processing, id=01917-01, parts_decode_ext FAILED: parsing file(1) results - missing last 1 results at (eval 38) line 154."
Mar 17 14:42:24 www amavis[1917]: (01917-01) timer stopped after DATA end
Mar 17 14:42:24 www amavis[1917]: (01917-01) PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20060317T144224-01917
Mar 17 14:42:24 www amavis[1917]: (01917-01) TIMING [total 132 ms] - SMTP EHLO: 16 (12%)12, SMTP pre-MAIL: 3 (2%)14, mkdir tempdir: 2 (2%)16, create email.txt: 2 (2%)18, SMTP pre-DATA-flush: 15 (11%)29, SMTP DATA: 27 (20%)50, body_digest: 3 (2%)52, gen_mail_id: 2 (1%)53, mkdir parts: 1 (1%)54, mime_decode: 25 (19%)73, rundown: 36 (27%)100
Mar 17 14:42:24 www amavis[1917]: (01917-01) ESMTP> 451 4.5.0 Error in processing, id=01917-01, parts_decode_ext FAILED: parsing file(1) results - missing last 1 results at (eval 38) line 154.
Mar 17 14:42:24 www amavis[1917]: (01917-01) idle_proc, 6: was busy, 102.0 ms, total idle 0.002 s, busy 0.131 s
Mar 17 14:42:24 www amavis[1917]: (01917-01) idle_proc, 5: was idle, 0.3 ms, total idle 0.003 s, busy 0.131 s
Mar 17 14:42:24 www amavis[1917]: (01917-01) prolong_timer after reading SMTP command: remaining time = 0 s
Mar 17 14:42:24 www amavis[1917]: (01917-01) ESMTP< QUIT\r\n
Mar 17 14:42:24 www amavis[1917]: (01917-01) ESMTP> 221 2.0.0 [127.0.0.1] amavisd-new closing transmission channel
Mar 17 14:42:24 www amavis[1917]: (01917-01) post_process_request_hook: timer stopped
Mar 17 14:42:24 www amavis[1917]: (01917-01) idle_proc, bye: was busy, 7.7 ms, total idle 0.003 s, busy 0.139 s
Mar 17 14:42:24 www amavis[1917]: (01917-01) load: 98 %, total idle 0.003 s, busy 0.139 s
Mar 17 14:42:24 www postfix/smtp[2265]: BEFB12BD8F: to=<root@wfinfo.net.cn>, orig_to=<root>, relay=127.0.0.1[127.0.0.1], delay=1748, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=01917-01, parts_decode_ext FAILED: parsing file(1) results - missing last 1 results at (eval 38) line 154. (in reply to end of DATA command))

TOP

按照楼主的做法  有2个问题  一个是amavis-new的版本应该用 2.4.0. pre6才不会出错

再一个就是编译apache时候 需要指明 suexec的docroot  否则cgi运行出错!!!

TOP

谢了

TOP

发新话题