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

王朝other·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

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.这个仅仅是一个演示功能的安装过程,在一个生产的环境中,一般还需要进行

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航