问题:
如何配置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路由