歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> Linux如何安裝配置Postfix

Linux如何安裝配置Postfix

日期:2017/2/28 11:55:58   编辑:Linux技術

  postfix是Wietse Venema想要為使用最廣泛的sendmail提供替代品的一個嘗試。那麼Linux如何安裝配置Postfix呢?下文學習啦小編就分享了Linux安裝配置Postfix的方法,希望對大家有所幫助。

  Linux安裝配置Postfix方法

  1、准備壓縮包 www.2cto.com

  postfix-2.8.8.tar.gz

  2、解壓

  #tar -zxvf postfix-2.8.8.tar.gz

  #cd postfix-2.8.8

  #make

  #make install

  注:根據安裝提示創建一下用戶和組 www.2cto.com

  #groupadd postfix

  #useradd -g postfix postfix

  #groupadd postdrop

  然後

  #make install

  3、交互會話,進行測試

  #/usr/sbin/postfix start

  #netstat -anpt //master進程是否成功開啟

  #telnet 192.168.10.43 25

  root@localhost ~]# telnet 192.168.10.43 25

  Trying 192.168.10.43...

  Connected to 192.168.10.43 (192.168.10.43).

  Escape character is '^]'.

  220 localhost.localdomain ESMTP Postfix

  helo [email protected]

  250 localhost.localdomain

  mail from:

  250 2.1.0 Ok

  rcpt to:

  250 2.1.5 Ok

  data

  354 End data with .

  jfkdljfld

  .

  250 2.0.0 Ok: queued as 88B3B2A68032

  quit

  221 2.0.0 Bye

  Connection closed by foreign host.

  到接收郵箱可以收到郵件

  4.問題

  如果安裝包庫不在默認目錄下

  #vi /etc/ld.so.conf

  /root/lib

  #ldconfig

看過“Linux如何安裝配置Postfix”的人還看了:

Copyright © Linux教程網 All Rights Reserved