免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
401 [报告]
发表于 2007-11-28 13:10 |只看该作者
恩,我再看看foxmail的设置.

Nov 27 21:46:44 mail postfix/smtpd[6659]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled


NIS一定需要开启吗?应该怎么开这个呢?

论坛徽章:
0
402 [报告]
发表于 2007-11-28 13:38 |只看该作者
再麻烦marion帮我看看,这是放在外网给163发邮件的日志,邮件是发出去了,但是authdaemond却是失败,我找不到是哪的原因.


Nov 28 13:05:24 mail postfix/pickup[7826]: 647D190804E: uid=0 from=<root>
Nov 28 13:05:24 mail postfix/cleanup[7828]: 647D190804E: message-id=<20071127200205.647D190804E@mail.hxrxx.cn>
Nov 28 13:05:24 mail postfix/qmgr[7827]: 647D190804E: from=<root@hxrxx.cn>, size=20627, nrcpt=1 (queue active)
Nov 28 13:05:24 mail authdaemond: received userid lookup request: root@hxrxx.cn
Nov 28 13:05:24 mail authdaemond: authmysql: trying this module
Nov 28 13:05:24 mail authdaemond: SQL query: SELECT username, "", password, '1001', '1001', '/var/mailbox/', maildir, concat(quota,'S'), name, "" FROM mailbox WHERE username = "root@hxrxx.cn" AND (active='1')
Nov 28 13:05:24 mail authdaemond: zero rows returned
Nov 28 13:05:24 mail authdaemond: authmysql: REJECT - try next module
Nov 28 13:05:24 mail authdaemond: FAIL, all modules rejected
Nov 28 13:05:24 mail postfix/pipe[7832]: 647D190804E: to=<root@hxrxx.cn>, orig_to=<root>, relay=maildrop, delay=32599, status=bounced (user unknown. Command output: Invalid user specified. )Nov 28 13:05:24 mail postfix/cleanup[7828]: 75BAF908050: message-id=<20071128050524.75BAF908050@mail.hxrxx.cn>
Nov 28 13:05:24 mail postfix/qmgr[7827]: 75BAF908050: from=<>, size=22352, nrcpt=1 (queue active)
Nov 28 13:05:24 mail postfix/qmgr[7827]: 647D190804E: removed
Nov 28 13:05:24 mail authdaemond: received userid lookup request: root@hxrxx.cn
Nov 28 13:05:24 mail authdaemond: authmysql: trying this module
Nov 28 13:05:24 mail authdaemond: SQL query: SELECT username, "", password, '1001', '1001', '/var/mailbox/', maildir, concat(quota,'S'), name, "" FROM mailbox WHERE username = "root@hxrxx.cn" AND (active='1')
Nov 28 13:05:24 mail authdaemond: zero rows returned
Nov 28 13:05:24 mail authdaemond: authmysql: REJECT - try next module
Nov 28 13:05:24 mail authdaemond: FAIL, all modules rejected
Nov 28 13:05:24 mail postfix/pipe[7832]: 75BAF908050: to=<root@hxrxx.cn>, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. )
Nov 28 13:05:24 mail postfix/qmgr[7827]: 75BAF908050: removed
Nov 28 13:05:35 mail postfix/smtpd[7837]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Nov 28 13:05:35 mail postfix/smtpd[7837]: connect from yanghui[192.168.0.13]
Nov 28 13:05:35 mail postfix/smtpd[7837]: AB20E90804A: client=yanghui[192.168.0.13], sasl_method=LOGIN, sasl_username=test@hxrxx.cn
Nov 28 13:05:36 mail postfix/cleanup[7828]: AB20E90804A: message-id=<200711272159193439325@hxrxx.cn>
Nov 28 13:05:36 mail postfix/qmgr[7827]: AB20E90804A: from=<test@hxrxx.cn>, size=3477, nrcpt=1 (queue active)
Nov 28 13:05:36 mail postfix/smtp[7844]: AB20E90804A: to=<yh81521@163.com>, relay=mx.mail.163.split.netease.com[220.181.12.52], delay=1, status=sent (250 Mail OK queued as mx2,NMCowKC7JgMw+kxHu3SflQ==.7870S2 1196227120)
Nov 28 13:05:36 mail postfix/qmgr[7827]: AB20E90804A: removed
Nov 28 13:05:40 mail postfix/smtpd[7837]: disconnect from yanghui[192.168.0.13]
Nov 28 13:05:50 mail postfix/postfix-script: stopping the Postfix mail system
Nov 28 13:05:50 mail postfix/master[7825]: terminating on signal 15

论坛徽章:
0
403 [报告]
发表于 2007-11-28 18:32 |只看该作者

回复 #402 yh81521 的帖子

先查看配置文件是否全部正确配置。

论坛徽章:
0
404 [报告]
发表于 2007-11-29 17:58 |只看该作者
找到认证过不去的问题所在了,原来没开mysql的日志,今天打开了.
071129 17:18:02      10 Connect     postfix@localhost on postfix
                     10 Quit
                     11 Connect     postfix@localhost on postfix
                     11 Quit
                     12 Connect     postfix@localhost on postfix
                     12 Query       START TRANSACTION
                     12 Query       SELECT password FROM mailbox WHERE username='test.cn@mail.hxrxx.cn' and domain='mail.hxrxx.cn' and active='1'
                     12 Query       SELECT password FROM mailbox WHERE username='test.cn@mail.hxrxx.cn' and domain='mail.hxrxx.cn' and active='1'
                     12 Query       COMMIT
                     12 Quit
                     13 Connect     postfix@localhost on postfix
                     13 Quit


smtpd.conf 设置如下:
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login
sql_engine: mysql
sql_hostnames: localhost
sql_user: postfix
sql_passwd: postfix
sql_database: postfix
sql_select: SELECT password FROM mailbox WHERE username='%u@%r' and domain='%r' and active='1'

最后一条语句 %u和%r 是怎么取值的,不知道该改哪啊,  老大帮帮忙!!!!!

论坛徽章:
0
405 [报告]
发表于 2007-11-30 15:59 |只看该作者

ding

ding......ding.......ding

论坛徽章:
0
406 [报告]
发表于 2007-12-02 10:33 |只看该作者

ExtMail怎么不能修改用户密码?

想修改自己的个人信箱密码的时候,发现不能修改啊。

出现的错误是


DBD::mysql::st execute failed: Unknown column 'clearpwd' in 'field list' at /xxxer/extmail/libs/Ext/Auth/MySQL.pm line 175.


用的是ExtMail 1.0.3 版本。

论坛徽章:
0
407 [报告]
发表于 2007-12-02 18:29 |只看该作者
:em49: :em49: :em49: :em49: :em49: :em49: :em49:

论坛徽章:
0
408 [报告]
发表于 2007-12-02 21:49 |只看该作者
我在main.cf中设置
sender_bcc_maps = hash:/etc/postfix/sender_maps
recipient_bcc_maps = hash:/etc/postfix/recipient_maps


sender_maps  ,recipient_maps 的内容如下
user1@domain1.com          user2@domain.com

postmap  
postfix   reload
问题是:如果user1发邮件的话user2会收到3封user1发送出去的邮件,如果给user1发邮件的话user2也会收到3封发往user1的邮件,这是为什么?
之前我有提过这个问题,那此是每次user2都收到两封同样的邮件,我重新安装了spamassassin  amavisd后就变成了,user2收到3封同样的邮件?盼望老大帮忙看看,等待中.................................

[ 本帖最后由 hackerzyh 于 2007-12-2 21:50 编辑 ]

论坛徽章:
0
409 [报告]
发表于 2007-12-04 15:49 |只看该作者
我在装第六步的时候 出现了安装php-5.2.3 无法make  
我附了图片 难道是要安装libpng-1.2.16.tar

err1.PNG (106.04 KB, 下载次数: 33)

err1.PNG

论坛徽章:
0
410 [报告]
发表于 2007-12-05 12:58 |只看该作者

回复 #406 fuleru 的帖子

查看DBD的版本是否过新,或过旧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP