Aras Innovator如何配置SMTP中转Office365
如何设置SMTP中转Office365发送email;
首先,安装SMTP,这一步不再描述,
主要说明SMTP配置

常规里IP地址填写本地的IP地址:

访问→身份验证→匿名访问

连接

中继

出站安全

出站链接

高级

更多详情请关注微信公众号:

Configure an SMTP Server in Windows IIS for Aras Innovator Outbound Email
Below I describe how to configure an SMTP email server using Windows Server 2012 for use with Aras Innovator. I also describe how to configure an SMTP email relay using an Office 365 email account.
For these instructions, the SMTP server must be on the same server that is hosting Aras Innovator.
If you prefer, download a PDF document with this process.
Set up SMTP Using Windows Server 2012
These instructions were modified from https://technet.microsoft.com/en-us/library/dn592151(v=exchg.150).aspx (Text in italics denote my modifications.)
- Install Internet Information Services (IIS)
- In Server Manager, select Add Roles.
- On the Before you begin page in the Add Roles Wizard, select Next.
- On the Select Installation Type page, select Role-based or Feature-based installation.
- On the Select destination server page, choose Select a server from the server pool, and select the server that will be running SMTP services. Select Next.
- On the Select Server Roles page, select Web Server (IIS), and then select Next. If a page that requests additional features is displayed, select Add Features and then select Next.
- On the Select Role Services page, make sure that Basic Authentication under Security is selected, and then select Next.
- On the Confirm Installation Steps page, select Install.
- Install SMTP
- Open Server Manager and select Add Roles and Features.
- Select Server Selection and make sure that the server that will be running the SMTP server is selected and then select Features.
- On the Select Features screen, choose SMTP Server. You may be prompted to install additional components. If that’s the case, select Add Required Features and select Next.
- Select Install. After the installation is finished, you may have to start the SMTP service by using the Services snap-in for the Microsoft Management Console (MMC).
- Set up SMTP
- Open Server Manager, select Tools, and then select Internet Information Services (IIS) 6.0.
- Expand the current server, right-click the SMTP Virtual Server, and then select Properties.
- On the General tab, select Advanced > Add.
- In the IP Address box, specify the address of the server that’s hosting the SMTP server.
- I left this as "(All Unassigned)", port 25
- In the Port box, enter 25 and select OK.
- Aras Innovator is hard-coded to use port 25, so do not use port 587 as suggested by Microsoft
- Set up SMTP Security
- On the Access tab, do the following:
- Select Authentication and make sure that Anonymous Access is selected.
- Select Connection > Only the List Below, and then specify the IP addresses of the devices that will be connecting to the SMTP server.
- Enter "127.0.0.1" so that only the local server can use the email server
- Select Relay > Only the List Below, and then specify the IP address of the devices relaying through this SMTP server
- Enter "127.0.0.1" so that only the local server can use the email server
- On the Access tab, do the following:
- Set up Office 365 SMTP Relay
- NOTE: You can skip step 5 if you want to use the Windows SMTP Server to send email in Aras. Step 5 is only used if you want to use another SMTP server (e.g. Office 365 or Gmail) to relay mail through the local SMTP virtual server. If you skip step 5, read the section "The DNS side of sending mail" here: http://www.sherweb.com/blog/installing-microsoft-smtp-server/.
- On the Delivery tab, select Outbound Security, and then do the following:
- Select Basic Authentication.
- Enter the credentials of the Office 365 user who you want to use to relay SMTP mail.
- This *must* be the same email account as the "Innovator Admin" in Aras.
- In Aras Innovator, under Administration > Users, find "Innovator Admin" and add the Office 365 email address to this user
- In Aras Innovator, under Administration > Notification > E-mail Message, view all E-mail messages and look at the "From User" column
- Best practice is for all E-mail Messages to come from a single user, e.g. "Innovator Admin". But if you want to send email from another user, then login into Office 365 as an Admin, go to Exchange admin center > recipients > mailboxes; select that email account, go to Mailbox Delegation > Send As, and then add the SMTP server relay mail account to the list.
- Otherwise, Aras will attempt to send an email from an account that will be rejected by Office 365 as "Client does not have permissions to send as this sender"
- Check "TLS Encryption", click OK to close Outbound Security
- On the Delivery tab, select Outbound Connections, and in the TCP Port box, enter 587 and select OK.
- NOTE: One of our clients set up an SMTP Relay using a Gmail account, by setting the TCP Port box to 25 (not 587 as suggested by Microsoft).
- On the Delivery tab, Select Advanced and specify "SMTP.office365.com" as the Smart Host.
- Restart the IIS service and the SMTP service.
Test SMTP Server
I used 2 methods to test the SMTP Server on Windows Server, before proceeding to Aras Innovator configuration.
1. Test SMTP relay server without using a separate application.
FROM: <source email address> [Must be the Office 365 SMTP Relay Email or Authorized "Send As" email]
TO: <destination email address>
SUBJECT: Test email
This is a test email sent from my SMTP server
.
- Create a text file using Notepad or another text editor. The file should contain the above code. Replace the source and destination email addresses with the addresses you will use to relay SMTP:
- Save the text file as Email.txt.
- Copy the Email.txt file into the following folder: C:\InetPub\MailRoot\Pickup.
- After a short time, the file should automatically be moved to the C:\InetPub\MailRoot\Queue folder. When the SMTP server delivers the mail, the file is automatically deleted from the local folder.
- (Reference: See https://technet.microsoft.com/en-us/library/dn592151(v=exchg.150).aspx)
- TROUBLESHOOT: If the SMTP server can’t deliver the message, a non-delivery report (NDR) is created in the C:\InetPub\MailRoot\BadMail folder. Open the *.BAD file with Notepad to use this NDR to diagnose delivery issues.
- TROUBLESHOOT: If the email won’t send, check the "FROM" <source email address> - it must be the Office 365 SMTP Relay Email you are using, or an authorized "Send As" email (as described in the Office 365 SMTP Relay setup).
2. Test the SMTP relay server using Telnet
- Open a Command Prompt on the server.
- Connect to the server using Telnet by typing telnet localhost 25 and pressing enter.
- (If telnet is not installed, see https://technet.microsoft.com/en-us/library/cc771275(v=ws.10).aspx)
- Type helo
- Type mail from:youremail@domain.com using your SMTP Relay email address
- Type rcpt to:testemail@domain.com using a test email address
- Type data
- Type something that will serve as the body of the email then enter a period ‘.’ on a line by itself to send the email
- You should receive the email at the test email address confirming that everything is setup properly.
- (Reference: www.sherweb.com/blog/installing-microsoft-smtp-server/)
- TROUBLESHOOT: Telnet connects to localhost, but as soon as I type the first character it comes out of telnet and reverts to a standard command prompt.
- This is caused by using an internal or invalid IP address in the Virtual SMTP Server configuration. In IIS 6.0, right-click the SMTP Virtual Server, select Properties, on the General tab, select Advanced > Edit; in the IP Address box, change the address to "(All Unassigned)", port 25
- Troubleshooting:
- Email doesn’t send: First thing to try is in the SMTP Relay setup, enter "25" for Delivery > Outbound Connections > TCP Port instead of 587.
- Microsoft is blocking your SMTP Server from Office 365. Contact Microsoft at the listed email address. Also, the group that deals with blacklist at Microsoft can be reached at (866) 291-7726. It takes about 24 hours to get delisted.
- Error received: Diagnostic-Code: smtp;550 5.7.1 Service unavailable; Client host [199.227.38.90] blocked using FBLW15; To request removal from this list please forward this message to delist@messaging.microsoft.com.
- Email doesn’t send: First thing to try is in the SMTP Relay setup, enter "25" for Delivery > Outbound Connections > TCP Port instead of 587.
Configure Aras Innovator
After the SMTP server works, make the following change on the Aras Innovator installation:
- Open the InnovatorServerConfig XML file in a text editor, e.g. C:\Program Files (x86)\Aras\Innovator\InnovatorServerConfig.xml
- Change < Mail SMTPServer="queue"/> to <Mail SMTPServer="127.0.0.1"/>
Test Aras Innovator with the SMTP Server
I used 2 methods to test the SMTP Server on Aras Innovator.
- Test E-mail notification messages with the Change Management module
- Login to Aras Innovator as a user with an email address that you have access to
- Go to Change Management > PRs
- Create a new PR, save and unlock
- Aras should initiate the PR Workflow, and send an email to both the user and Admin
- Test E-mail notification messages using a Server Method
- (You should have completed Aras Developing Solutions training to do this)
- First, create a test E-Mail Message (in the Administration tab) named "simpleTest" (use this exact name). Enter a Subject and a Body Plain as anything you would like. Enter the From User as Innovator Admin. Save and lock.
- Make sure the Innovator Admin has an email address entered in their user information. (And the email address is the same as the SMTP relay account email.
- Create a Method (server-side, C#). Use the following code:
Innovator inn = this.getInnovator();
Item myResult; // First grab an identity to send the mail to.
// You can find the ID by right clicking on an identity and selecting
//"Properties" and then selecting "copy"
// Make sure that the user(s) in that identity have valid email addresses.
// Also, make sure that you use the ID of the *Identity*, not the *User* Item idnt = inn.getItemById("Identity", "7974A0D1114A4F649A13894749DC4FC9");
//Next, grab the email we want
myResult = inn.applyAML("<AML>"+
"<Item type='Email Message' action='get'>"+
"<name>simpleTest</name>"+
"</Item></AML>"); Item myEmail = myResult.getItemByIndex(0);
idnt.email( myEmail, idnt );
return inn.newResult("email sent, worked great");
- Save and Unlock
- Now you should be free to right-click and select actions, "Run Server Method" from your test email method and get an email sent to yourself.
- Reference: www.aras.com/Community/forums/t/1612.aspx
- TROUBLESHOOT: If you run the method and get the error "Object reference not set to an instance of an object.", then you have selected the ID of a User; you need to select the ID of a corresponding Identity.
Appendix
- Windows Server 2008 SMTP Server installation instructions:
- Instructions on DNS setup and testing the server:
- www.sherweb.com/blog/installing-microsoft-smtp-server/
- Install Telnet (not installed by default on Windows Server 2012): https://technet.microsoft.com/en-us/library/cc771275(v=ws.10).aspx
- Search > cmd > (open Command prompt)
- pkgmgr /iu:"TelnetClient"
- SMTP "Send As" permission in Office 365:
- How to set up a multifunction device or application to send email using Office 365: https://technet.microsoft.com/en-us/library/dn554323(v=exchg.150).aspx
- Aras documentation on setting up an email server during installation:
- How to set up a multifunction device or application to send email using Office 365: https://technet.microsoft.com/en-us/library/dn554323(v=exchg.150).aspx
- Page 17 of the Installation guide covers setup on the Innovator side:
- Other resources
- Step-by-step instructions to add SMTP Service to Windows Server 2012, Set up SMTP and firewall ports: http://blog.hyperfive.com/2013/07/how-to-setup-internal-smtp-service-for.html
- http://blog.powerbiz.net.au/exchange/how-to-set-up-an-internal-smtp-service-for-windows-server-2012-essentials/
- http://systemspecialist.net/2012/11/02/create-smtp-relay-for-office-365-with-windows-server-2012-essentials/
- https://technet.microsoft.com/en-us/library/cc772058(WS.10).aspx
- http://serverfault.com/questions/455724/what-replaces-iis-smtp-server-in-windows-server-2012
Aras Innovator如何配置SMTP中转Office365的更多相关文章
- 使用Office365账号配置SMTP中继服务器
· 如何将企业中的多功能设备(打印机.扫描仪等 )或应用程序设置为使用 Office 365 发送电子邮件,微软给出了3种方法: SMTP 客户端提交 直接发送 SMTP 中继 以上3种方式的介绍,大 ...
- Aras Innovator 11 sp2安装
本文档记录Aras Innovator 11 sp2的安装过程 官方安装文档:http://www.aras.com/support/documentation/ Aras Innovator 11. ...
- Aras Innovator DB备份与还原
错误信息 确认到该问题是因为孤立帐号的问题,在解决孤立帐号之前,可以通过语句查看,另外,还原了DB后,系统不会自动创建原来的登陆帐号的,需要手动新增登陆帐号 #查看孤立帐号列表exec sp_chan ...
- Aras Innovator 11 sp2 IE客户端设置
在上一篇文章<Aras Innovator 11 sp2 安装>后,服务器算是安装好了,还需要在使用的客户端进行设置才可以正常使用Aras Innovator 该篇为IE设置,还有< ...
- SSRS1:配置SMTP Server发送mail
为了使用SSRS发送mail,必须为Reporting service配置SMTP Server. 1,在Reporting Service Configuration Manager中配置Email ...
- Reporting Service 配置SMTP和设置订阅出现的异常
SSRS能够按照schedule,以mail的形式发送report,这是通过设置subscription report来实现的. 1,发送mail需要在SSRS中配置SMTP Server,如果没有R ...
- CentOS下配置SMTP
在服务器上配置一个SMTP邮件服务可能是在日常工作中经常会遇到的需要,比如在做一些简单测试的时候. 配置步骤无比简单,废话不说: 1,yum -y install mail 2,编辑/etc/mail ...
- Windows Server 2012/2012 R2:安装和配置 SMTP 服务器
Windows Server 2012/2012 R2:安装和配置 SMTP 服务器 安装 SMTP 服务器 以下是安装 SMTP 服务器功能的步骤: 打开“服务器管理器”:单击键盘上的 Window ...
- Aras Innovator 11 sp2 firefox客户端设置
在上一篇文章<Aras Innovator 11 sp2 安装>后,服务器算是安装好了,还需要在使用的客户端进行设置才可以正常使用Aras Innovator 该篇为firefox设置,还 ...
随机推荐
- 062、Java中的方法重载
01.代码如下: package TIANPAN; /** * 此处为文档注释 * * @author 田攀 微信382477247 */ public class TestDemo { public ...
- STL语句表跳转指令学习
打开语句表程序状态监控 发现 被跳过的指令用普通字体显示 被执行的指令用加粗的字体表示 录制成视频 如果除数是0 发生了溢出 用 JUO 跳转指令,跳转到 M001 例程已经录制成视频 上传到百度网盘 ...
- jsp采用ajax传递数组给后台controller并遍历
ajax传递数组,期间出各种各样的问题,那叫一个头疼,网上各种查,都没有解决,最终摸索摸索加借鉴搞定,不多说,上代码 /* 复选框选定部分 */ $("#delete").clic ...
- PHP数据库连接
<?php //设置编码格式 header("Content-type:text/html;charset=utf-8"); /** * Created by PhpStor ...
- SpringBoot 上传文件突然报错 Failed to parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location [/tmp/tomcat.1428942566812653608
异常信息 org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request ...
- 《新标准C++程序设计》3.6-3.7(C++学习笔记9)
一.成员对象和封闭类 (1)定义 一个类的成员变量如果是另一个类的对象,就称之为“成员对象”. 包含成员对象的类叫封闭类. (2)封闭类构造函数的初始化列表 在构造函数中添加初始化列表的写法: 类名: ...
- docker image ubuntu12.04 安装软件源
docker 容器为ubuntu12.04 ,无法添加软件源. apt-get install python-software-properties software-properties-commo ...
- Elasticsearch 删除文档
章节 Elasticsearch 基本概念 Elasticsearch 安装 Elasticsearch 使用集群 Elasticsearch 健康检查 Elasticsearch 列出索引 Elas ...
- 理解依赖注入(DI - Dependency Injection)
系列教程 Spring 框架介绍 Spring 框架模块 Spring开发环境搭建(Eclipse) 创建一个简单的Spring应用 Spring 控制反转容器(Inversion of Contro ...
- Python pip设置为清华镜像
设置为默认镜像 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple