emails are not getting delivered from crm system to smtp server

Dear Experts

We have configure CRM application system running on windows server R2, configure the application for outbound and inbound in the email settings section of application  but mails are not getting delivered from CRM system to SMTP server , log report attached, from the OS level when done telnet able to communicate to the mail server, can you please suggest where we might be going wrong and help us to fix this.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The error
Tue Sep 11 22:06:18 2018 [21777][1][FATAL] SMTP -> ERROR: Connection: Failed to connect to server.. Reply: 2 Code: stream_socket_client(): unable to connect to (Connection refused)

in your log supports the conclusion that the mail account is failing it's connection attempt to the mail server.

This could be due to several reasons.

  • Authentication
  • Firewall Changes.. etc

I would suggest running a manual SMTP test from the command prompt using an application like smtpdiag which can be downloaded from here

you can also test manually using the following telnet commands :

Open a Command Prompt window, type telnet, and then press Enter.
This command opens the Telnet session.
Type set localecho, and then press Enter.
This optional command lets you view the characters as you type them, and it might be required for some SMTP servers.
Type set logfile <filename>, and then press Enter.
This optional command enables logging and specifies the log file for the Telnet session. If you only specify a file name, the log file is located in the current folder. If you specify a path and file name, the path needs to be on the local computer, and you might need to enter the path and file name in the Windows DOS 8.3 format (short name with no spaces). The path needs to exist, but the log file is created automatically.
Type OPEN 25, and then press Enter.
Type EHLO, and then press Enter.
Type MAIL, and then press Enter.
Type RCPT NOTIFY=success,failure, and then press Enter.
The optional NOTIFY command specifies the particular delivery status notification (DSN) messages (also known as bounce messages, nondelivery reports, or NDRs) that the SMTP is required to provide. In this example, you're requesting a DSN message for successful or failed message delivery.
Type DATA, and then press Enter.
Type Subject: Test from Contoso, and then press Enter.
Press Enter again.
A blank line is needed between the Subject: field and the message body.
Type This is a test message, and then press Enter.
Type a period ( . ), and then press Enter.
To disconnect from the SMTP server, type QUIT, and then press Enter.
To close the Telnet session, type quit, and then press Enter.
Here's what a successful session using the steps above looks like:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
D_wathiAuthor Commented:
thanks for the reply,
1. did check from the OS though telnet it works perfectly with server and port details , did follow the link provided by you i,e test-smtp-with-telnet from Microsoft.
2. configured email account in the CRM system with SMTP mail server.
check marked "use SMTP Authentication".
provided user name and password
RESULT: is not able to send mail following popup from the CRM system
"Error Failed to connect to outbound SMTP Mail Server. The outbound mail server selected for the mail account you are using is invalid check the settings OR select different mail server"
1.   through the telnet mail can be sent and received but here noted there is no "Authentication process" involved
2. also when unchecked the "Use SMTP Authentication" that is disabled the SMTP Authentication then able to send mail out.
please let me know can I come to conclusion the issue the with the email account provided /configured does not get authenticated with SMTP server therefore this account not able to deliver email.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.