Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24
未將 hostname 設定ip,造成的e-mail影響 – unethost無限空間虛擬主機 技術分享部落格

未將 hostname 設定ip,造成的e-mail影響

email_hostname_wp

現在一般的套裝程式,通常都可以透過後台自訂選擇 dns 或是 smtp 方式寄信

其中 dns 寄信,就是牽涉到本篇要提到的問題。

如何發生?

這是關於我們操作whmcs所發生的問題。
每當客戶發起服務單時,其中服務單除了寫入在系統資料庫裡,
還會額外發送e-mail到不同部門進行通知。

我們最近有額外更新了 support.unethost.com 所使用的主機後,
寄送出去的信件(不同主機),會產生退信並顯示下列錯誤訊息。
具體內容是說明,email被其他主機拒收

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

info@unethost.com
(ultimately generated from Mailer-Daemon@travel.ecdsystem.com)
host mail.unethost.com [206.108.51.93]
SMTP error from remote mail server after initial connection:
451 Temporary local problem – please try later:
retry timeout exceeded

 

如何檢查?

這時我們照著自己編寫的流程檢查

1. 更換一組smtp server測試。

2. 檢查兩部主機上的信件互寄。

3. 檢查兩部主機上的信件,額外寄送到外部信件,比方說gmail。

4. 查一下hostname 是否有生效。

5. 檢查是否有程式擋信引起。

6. 其他……

(檢查步驟其實超過10步,只是我們在本篇中,只到前幾步就解決了)

 

找出疑似的問題?!

根據我們自訂的步驟,查到第4步後,發現我們新主機上的hostname,
並沒有套上ip,可能因此導致別部主機,進行mail server反查出問題,
所以得設定一組ip上去。


問題解決!!

設置後,在去測試whmcs信件,就正常了。
這樣果然是 hostname 的dns與ip反查出現問題,
加上ip後就沒有退信問題了。
順便在次檢查所有主機,發現只有這部新機沒設上。

 

結論:

在linux上面發生的問題,通常都有log或相關error message可供查看,
但其實有時同一個錯誤結果,不見得是相同的問題所產生,
所以得靠經驗去訂出檢查步驟。 另外我們的檢查步驟,
都是根據使用cpanel控制台的主機所訂立,不見得適於一般自架主機裡,
也有可能是service套件出問題引起。

 

(本篇教學由unethost.com客服撰寫)

延伸閱讀:如何備份Cpanel後台安裝的套裝程式?

安裝上述的軟體,我們提供虛擬主機試用,七天滿意保證,
功能完整使用不受限制,歡迎點我申請。