問題:
如何配置ESA以將傳入電子郵件路由到我的公司電子郵件伺服器?
為了讓ESA將電子郵件傳送到公司電子郵件伺服器,您必須將ESA配置為使用該主機作為傳送目的地。這可以透過使用來自命令列介面(CLI)的smtproutes
命令來完成。
smtproutes
命令允許您把一個特定域的所有電子郵件重定向到一個不同的郵件交換(MX)主機。
mail3.example.com> smtproutes
There are no routes configured.
Choose the operation you want to perform:
- NEW - Create a new route.
- IMPORT - Import new routes from a file.
[]> new
Enter the hostname for which you want to set up a permanent route.
Partial hostnames such as ".example.com" are allowed.
Use "ALL" for the default route.
[]> example.com
Enter the destination hosts, separated by commas, which you want mail for
domain.com to be delivered.
Enter /dev/null by itself if you wish to discard the mail.
[]> 10.1.1.10
Mapping for example.com to 10.1.1.10 created.
There are currently 1 routes configured.
Choose the operation you want to perform:
- NEW - Create a new route.
- DELETE - Remove a route.
- PRINT - Display all routes.
- IMPORT - Import new routes from a file.
- EXPORT - Export all routes to a file.
- CLEAR - Remove all routes.
在本例中,我們將example.com的消息配置為傳送到電子郵件伺服器主機10.1.1.10。
您需要提交更改以啟用新配置的smtproutes。
提示:您也可以在GUI的「網路」(Network) >「SMTP路由」(SMTP Routes)下配置SMTP路由