爱心技术专栏专题

email-Mail服务器的配置sendmail

摘录:linux 来源:linux 加入时间:2007年04月23日
摘要:
email-Mail服务器的配置sendmail

Mail服务器的配置sendmail
2006-03-08 15:18 pm
来自:Linux文档
现载:www.51dibs.com
linux

邮件在网络上是一个应用最广的服务 …

email-Mail服务器的配置sendmail

站点:爱心种子小博士 关键字: email-Mail服务器的配置sen

email-Mail服务器的配置sendmail
Mail服务器的配置sendmail

2006-03-08 15:18 pm
来自:Linux文档
现载:www.51dibs.com
linux

邮件在网络上是一个应用最广的服务 ,那么在linux安装好后 就有个一个强大的mail服务器了 也就是sendmial软件。默认装好后是还不能工作的。还要根据你的具体网络来配置他才能正常工作了。
前提配置好你的网络和dns

启动sendmial 输入命令:
/etc/rc.d/init.d/sendmail start
测试一下是否工作正常:
telnet localhost 25回车 出现
connected to localhost.localdomain (127.0.0.1).
escap character is ^].
220 mail.uc88.domain ESMTP sendmail .......
按ctrl+]来结束
telnet>q退出

以上表示工作正常

接下来编辑文件/etc/mail/access 修改如下:
..........
........
192.168.2 RELAY
mail.uc88.domain RELAY
mail RELAY
#以上表示允许网域192.168.2 和mail.uc88.com能够使用sendmail来中继信件
保存后 输入命令
makemap hash /etc/mail/access < /etc/mail/access 来把设定写入成sendmail的数据

在/etc/hosts加入:
192.168.2.1 mail.uc88.domail mail

在/etc/resolv.conf加入:
nameserver 192.168.2.1

在/etc/mail/local-host-names加入:
mail.uc88.domain

启动pop和imap服务器
修改/etc/services里把如下几行前的#号去掉
pop2 109/tcp ........
pop2 109/udp .........
pop3 .........................
pop3 ...................
imp2 ..................
imp2 ...................

保存后 要启动imap和pop3服务 请编辑
/etc/xinetd.d/imap和 ipop3把里面的
disable =yes 改为:
disable =no

然后重读设定文件使它生效:
/etc/rc.d/init.d/xinetd reload

用如下命令检测pop
telnet localhost 110

用如下命令检测imap
telnet localhost 143

一切ok后 就可以在客户机上收发邮件拉~!爽!


祝 好运


__________________


转载:转载请保留本信息,本文来自http://www.51dibs.com/lp07/la/a8/l_a_52d7ab8f1ee91da7.html