2022年4月29日 星期五

Linux mail smtp testing

Reference:
 
從 Linux 測試寄信是否正常。
1. 安裝 ssmtp: yum install ssmtp
2. 編輯設定檔: vi /etc/ssmtp/ssmtp.conf (依照smtp server要求設定)
mailhub=smtp.gmail.com:587
useSTARTTLS=YES
AuthUser=username-here
AuthPass=password-here
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt
3. 編輯設定檔: vi /etc/ssmtp/revaliases
root:username@gmail.com:smtp.gmail.com:587
4. 測試寄信: echo "Test message from Linux server using ssmtp" | ssmtp -vvv revceivers-email@gmail.com

參數 -vvv 會顯示詳細連線資訊,用以判斷寄信失敗的原因。

Outlook 開啟 pst 無信件 (Gmail IMAP)

Reference:
 
開啟 pst 後,需要調整為 IMAP檢視

 

2022年4月27日 星期三

Perl to EXE

Reference:
 
本來裝 ActivePerl 5.34,但是它不給裝 PAR::Packer (perl to exe),只好改用 Strawberry Perl。
  • download Strawberry Perl and install
  • 開啟 CPAN client,執行 install PAR::Packer 安裝

2022年4月24日 星期日

2022/4/24 新竹戀戀桐花路跑

今年的戀戀桐花跑完了。
成績比去年快52秒,哈哈 ^__^|||
2019年2:33:13、2020年2:30:02、2021年2:33:44、2022年2:32:52。
明年再來!

主辦單位:中華民國陸上運動競技協會

比賽地點:合興愛情車站

2022年3月23日 星期三

2022年3月9日 星期三

Fortigate forticlient sslvpn DNS 問題

Reference:

狀況:
iPhone, iPad 使用 foticlient sslvpn 撥通後,無法開啟內部網頁。

原因:
forticlient iOS 版 bug,需用指令修改 Fortigate 設定。

解法:
用 ssh 連上 Fortigate,執行以下指令。
config vpn ssl settings
set dns-suffix "example.com;example.net;example.org"




2022年3月6日 星期日

CentOS 7 更新 sshd 版本

Reference:
 
安裝需要的工具
yum -y install wget tar gcc make perl
 
download zlib last version
到 https://zlib.net/ 確認最新版本
wget https://zlib.net/zlib-1.2.11.tar.gz

download openssl last version
到 https://www.openssl.org/source/ 確認最新版本
wget https://www.openssl.org/source/openssl-1.1.1m.tar.gz

download openssh last version
到 https://www.openssh.com/ 確認最新版本
https://www.openssh.com/portable.html
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.9p1.tar.gz