免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: marion
打印 上一主题 下一主题

[Mail] RHEL4上安装基于postfix的全功能邮件服务器(全部使用目前最新源码包构建) [复制链接]

论坛徽章:
0
771 [报告]
发表于 2008-07-31 00:26 |只看该作者
原帖由 marion 于 2008-7-30 23:39 发表


指定引用文件的格式错误,比如类同如下的方式
mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf


########################Virtual Mailbox Settings########################
virtual_mailbox_base = /var/mailbox
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001
virtual_transport = maildrop
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1

我按你的方法这样写...我没看到问题请marion 兄给我指点

论坛徽章:
0
772 [报告]
发表于 2008-07-31 08:09 |只看该作者

回复 #770 bigbigsh 的帖子

你应该认真仔细的查看整个配置文件,而非仅仅那一段,我指出的是类同格式的错误,而非指你列出的那个段有错误。日志中已经指出错误了,为什么不能认真排查一下。

[ 本帖最后由 marion 于 2008-7-31 08:11 编辑 ]

论坛徽章:
0
773 [报告]
发表于 2008-08-01 01:30 |只看该作者
我还是没找到原因所在
[root@mailserver sbin]# egrep '(reject|warning|error|fatal|panic):' /var/log/mai
llog
Aug  1 02:06:18 mailserver pop3d: error: No such file or directory
Aug  1 02:06:18 mailserver pop3d: authentication error: No such file or director
y
Aug  1 02:06:27 mailserver pop3d: error: No such file or directory
Aug  1 02:06:27 mailserver pop3d: authentication error: No such file or director
y
Aug  1 02:06:32 mailserver pop3d: error: No such file or directory
Aug  1 02:06:32 mailserver pop3d: authentication error: No such file or director
y
Aug  1 02:09:27 mailserver pop3d: error: No such file or directory
Aug  1 02:09:27 mailserver pop3d: authentication error: No such file or director
y
Aug  1 02:10:12 mailserver pop3d: error: No such file or directory
Aug  1 02:10:12 mailserver pop3d: authentication error: No such file or director
y
Aug  1 02:13:11 mailserver pop3d: error: No such file or directory
Aug  1 02:13:11 mailserver pop3d: authentication error: No such file or director
y
Aug  1 02:36:34 mailserver pop3d: error: No such file or directory
Aug  1 02:36:34 mailserver pop3d: authentication error: No such file or director
y
Aug  1 02:54:13 mailserver postfix/smtpd[3120]: warning: dict_nis_init: NIS doma
in name not set - NIS lookups disabled
Aug  1 02:54:33 mailserver postfix/smtpd[3120]: NOQUEUE: reject: RCPT from unkno
wn[222.66.101.226]: 450 4.1.8 <girodelmondo@promozioni.postepay.it>: Sender addr
ess rejected: Domain not found; from=<girodelmondo@promozioni.postepay.it> to=<c
irce@dcas.cn> proto=ESMTP helo=<mail.ht-store.com>
[root@mailserver sbin]#
我把/var/mailbox给删除了..现在maillbox不能生成域目录..什么办

论坛徽章:
0
774 [报告]
发表于 2008-08-01 09:37 |只看该作者
真的很佩服楼主,此贴楼主能维护到现在真不容易!
 我按照楼主的第一贴的方式安装了相关的软件包,前面也出了不少问题,但也都Google解决了,现在已经安装到extmail和Extman了。当我打开Extmail输入你提供的默认用户名和密码登录报错,点免费注册也报错。
报如下错误“Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Apache错误信息
“[Fri Aug 01 07:19:40 2008] [notice] SIGHUP received.  Attempting to restart
[Fri Aug 01 07:19:40 2008] [notice] Apache/2.2.8 (Unix) PHP/5.2.5 configured -- resuming normal operations
[Fri Aug 01 07:19:52 2008] [error] [client 58.211.x.x] /usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so: undefined symbol: mysql_init
[Fri Aug 01 07:19:52 2008] [error] [client 58.211.x.x] Premature end of script headers: signup.cgi
[Fri Aug 01 07:20:10 2008] [error] [client 58.211.x.x] /usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so: undefined symbol: mysql_init
[Fri Aug 01 07:20:10 2008] [error] [client 58.211.x.x] Premature end of script headers: signup.cgi

论坛徽章:
0
775 [报告]
发表于 2008-08-01 11:44 |只看该作者

回复 #772 bigbigsh 的帖子

可以重新执行extmail的sql脚本。。。

这样会重建所有数据库,另外不知你前面的问题搞得怎样。

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
776 [报告]
发表于 2008-08-01 12:01 |只看该作者
原帖由 ujjidt 于 2008-8-1 09:37 发表
真的很佩服楼主,此贴楼主能维护到现在真不容易!
 我按照楼主的第一贴的方式安装了相关的软件包,前面也出了不少问题,但也都Google解决了,现在已经安装到extmail和Extman了。当我打开Extmail输入你提供的默 ...



注意apache的perl模块或者cgi模块
还有suexec的问题

论坛徽章:
0
777 [报告]
发表于 2008-08-01 14:12 |只看该作者
我搞定了..谢谢marion兄~~你让我重新认真看postfix中文说书..
错的地方是这样
smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination

=等号左右要有空格..
再次感谢marion兄的文档

[ 本帖最后由 bigbigsh 于 2008-8-1 14:15 编辑 ]

论坛徽章:
0
778 [报告]
发表于 2008-08-01 19:09 |只看该作者

回复 #775 ruochen 的帖子

感谢你的回复,你能不能再说清楚一下,检查Perl和cgi模板的。
 还有,因为我Apache编译的时候没有加suexec的,现在无法使用suexec运行,我只能在Httpd.conf修改User,Gounp了。可是我这样修改以后其它的网站跑起来就会有问题,您有什么好的解决方案吗?还有,一般重新编译安装Apache对原来的PHp、Mysql环境会有影响吗?谢谢!

论坛徽章:
0
779 [报告]
发表于 2008-08-01 23:41 |只看该作者
原帖由 ujjidt 于 2008-8-1 19:09 发表
感谢你的回复,你能不能再说清楚一下,检查Perl和cgi模板的。
 还有,因为我Apache编译的时候没有加suexec的,现在无法使用suexec运行,我只能在Httpd.conf修改User,Gounp了。可是我这样修改以后其它的网站跑 ...



不用suexed也可以 重新编apache没关系的.认真看楼主的文档..没问题的..我就看楼主的文档现在已经好用了~

论坛徽章:
0
780 [报告]
发表于 2008-08-06 12:27 |只看该作者
我重新编译了Apache现在已经可以使用Suexec了,但是Suexec总是报错主目录有问题,而我的Suexec定义的目录用Suexec -V查看是正常的。现在Suexec.log还是报这个错“2008-08-06 11:56:37]: command not in docroot (/var/www/extsuite/extmail/cgi/index.cgi)
[2008-08-06 11:56:37]: uid: (510/postfix) gid: (510/510) cmd: index.cgi
[2008-08-06 11:56:37]: command not in docroot (/var/www/extsuite/extmail/cgi/index.cgi)
[2008-08-06 11:56:37]: uid: (510/postfix) gid: (510/510) cmd: index.cgi
[2008-08-06 11:56:37]: command not in docroot (/var/www/extsuite/extmail/cgi/index.cgi)
[2008-08-06 11:56:37]: uid: (510/postfix) gid: (510/510) cmd: index.cgi
[2008-08-06 11:56:37]: command not in docroot (/var/www/extsuite/extmail/cgi/index.cgi)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP