Article ID: 18509
Product: GMC iPhone
Date: 14 July 2009

Title: Users are not receiving welcome email when added to GMC SR1 for iPhone

Symptom: User will not receive welcome e-mail from the Good when they are added to Good Mobile Control for iPhone.

Event viewer shows following error:

And Error log file from C:\Program Files\Good Technology\Good Mobile Control\logs directory shows following error:

2009-07-06 21:46:27.486 IST | SEVERE | 2_82/35_4/ac | com.good.activesync.impl.ActiveSyncServiceImpl | ActionConsumer#run |
Context Attributes:
SECURITY_CONTEXT_KEY=User principal=rsidc\gaiphone

com.good.emf.activesync.ActiveSyncException: Exception calling "Send" with "1" argument(s): "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated"

at com.good.activesync.powershell.PowerShellExecService.throwIfException(PowerShellExecService.java:268)
at com.good.activesync.powershell.PowerShellExecService.exec(PowerShellExecService.java:175)
at com.good.activesync.powershell.PowerShellExec$Command._exec(PowerShellExec.java:730)
at com.good.activesync.powershell.PowerShellExec$Command.exec(PowerShellExec.java:735)
at com.good.activesync.powershell.PowerShellExec.sendEmailBySmtp(PowerShellExec.java:1224)
at com.good.activesync.impl.ActiveSyncDirectoryImpl.sendEmailBySmtp(ActiveSyncDirectoryImpl.java:227)
at com.good.activesync.impl.ActiveSyncServiceImpl$EmailASDeviceAction.sendEmailBySmtp(ActiveSyncServiceImpl.java:745)
at com.good.activesync.action.AbstractEmailASDeviceAction.doNetworkOperations(AbstractEmailASDeviceAction.java:137)
at com.good.activesync.impl.ActiveSyncServiceImpl$WFActionWrapper.doNetworkOperations(ActiveSyncServiceImpl.java:506)
at com.good.emf.wf2.WorkflowHolder.doNetworkOperations(WorkflowHolder.java:212)
at com.good.emf.wf2.WorkflowHolder.doPhase(WorkflowHolder.java:83)
at com.good.emf.wf2.WFExecutorImpl$WorkerThread.getToPhase(WFExecutorImpl.java:1171)
at com.good.emf.wf2.WFExecutorImpl$WorkerThread.getToPhase(WFExecutorImpl.java:1145)
at com.good.emf.wf2.WFExecutorImpl$WorkerThread.doWork(WFExecutorImpl.java:1002)
at com.good.emf.wf2.WFExecutorImpl$WorkerThread.processQueue(WFExecutorImpl.java:949)
at com.good.emf.wf2.WFExecutorImpl$WorkerThread.run(WFExecutorImpl.java:915)

2009-07-06 21:46:27.502 IST | WARNING | 2_82/35_4/ac/37_0 | com.good.activesync.impl.ActiveSyncServiceImpl | notifyActionFailed | There was a problem emailing ActiveSync deviceId=1, addressee=nsharma@rsidc.com: Exception calling "Send" with "1" argument(s): "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated"

Cause: As per the error code “"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated"”, Exchange server 2007 is not configured to receive e-mail from anonymous users due to which Exchange server is refusing any e-mail from the SMTP server which is not authenticated. GMC iPhone Control uses SMTP relay to send e-mail which is not authenticated at Exchange server side.

Remedy: Create Receive Connector specifically for this purpose, with Remote IP Addresses of GMC machine set to a range that limits the ability to use anonymous authentication.

Following are the steps to create Receive Connector at Exchange 2007 server:

1. Launch Exchange Management Console:

2. Go to Server Configuration > click on Hub Transport.

3. Right click on Receive Connector pan and click on New Receive Connector option as per following screenshot:

4. Provide the appropriate name for this connector and select Custom at “intended use for this Receive Connection” option.

5. Click “Next” at this dialog. That sets up a Receive Connector for all IP of the Exchange server and port 25.

6. Here remove the 0.0.0.0-255.255.255.255. So, first click “X” to delete the default IP range.

7. Click “Add” to add the GMC IP.

8. Click on New button to create the new connector.

9. Double click on the new connector to get properties window and click on Permission Groups tab. We need to put check mark at Anonymous users to allow anonymous access at Exchange server for the Good server.