一个在Solaris下配置SMTP(sendmail)+POP3(qpopper)的例子

来源: 作者:otto
  A. 我们的机器环境:

1.Solaris 8 sparc
2.Sendmail 8.9.3+Sun (Solaris系统捆绑)
3.qpopper 3.0.1 (www.sunfreeware.com下载)

B.sendmail的基本配置非常的简单,一般系统自己已经做了大量相关的
设置,你所需要做的是定义一些自己的本地信息,以及一些安全/控制
信息,在Solaris下一般的配置文件在/etc/mail下
1.修改:69 line:
Cwlocalhost solaris8.abc.com abc.com

2.修改:73 line: 一般不需要修改,除非你的系统不能自动找到你的domain
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM

3.修改: 80 line: 我们清空这个定义
# "Smart" relay host (may be null)
#DSmailhost.$m
DS
4.修改:120 line:
# who I masquerade as (null for no masquerading) (see also $=M)
DMabc.com

C.目前为止,基本的设置结束,保存修改,reboot sendmail进程
bash-2.03$ ps -ef |grep sendmail
root 261 1 0 17:35:48 ? 0:00 /usr/lib/sendmail -bd -q15m
bash-2.03# kill -HUP 261

D.qpopper的安装也非常的简单:
1.建立一个临时目录 ./tmp
#gzip qpopper-3.0.1-sol8-sparc-local.gz
#pkgadd -d ./qpopper-3.0.1-sol8-sparc-local

2.编辑在/etc/inetd.conf文件 ,在最后加入:

pop3 stream tcp nowait root /usr/local/lib/popper qpopper -s

3.reboot inetd进程
bash-2.03$ ps -ef |grep inetd
root 191 1 0 17:35:43 ? 0:00 /usr/sbin/inetd -s
#kill -HUP 191

E.测试
1.
bash-2.03$ telnet solaris8.abc.com 25
Trying 132.254.254.76...
Connected to solaris8.abc.com.
Escape character is '^]'.
220 solaris8.abc.com ESMTP Sendmail 8.9.3+Sun/8.9.3; Thu, 2 Nov 2000 10:26:05 +)
help
214-This is Sendmail version 8.9.3+Sun
214-Topics:
214- HELO EHLO MAIL RCPT DATA
214- RSET NOOP QUIT HELP VRFY
214- EXPN VERB ETRN DSN
214-For more info use "HELP ".
214-To report bugs in the implementation contact Sun Microsystems
214-Technical Support.
214-For local information send email to Postmaster at your site.
214 End of HELP info
quit
221 solaris8.abc.com closing connection
Connection closed by foreign host.
bash-2.03$

2.
bash-2.03$ telnet solaris8.abc.com 110
Trying 132.254.254.76...
Connected to solaris8.abc.com.
Escape character is '^]'.
+OK QPOP (version 3.0.1) at solaris8.abc.com starting.
quit
+OK Pop server at solaris8.abc.com signing off.
Connection closed by foreign host.
bash-2.03$

3.还可以通过MUA软件[Foxmail(win9x)/Pine(unix)]测试我们的邮件环境


E.几个补充说明:
0.我们的演示环境与我们的关于DNS的技术资料配套,关于dns信息请参考该文.

1.根据sun.com资料,随solaris捆绑的sendmail软件是sun.com对于sendmail
的修改版本,包括了对于NIS 和NIS+的支持。

2.请随时查看系统日志文件/var/log/syslog,如果发现错误信息,及时解决纠正。
在系统默认状态下,系统会记录所有的邮件日志.

3.这个仅仅是一个演示功能的安装过程,在一个生产的环境中,一般还需要进行
许多的配置,进一步的知识可以参考:

RFC文档:RFC821/RFC822/RFC819/RFC976/RFC1123 (www.haoku.net提供RFC文档光盘)
Eric Allman : <> 中国电力出版社

时间:2001-11-01 00:00 来源: 作者:otto 原文链接

好文,顶一下
(0)
0%
文章真差,踩一下
(0)
0%
------分隔线----------------------------


把开源带在你的身边-精美linux小纪念品
无觅相关文章插件,快速提升流量