2016年7月29日 星期五

修改Synology DSM 5.2 Mail Server的main.cf設定檔,改成萬用收件信箱

因為我喜歡用萬用收件信箱,就是所有寄到@example.com的email,都會進到oscar@example.com信箱,所以我嘗試進到SSH終端機畫面修改我的DS216play的Mail Server設定檔,不然網頁介面的設定環境沒有那麼多細節的東西可以讓我設定。

我發現Sinology的作業系統的Mail server用到Postfix,main.cf在/var/packages/MailServer/target/etc/裡,main.tamplete在/var/packages/MailServer/target/etc/template裡,而postfix執行檔在/var/packages/MailServer/target/sbin/,改好main.cf及main.template並執行postfix reload時會用到。

我在下面的問答集找到將postfix改成我要的功能的解答
http://serverfault.com/questions/23717/postfix-how-do-you-redirect-all-emails-to-one-user-eg-example-com-→-userex

並選擇在main.cf加入下列這兩行為解決方案
luser_relay = user@example.com
local_recipient_maps =

在master.cf加入下列這兩行
-o luser_relay = user@example.com
-o local_recipient_maps =

成功的將DS216play改成我專用的特殊信箱,不用再跟某個虛擬空間租了!

2016年2月2日 星期二

2015年12月6日 星期日

隨手記1207

原來運動完,頭腦的意志力會被磨光,接下來做事情和思考都會很弱。

2015年8月12日 星期三

Git參考網站


 git下載
https://git-scm.com/downloads/guis


Git 教學(1):Git的基本使用
Git 教學(2):Git Branch 的操作與基本工作流程
Git 情境劇:告訴你使用 Git 時什麼情況該下什麼指令
 http://gogojimmy.net/2012/01/17/how-to-use-git-1-git-basic/


Git教材
https://ihower.tw/git/

書 - 為你自己學 Git - 高見龍
https://gitbook.tw/

GIT指令

剛才的 Commit 後悔了
git reset
git log --oneline
git reset e12d8ef^
=git reset 85e7e30

IKEA吊櫃廚櫃

 好不容易裝好IKEA買來的吊櫃,花了三天。 從組裝,鑽牆,上牆調水平,累死我了。