2019年8月11日 星期日
Configure A Postfix Relay Through Gmail On CentOS 7
參考:
https://devops.ionos.com/tutorials/configure-a-postfix-relay-through-gmail-on-centos-7/
yum -y install postfix cyrus-sasl-plain mailx
#systemctl restart postfix
#systemctl enable postfix
# Configure Postfix
vi /etc/postfix/main.cf
# 必須修改
inet_interfaces = all
# 以下加入
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = encrypt
---
# 修改密碼檔
vi /etc/postfix/sasl_passwd
[smtp.gmail.com]:587 username:password
---
chown root:postfix /etc/postfix/sasl_passwd*
chmod 640 /etc/postfix/sasl_passwd*
systemctl reload postfix
---
Test Relay
echo "This is a test." | mail -s "test message" cc.vbhsieh@gmail.com
---
訂閱:
張貼留言 (Atom)
RHEL install EPEL
https://www.linuxtechi.com/install-epel-repo-on-rhel-system/ EPEL dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest...
-
下載 出處 下載網址: http://tinyurl.com/plodb56 Step 1 下載取得「Windows10TweakTool」並解壓縮,在壓縮出的「Windows10SettingTool.bat」上按一下滑鼠右鍵,點擊選單中的【以系統管理員身分...
-
一、 FORMAT 字符串替代变量 使用 FORMAT 参数时可使用的各种替换变量,如下: %c :备份片的拷贝数 ( 从 1 开始编号 ) ; %d :数据库名称; %D :位于该月中的天数 (DD) ; %M :位于该年中的月份 (MM) ; ...
-
政黨還是有政績的 - 蠻有意思的 - 蠻有意思的,僅博君一笑 其實執政黨還是有政績的 ! 所以,不要再為難執政黨政府了,提出來跟大家分享 ! 1. 縮小貧富差距 – 至少 95% 的人都快要一樣窮了,大學畢業賺的錢跟國中畢業 賺的差不多 2. 與他國關係友好 – 不...
沒有留言:
張貼留言