免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2219 | 回复: 8
打印 上一主题 下一主题

[Mail] 测试smtpd时总是登不上 急急急 大家帮忙啊 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-02-06 14:44 |只看该作者 |倒序浏览
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
|

论坛徽章:
0
2 [报告]
发表于 2007-02-06 15:03 |只看该作者
请高手们帮帮忙啊

论坛徽章:
0
3 [报告]
发表于 2007-02-06 17:09 |只看该作者
你是用的什么软件!是sendmail还是postfix , 还是其他的什么.如果是sendmail 或是postfix 应该是配置文件的问题.
贴出来看看!你在dodolook!

论坛徽章:
0
4 [报告]
发表于 2007-02-07 10:19 |只看该作者
是postfix

论坛徽章:
0
5 [报告]
发表于 2007-02-07 13:33 |只看该作者
我也遇到了跟你一样的问题。用的postfix
我的配置文件为:
修改/etc/postfix/main.cf的配置:

myhostname = mail.cngnu.org

mydomain = cngnu.org

myorigin = $mydomain

mydestination = $mydomain,$myhostname

mynetworks_style = host

  

alias_maps = hash:/etc/postfix/aliases

alias_database = hash:/etc/postfix/aliases



home_mailbox = Maildir/




mailbox_transport = cyrus

fallback_transport = cyrus



virtual_maps = hash:/etc/postfix/virtual,mysql:/etc/postfix/virtual.mysql



smtpd_sasl_auth_enable = yes

broken_sasl_auth_clients = yes

smtpd_sasl_security_options = noanonymous



smtpd_recipient_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    check_recipient_access mysql:/etc/postfix/filter.mysql,
    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,
    permit

并新建了如下二个文件:

[root@mail postfix]# vi virtual.mysql




#

# mysql config file for alias lookups on postfix

#



# the user name and password to log into the mysql server

hosts = localhost

user = mail

password = secret



# the database name on the servers

dbname = mail



# the table name

table = USER



select_field = FORWARD

where_field = USERNAME

additional_conditions = and STATUS = 1 limit 1




[root@mail postfix]# vi filter.mysql




#

# mysql config file for filter flag on postfix

#



# the user name and password to log into the mysql server

hosts = localhost

user = mail

password = secret



# the database name on the servers

dbname = mail



# the table name

table = USER



select_field = FILTER

# OK : ignore filter

# DUNNO : filter

where_field = MAIL

additional_conditions = and STATUS = 1 limit 1

论坛徽章:
0
6 [报告]
发表于 2007-02-07 13:44 |只看该作者
我装mynetworks = 127.0.0.0/8 192.168.0.0/16 改成这样也不行呀。。。。。晕死了。

还有一个问题我的pam_mysql 安装不上,无法MAKE

提示:[root@localhost pam_mysql-0.7RC1]# make
make: *** No targets specified and no makefile found.  Stop.

[ 本帖最后由 守住每一天 于 2007-2-7 13:51 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2007-02-07 20:37 |只看该作者
[root@localhost mysql]# cat /etc/postfix/virtual.mysql
#

# mysql config file for alias lookups on postfix

#
# the user name and password to log into the mysql server

hosts = localhost

user = mail

password = secret

# the database name on the servers

dbname = mail

# the table name

table = USER

select_field = FORWARD

where_field = USERNAME

additional_conditions = and STATUS = 1 limit 1

论坛徽章:
0
8 [报告]
发表于 2007-02-07 20:37 |只看该作者
日志如下。
Feb 7 14:49:14 localhost postfix/master[13524]: warning: process /usr/libexec/postfix/smtpd pid 13663 exit status 1
Feb 7 14:49:14 localhost postfix/master[13524]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Feb 7 14:50:14 localhost postfix/smtpd[13671]: fatal: /etc/postfix/virtual.mysql, line 8: missing '=' after attribute name: "ql config file for alias lookups on postfix"
Feb 7 14:50:15 localhost postfix/master[13524]: warning: process /usr/libexec/postfix/smtpd pid 13671 exit status 1
Feb 7 14:50:15 localhost postfix/master[13524]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Feb 7 14:50:54 localhost postfix/postfix-script: stopping the Postfix mail system
Feb 7 14:50:54 localhost postfix/master[13524]: terminating on signal 15
Feb 7 14:50:56 localhost postfix/postfix-script: starting the Postfix mail system
Feb 7 14:50:56 localhost postfix/master[13766]: daemon started -- version 2.2.9, configuration /etc/postfix

论坛徽章:
0
9 [报告]
发表于 2007-02-07 20:46 |只看该作者
Feb  7 20:41:28 localhost postfix/master[32257]: warning: process /usr/libexec/postfix/smtpd pid 32439 exit status 1
Feb  7 20:41:28 localhost postfix/master[32257]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Feb  7 20:42:28 localhost postfix/smtpd[32440]: fatal: unsupported dictionary type: mysql
Feb  7 20:42:29 localhost postfix/master[32257]: warning: process /usr/libexec/postfix/smtpd pid 32440 exit status 1
Feb  7 20:42:29 localhost postfix/master[32257]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Feb  7 20:43:29 localhost postfix/smtpd[32441]: fatal: unsupported dictionary type: mysql
Feb  7 20:43:30 localhost postfix/master[32257]: warning: process /usr/libexec/postfix/smtpd pid 32441 exit status 1
Feb  7 20:43:30 localhost postfix/master[32257]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP