Loading...

設定Postfix使用SMTP Server當作relay主機

Temperature: 0 °C

Mark ChangMark Chang
author_tools

在/etc/postfix/main.cf 裡修改relayhost
將#relayhost = [an.ip.add.ress]修改為以下內容

relayhost = relay SMTP主機的IP或Domain Name


設定Postfix使用SMTP Server當作relay主機
另外,如果遇到有SPAM設定的環境,可同步將#myorigin = $mydomain修改為真實domain
myorigin = relay Domain Name

myorigin為發信時所顯示的『發信源主機』項目

設定Postfix使用SMTP Server當作relay主機
然後重新啟動postfix即可
service postfix restart

參考來源:鳥哥的 Linux 私房菜 二十二章、郵件伺服器: Postfix Url link

#故事  #postfix  #SMTP設定  #郵件伺服器  
https://innstory.com/story-設定Postfix使用SMTP_Server當作relay主機-2700
Linux

Prev
 使用CSS_讓ul_li_橫向水平

Next
PHP如何設定HTTP安全標頭 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

js判斷字母是否為大小寫

js判斷字母是否為大小寫

使用JS來判斷字串裡是否含有大寫字母或小寫字母。 //判斷是否含有大寫字母 function chk...

PHP–implode() 將陣列轉成字串

PHP–implode() ...

pexelsphoto 使用implode將陣列轉換成字串; $ar=array(&#;a&#;,&...

將Google字型fonts.googleapis.com新增到CSP header 中

將Google字型fonts...

Content Security Policy (CSP) 內容安全政策 主要用來限制網頁中對外部的...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format