免费注册 查看新帖 |

Chinaunix

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

[Mail] RH7。1 中使用SENDMAIL(救命,急!!!!!) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2001-11-29 08:30 |只看该作者 |倒序浏览
我在RED HAT 7。1 中使用SENDMAIL 时,只能在服务器使用,不能在客户端使用。
从网上知道需要在SENDMAIL。CF中作修改,但不懂如何修改,还请各位大侠帮忙,
帮忙啦!!!

论坛徽章:
0
2 [报告]
发表于 2001-11-29 10:49 |只看该作者

RH7。1 中使用SENDMAIL(救命,急!!!!!)

我的安装配置是这样的:
1、安装sendmail软件包
2、安装IMAP4软件包
3、编辑/etc/mail/sendmail.mc
//前边省略
dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl 注释掉 可用别的机子发信
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not have 24x7 DNS do need this.
dnl FEATURE(`accept_unresolvable_domains')dnl注释掉 可用IP形式
DAEMON_OPTIONS(`Port=25,Name=MTA')dnl添加
DAEMON_OPTIONS(`Port=587,Name=MSA,M=Ea')dnl添加
dnl FEATURE(`relay_based_on_MX')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

4、编译/etc/mail/sendmail.mc
#m4 /etc/mail/sendmail.mc >; /etc/sendmail.cf
5、编辑/etc/sendmail.cf
Cwlocalhost Qin 202.112.105.172   改这一行
6、编辑/etc/mail/.access
# Check the /usr/share/doc/sendmail-8.11.2/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail-8.11.2/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomainRELAY
localhostRELAY
202.112.105.172RELAY
202.112.105RELAY

7、编辑/etc/xinetd.d/.imap   .ipop3      最后一行 disable= no
8、重启/etc/rc.d/init.d/.xinetd
9、启动sendmail /etc/rc.d/init.d/sendmail start
10、OK!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP