郵件服務的安裝及簡單應用

來源:互聯網
上載者:User

標籤:設定檔   style   justify   電子   使用者   

  1. 基本概念

電子郵件服務

MUA: 郵件使用者代理

MTA: 郵件傳送代理

MDA:郵件投遞代理

MAA:郵件訪問代理

Postfix的主設定檔 /etc/postfix/main.cf

Postconf 組態工具

Pstconf -d |wc - 預設設定

Postconf -d |grep interface

Postconf -d |grep insterfacl 配置預設設定

Postconf -e 即時寫入

Mailbox_size_limit=\51200000

注意:當非預設設定與預設設定衝突時,預設設定優先

郵件服務搭建

允許接收進來的郵件

設定inet_interfaces =all

$mydomain 接收自己的域的郵件

確認所有的接收者確定都有一個本地帳號

允許防火牆串連25號連接埠

Service postfix restart

Tail /var/log/maillog

允許發出去的郵件

設定inet_interfaces=all

發給別人,看中繼

Mynetworks=127.0.0.0/8 192.168.0.0/24

確認所有的接收者確實都有一個本地帳號

允許防火牆串連25號連接埠

Service postfix restart

  1. 開始實驗

首先需要配置dns,這裡就需要將郵件寫入到,解析檔案中

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/55/4B/wKiom1SJfC3CrIKAAAB8tP8kssM245.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/55/49/wKioL1SJfMWhy8HaAAB2Uiuh4Mc444.jpg" />

發現只能有自己可以內送郵件

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/55/4B/wKiom1SJfC2R1BZhAAB01zPDLsA720.jpg" />

這時就需要允許其他的地址可以發給自己,下面的是需要加入到設定檔的

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/55/49/wKioL1SJfMWgeRNFAACSjJ08JTY101.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/55/4B/wKiom1SJfC2ToqflAADBhTh-3yU522.jpg" />

重啟生效

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/55/49/wKioL1SJfMXxY6JOAABOaZzZlzI913.jpg" />

再次查看發現,其他的地址就可以發送郵件給自己了

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/55/4B/wKiom1SJfC3iVwVNAABxebTlc9s664.jpg" />

下面的就是對郵件的大小等進行的限制,都可以加入到main.cf中進行操作

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/55/4B/wKiom1SJfC_Bva-FAACoN8OHnCo594.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/55/49/wKioL1SJfMeS3U_5AACxIs_5B-o225.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/55/4B/wKiom1SJfC_SlyD6AADtZTECBlc991.jpg" />

配置好後,開始寫郵件

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/55/4B/wKiom1SJfC_BzBF0AADmbBV_apw105.jpg" />

查看是否發送成功

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/55/4B/wKiom1SJfDCgUEqIAAJBSpkGTFI546.jpg" />

然後切換帳號,查看郵件

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/55/49/wKioL1SJfMiR6_B8AAFEAC7XOUo738.jpg" />

本機使用者之間發郵件

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/55/4B/wKiom1SJfDDzn4jfAAA2u2vGZ48665.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/55/49/wKioL1SJfMjTpzq5AAFLWr87Skk216.jpg" />

郵件服務的安裝及簡單應用

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.