suse架設postfix郵件伺服器
環境:
Suse Linux Enterprise Server 11(x86_64) SP1
Postfix 需要安裝的元件
套 件 名 稱 |
簡 單 描 述 |
postfix |
SMTP Server 的主要套件。 |
qpopper |
POP3 Server 的主要套件。 |
需先切到root使用者
zypper install postfix
suse使用qpopper來作為pop3工具,qpopper 自行下載
rpm -ivh qpopper-4.0.14-1.1.x86_64.rpm
Tips:欲架設具認證功能的郵件主機時,尚需多裝 cyrus-sasl及cyrus-sasl-saslauthd
如果你沒有域名,可以通過下面:
1.修改郵件伺服器的hosts檔案
vim /etc/hosts 在檔案中新增- 127.0.0.1 yourdomain.com
以管理員許可權執行一個文字編輯器,開啟"C:\Windows\System32\drivers\etc\hosts",在裡面新增
- 192.168.0.114 yourdomain.com
檢視套件內容
suse:~ # rpm -ql postfix
|
針對此套件內容裡的 /usr/sbin/postconf 及 /usr/sbin/postfix指令做個補充:
/usr/sbin/postconf: |
|
此為 Postfix 的設定工具,可以用來列出 Postfix 的預設引數及實際引數值,也可以直接在命令列上編輯設定引數,並將結果寫入 main.cf 中。舉例如下:
|
|
/usr/sbin/postfix: |
|
這是 postfix 的控管程式,可用來啟動、停止、重新載入 postfix 服務。舉例如下:
|
設定開機時啟動 Postfix 服務
suse:~ # chkconfig postfix 35 |
17.3.2 設定簡易的 Postfix Server
這一小節會先設定一些 Postfix 的基本引數,等 Postfix 能正常運作之後,再來進一步探討其他的引數設定。另外這裡是把 SMTP 及 POP3 Server 都架設在同一部主機上,這樣在實作上也會比較單純及方便。
設定 SMTP Server
suse:/etc/postfix #vi main.cf |
main.cf 中勿加home_mailbox=Mailbox/
不然telnet IP 110時,收不到郵件,會出現has 0 visible message 或者你使用outlook等客戶端時收不到郵件,
以上就是一些基本的設定引數。如您 Postfix 目前尚未啟動,則請使用以下任何一種方式來啟動吧:
suse:~ #/etc/init.d/postfix start |
將來要是作了任何的修改,那執行「rcpostfix restart」或「postfix reload」就行了。
SMTP 啟動之後的檢查
1. 本機使用 netstat 或 ps 指令檢查:
suse:~ # netstat -anp | grep :25 |
2.
3. Client 端使用 telnet 測試:
Windows Client 的測試 |
|
|
|
Linux Client 的測試 (順便模擬與 SMTP 的對話) |
|
|
設定 POP3 Server
目前這臺 Mail Server 只能提供寄信的服務,還不能提供給您的 Client 端收信,所以趕快去設定一下 POP3 就行了。POP3 服務是靠 xinetd 來啟動的,因此待會兒做完修改後,請記得重新啟動 xinetd。
suse:~ # vi /etc/xinetd.d/qpopper |
POP3 啟動之後的檢查
1. 本機使用 netstat 指令檢查:
suse:~ # netstat -anp | grep :110 |
2.
3. Client 端使用 telnet 測試:
Windows Client 的測試 |
|
|
|
Linux Client 的測試 (順便模擬與 POP3 的對話) |
|
|
您可以配置outlook,來檢驗能否收發郵件
轉載參考:
http://www.suse.url.tw/sles10/lesson17.htm
http://blog.csdn.net/dotuian/article/details/8552418
相關推薦
suse架設postfix郵件伺服器
環境: Suse Linux Enterprise Server 11(x86_64) SP1 Postfix 需要安裝的元件 套 件 名 稱 簡 單 描 述 postfix SMTP Server 的主要套件。 qpopper POP3 Ser
Linux中postfix郵件伺服器的搭建(親測)
postfix是Wietse Venema在IBM的GPL協議之下開發的MTA(郵件傳輸代理)軟體。postfix是Wietse Venema想要為使用最廣泛的sendmail提供替代品的一個嘗試。在Internet世界中,大部分的電子郵件都是通過sendmail來投遞的,大約有100萬
postfix郵件伺服器的關鍵安全策略
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!  
centos7搭建postfix郵件伺服器(騰訊雲)
用騰訊雲的先去開啟25埠,在控制檯頁面使用者名稱下面,,,我被坑了好久,,,, 在使用qq等郵件伺服器廠商提供的郵件服務後,發現他們的郵件傳送數量是有限制的,隨著公司的業務的需求下,我們需要搭建一個郵件伺服器,郵件伺服器可以幫助我們在一些提醒方面和訊息推送方面起到幫助。
(RHCE)3 postfix郵件伺服器搭建
在紅帽七中提供的郵件伺服器軟體為postfix ------- 它的配置檔案在/etc/postfix/main.cf 我們通過對它的配置 可以實現郵件伺服器 myhostname=server3.e
Linux總結筆記9-搭建Postfix郵件伺服器
1.修改主機名和部署好DNS伺服器 [[email protected] ~]# hostname mail.kangvcar.com [[email protected] ~]
Postfix郵件伺服器搭建之準備工作
說實話,Postfix郵件伺服器的搭建是一件很麻煩的事情,需要各種軟體之間的配置和除錯。在寫這篇文章之前,我也是搭建測試了不下於10次才算把整個流程給走通,今天剛好有時間把整個搭建過程記錄下來。 在正式安裝postfix之前,我們先來介紹在搭建之前所需要做的準備工作。
使用postfix+dovecot搭建一臺郵件伺服器
一,前期準備 1.各種賬號 *注意:如果是真實環境,使用者名稱密碼等會有複雜度要求,請酌情建立。 不用統一建立這些賬號,後面教程會一一提到 賬號 使用者名稱 密碼 說明 centos r
搭建Postfix-Devocot郵件伺服器詳細步驟
環境準備:CentOS6.5伺服器,安裝了MySQL5.6.23 指令碼準備:系統報警shell指令碼 1.克隆之前安裝好的CentOS系統,注意需要修改網絡卡配置資訊 注意點:(1)修改網絡卡的引數HWaddr為ifconfig -a 出現的一樣(原HWaddr是之前克隆的,沒有更
Redhat配置郵件伺服器(postfix+dovecot)
本實驗在redhat虛擬機器中實現:(虛擬機器通過橋接方式連線PC) PC IP:192.168.0.102 閘道器:192.168.0.1(路由器)DNS:192.168.0.1 Redhat IP:192.168.0.105 閘道器:192.168.0.1(路由器
Linux系統下郵件伺服器的搭建(Postfix+Dovecot)
對於網站來說,傳送各種例如註冊通知的郵件是很基本的一個需求,之前我一直用的是騰訊的企業郵箱,感覺挺方便的,直接可以繫結QQ郵箱接收郵件,網站配置一下SMTP也就可以發出郵件。但是在前幾天由於有重要資訊需要立即通知使用者,所以選擇了群發郵件的方式。在當我以為一切都是辣麼完美的時
CentOS利用postfix搭建郵件伺服器
之前我用nodemailer通過163郵箱來發送郵件,不過沒過幾天就一直ETIMEDOUT,不知道什麼原因,想著還是自己搭一個來發郵件可能靠譜點(flag?) 安裝postfix CentOS 7 自帶了postfix服務,在/etc/postfix 目錄下
阿里雲CentOS Linux6.5伺服器上用postfix +dovecot搭建郵件伺服器--親測好用
注:本文的郵件伺服器只用於傳送郵件,也就是STMP伺服器。 企業域名1082.cn 郵件伺服器 mail.1082.cn Mail伺服器名: mail.1082.cn IP:120.24.70.237 一、準備工作 1. 為郵件伺服器新增DNS解析 雖然不加DNS解
記 搭建郵件伺服器(postfix)踩過的坑
首先搭建 postfix 郵件伺服器本身難度不大,主要是當遇到問題了能夠找打解決辦法,有些問題是系統配置問題,你得找到地方修改,再次是有些問題不是那麼明顯的就在終端顯示出來了,你得學會分析日誌,分析日誌的前提是你得知道有對應日誌的存在。先附上鍊接 www.cmhello.
Ubuntu 16.04 佈置postfix、dovecot郵件伺服器
一、引言 postfix是Wietse Venema在IBM的GPL協議之下開發的MTA(郵件傳輸代理)軟體,也就是我們常說的SMTP服務端。postfix是Wietse Venema想要為使用最廣泛的sendmail提供替代品的一個嘗試。它更快、更容易管
郵件伺服器搭建(postfix+dovecot+foxmail)
一、安裝postfix 系統裡一般會有,不用安裝 沒有的(yum install -y postfix) 檢視安裝版本 postconf -d | grep mail_version 二、修改配置檔案 配置檔案 (安裝vim命令不安裝可以使用的vi
在CentOS下用Postfix配置郵件伺服器
在CentOS中,預設的郵件伺服器(SMTP方面)是sendmail,但sendmail有若干的缺點,比如,配置複雜、安全漏洞曾被多次發現- -並且依然存在隱患、郵件傳送速度慢等等,這裡就不再一一敘述。而另一個被廣泛應用於郵件服務方面的“Postfix”的缺點就少得多,或
阿里雲CentOS Linux伺服器上用postfix搭建郵件伺服器
注:本文的郵件伺服器只用於傳送郵件,也就是STMP伺服器。 一、準備工作 1. 為郵件伺服器新增DNS解析 雖然不加DNS解析也能把郵件發出去,但會被大多數郵件伺服器當作垃圾郵件。根據我們的實際經驗,需要新增三條DNS解析記錄:A記錄、MX記錄、TXT記錄。比如域名
Postfix公網郵件伺服器搭建
在阿里雲上租用一臺雲主機,然後申請一個域名,並在域名記錄中新增MX記錄,mail.youdomain.com記錄。郵箱伺服器必須新增MX記錄,不然在外域向你的郵箱伺服器傳送郵件的時候無法解析到你的郵箱地址,導致被列為垃圾郵件。 首先安裝 postfi
最新ubuntu搭建公網個人郵件伺服器(基於postfix,dovecot,mysql)
最近做了一個應用,需要用郵件發通知,但是免費的郵箱每天發信數量是有限制的,所以呢就想著搭建一個自己的郵件伺服器,能夠實現郵件的傳送和接收即可,其中大概花了一個星期找資料,測試,終於成功了,寫個教程分享給大家。 本教程基於 ubuntu 18.04(其他的 linux 理論上也是可以的,只是安裝的軟體包