關鍵字:alternatechannel、alternateblocklimit、alternatelinelimit 和 alternaterecipientlimit
MTA 能夠將收件者數量、郵件大小或郵件行數超過指定限制的郵件之目標重定至替代目標通道。這項功能透過一組通道關鍵字來實作,它們是:alternatechannel、alternateblocklimit、alternatelinelimit 和 alternaterecipientlimit,這些關鍵字可置於任何目標通道上。alternatechannel 關鍵字使用單一引數,用於指定要使用的替代通道之名稱。其他每個關鍵字都需要一個整數引數,用於指定對應的臨界值。超過任何臨界值的郵件將在替代通道 (而非原始目標通道) 上形成佇列。
在以下通道區塊範例中,超過 5000 個區塊的大型郵件會從 tcp_big 通道而非 tcp_local 通道發往網際網路:
tcp_local smtp ...other keywords... alternatechannel tcp_big alternateblocklimit 5 tcp-daemon tcp_big smtp ...rest of keywords... tcp-big-daemon |
以下是 alternate* 通道關鍵字的使用範例:
如果要延遲或在下班時間傳送大型郵件,可以控制 alternatechannel (例如,tcp_big) 的執行時間。
一種方法是使用 imsimta qm 公用程式的 STOP channel_name 和 START channel_name 指令,透過您自己自訂的週期性工作 (由工作控制器執行) 或透過 cron 工作定期執行這些指令。
當您讓工作控制器處理自己池內的大型郵件或具有許多收件者的郵件時,也可以使用 alternatechannel。
您可以將小型郵件或收件者很少的郵件與大型郵件或具有許多收件者的郵件分開,因為遠端 SMTP 伺服器在處理和接收後者時需要較長時間,您不會希望較大郵件延遲較小郵件的遞送。
請注意,大多數配置中,工作控制器對郵件定期排程並將郵件指定給執行緒和程序都是可以接受的。
當您要為大型郵件或具有許多收件者的郵件設定特殊 TCP/IP 通道逾時值時,可以使用 alternatechannel。
尤其是,如果您要傳送郵件至遠端主機,而這些主機需要極長的時間來接收大型郵件或具有許多收件者的郵件,那麼設定特殊 TCP/IP 通道逾時值會很有用。
請注意,對大多數配置而言預設的自動逾時調整就已足夠。最多是您會想調整預設值,並且不使用特殊通道。特請參閱「Sun Java System Messaging Server 6 2005Q4 Administration Reference」中的通道選項 STATUS_DATA_RECV_PER_ADDR_TIME 和 STATUS_DATA_RECV_PER_BLOCK_TIME。
如果要對特大型郵件進行特殊的 MIME 郵件分段程序,可以使用 alternatechannel 和 alternateblocklimit 通道關鍵字以及 maxblocks 通道關鍵字。
通常,要對超過指定大小的郵件分段時,可以對定期外寄 TCP/IP 通道設定所需的 maxblocks 大小。maxblocks 通道關鍵字通常既是執行分段程序的臨界值,又是進行分段的大小。
但是,如果想擁有較大的臨界值觸發器,而實際執行較小的分段,可以對外寄 TCP/IP 通道使用 alternatechannel 和 alternateblocklimit。然後,可以對替代通道使用 maxblock 大小,以對超過特定大小的郵件分段。
可以將 alternatechannel 與特殊的篩選作業配合使用。例如,可能需要更仔細地審查具有許多收件者的郵件的內容,以避免垃圾郵件。您可能想根據外寄通道執行不同的篩選作業 (請參閱指定電子信箱篩選器檔案位置中的 destinationfilter 通道關鍵字)。
如果您要經由轉換通道執行資源相對密集的掃描作業 (例如病毒篩選),郵件過大就可能導致資源問題。您可以使用替代轉換通道。或者,您可能想根據外寄通道,在常規轉換通道中執行特殊的轉換程序。
要將大型外寄的郵件從它們自己的通道發出時,可以使用 alternatechannel,如此一來,當您分析 mail.log* 檔案或在計數器上顯示時,這些郵件會特別明顯。
此外,如果您嘗試仔細分析遞送統計資料,在大型郵件自己的通道中處理大型郵件會很有用。這是因為傳送至遠端 SMTP 主機的大型郵件或具有許多收件者的郵件,在完成處理從而建立不同的遞送統計資料上,比典型郵件需要更長的時間。