歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> Unix教程 >> 一個在Solaris下配置SMTP(sendmail)+POP3(qpopper)的例子

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

日期:2017/2/27 17:44:42   编辑:Unix教程
SendmailSMTPPOP3
  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.這個僅僅是一個演示功能的安裝過程,在一個生產的環境中,一般還需要進行
  
Copyright © Linux教程網 All Rights Reserved