Link to home
Start Free TrialLog in
Avatar of Carl Chandler
Carl Chandler

asked on

IIS / PHP SMTP on Server 2012 R2 with Exchange 2013

Hello,

My setup / configuration:

I am currently running Windows Server 2012 R2 with Exchange 2013.

I am hosting a couple of websites/domains on this server with IIS 7, PHP 5.6 and MySQL.

My Exchange server is working fine with the default transport hubs and I have my SMTP routed through a smarthost send connector (AuthSMTP).

-----------------------------------------------------------------------------------------------------------------------------------------------------

My question:

Exchange mail is working perfectly fine, however I'm unable to send emails from my hosted helpdesk software (Kayako), php forms etc.

There is an SMTP option within IIS 7.0 which I have configured with exchange credentials. I also have added SMTP to PHP.ini. Still no good.

There's a SMTP role which can been installed, should I do this? Am I not installing multiple SMTP servers running on port 25?

Is there an easy way to send the mail from IIS / PHP applications through my exchange 2013 smarthost? Is this called a relay connector?

I hope I explained everything clearly enough and thank you in advance for your guidance.
Avatar of Amit Kumar
Amit Kumar
Flag of India image

You just need to add your application server IP in Exchange's receive connector, which will relay your e-mails coming from Application.

No need to configure SMTP service on IIS as you already have it on Exchange. Just configure your application code to Exchange SMTP like where it asks for SMTP server point to your mailbox server with port 25. It is your choice you want to configure domain authenticated or anonymous. You may have to enable anonymous authentication on receive connector in Exchange

On the other hand you must use e-mail address which is your accepted domain, if you use diff. e-mail address domain then it is possible your mail will not get relayed.
Avatar of Carl Chandler
Carl Chandler

ASKER

I have added a receive connector for 127.0.0.1 / 10.0.0.145 (localhost and IP of server) and allowed anonymous authentication.

My PHP contact forms now email me.

However, my Kayako desktop software does not. I have tried to set it with PHP sendmail and with SMTP details (my Exchange user account) but it will not email out.

Any ideas?
10.0.0.145  same server which is running PHP contact form and Kayako Desktop?

if Kayako Desktop is diff. then add its IP to receive connector and try.
The same.
If PHP is sending and other app is not sending so issue is with Kayako.

can you configure Kayako sending mail as anonymous? if not please check account is being used for SMTP authentication is locked out or something.

Also do one thing on receive connector enable logging and see the logs if it is hitting or not?

This is the article to enable logging on connector.
ASKER CERTIFIED SOLUTION
Avatar of Carl Chandler
Carl Chandler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Solution worked