Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Unable to Send Outbound Test Emails

Posted on 2008-09-30
Medium Priority
Last Modified: 2012-05-05
I am performing final tests for outbound and inbound email with new Exchange 2007 Server via telnet.  Public DNS "MX" records still not pointing to this server for "live" email, I want to make sure everything works before I "flip the switch".

I can telnet into the Exchange Server remotely and locally.  Using the command line I can get the Exchange Server to accept an inbound email, and route it to my Mailbox - it works perfectly.

Outbound, however, is still not working.  When I try to send mail from my user account, and I put in the external email address I want the mail to go to, I get the 550.7.1 "Unable to relay" message.  I thought I had all the proper settings in my connectors, but here's what I have:

1) In the Organization config, under Hub Transport, in Send Connectors, I created one called "Send to Internet"... on the Network tab of the properties I have checked: "Use DNS "MX" records to route mail automatically" and at the bottom I have also checked: "Use external DNS Lookup settings on Transport server"

2) In the Server config, under Hub Transport, in the top pane SMTP properties, on the External DNS Lookups tab, I have checked: "Use these DNS servers" and I have entered the IP address of a server that is authorized for me to use by my Web Hosting company.

What else am I missing?  Why won't outbound email go out?

Thanks for all help.
Question by:Rob Grinage
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
LVL 40

Expert Comment

by:Richard Quadling
ID: 22608770
Hello spock9458,

From what I understand, there are 2 ways to get email sent.

1 - Open Relay

This tells your server that email bound for somewhere else can be relayed to the public SMTP server of the recipient's domain. This is normally disabled on newer systems as it is a potential security hazard.

2 - Secured SMTP and / or authentication

This forces you to authenticate yourself to the server so that the relay can take place.

Look at the AUTH command for SMTP via telnet.



Author Comment

by:Rob Grinage
ID: 22609118
RQ -
If I understand this, the reason it might not be working is that I am not "authentically" logged in to the Telnet session?  I understand, and am researching online about how to authenticate.
However, now when I telnet in, I am typing EHLO which gives me the 250 Hello response.  Then when I type "auth login" I get an error:
504 5.7.4 Unrecognized authentication type
Am I missing a setting somewhere in EMC?
LVL 40

Expert Comment

by:Richard Quadling
ID: 22609244
http://qmail.jms1.net/test-auth.shtml discusses making sure authentication is enabled and working.

It isn't about using an authenticated connection to the SMTP server, it is about identifying yourself to whilst sending the SMTP message. You can use an unsecured connection.
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  


Author Comment

by:Rob Grinage
ID: 22609605
I tried following the instructions in the link you suggested, but in the list of available commands after I type EHLO, it says AUTH NTLM, not AUTH PLAIN, or AUTH and PLAIN
So, if I'm connected simply by typing EHLO, then I type "mail from: me@mydomain.com" it says "Sender OK".  Then I type "rcpt to:me@externaldomain.com" and it says "Unable to relay."  This means that I am not properly authenticated to send mail as me@mydomain.com through Telnet, right?
It may very well be, then, that when I begin to use the Exchange Server "live", and using my workstation and my Outlook program hooked up to my Exchange mailbox, which all operates within AD, I may be able to send outbound mail just fine?
I just wish there were a way to test for sure, I have a rather small (30 user) network, but if I go "live" and nobody is able to send emails outside our company, that is going to be a very bad thing - for me.
LVL 40

Accepted Solution

Richard Quadling earned 1000 total points
ID: 22609645
Not through telnet. Through SMTP.

"It may very well be, then, that when I begin to use the Exchange Server "live", and using my workstation and my Outlook program hooked up to my Exchange mailbox, which all operates within AD, I may be able to send outbound mail just fine?"

Most likely.

Outlook doesn't use SMTP, it uses MAPI (or CDO, or Extended MAPI, never sure exactly which).

Also Outlook is authenticated by AD.

Why not just choose 1 user to use the other exchange server? Or create a new account and mailbox and use that as a test using Outlook?

Author Comment

by:Rob Grinage
ID: 22609821
RQ -
Thanks for that, what a "DUH" moment for me.  But, in doing that I have discovered that there is a problem.  The outbound message is stuck in the queue, with the error of 451 4.4.0 DNS Query failed.  Is there any way to track down this new error quickly?  I thought I had everything set up correctly to Lookup DNS MX records through my Web Host server...
LVL 40

Expert Comment

by:Richard Quadling
ID: 22609869
Not that I can think of. I'm not 100% on top of Exchange. Sorry.

Author Closing Comment

by:Rob Grinage
ID: 31501707
You provided the solution for my initial question... therefore you deserve the points.  Now - on to the next "hurdle".
LVL 40

Expert Comment

by:Richard Quadling
ID: 22609948
Thank you. Sometimes it is going to be 1 hurdle per expert.

I'm settling down to watch Prison Break, so didn't want to leave you hanging.

Good luck.

Expert Comment

ID: 22615480
I am having the same issue as the person stated in the initial question.

I can send external email just fine with outlook but cannot use the command line to send an external email.

the reason we are testing this is because we have an application that needs to send mail to external users from time to time.  we get unable to relay errors when the application tries to send an email from an internal employee to any external address.

I was kind of foggy on what you were talking about in regards to creating another account and use it?

any help or suggestions?

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I don't pretend to be an expert at this, but I have found a few things that are useful. I hope that sharing them here will help others, so they will not have to face some rather hard choices. Since I felt this to be a topic of enough importance and…
Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question