之前没有操作过,尝试了很久,通过跟微软工程师沟通后,终于设置成功了,特此记录下,帮助需要的人。
下边是微软的配置文档,参考

1、新安装Internet Information Services (IIS) 6.0 Manager服务
2、新增加虚拟域Server,名字起个local,之后右键Domains 新建域 选择Remote

3、新建一个转发域名***.com

4、右键.com域名 修改如下内容

5、outbound Security 修改如下

6、右键SMTP Office365 就是你新建的虚拟Server

7、Access 修改如下内容

8、Relay修改如下

9、All except the list below

10、Messages内容

11、Basic authentication 输入office365邮箱的账户和密码

12、修改端口

13、Advanced内容

14、LDAP Routing内容

15、Security内容

可以再SAP系统设置SMTP转发测试下。