Click here to Skip to main content
Click here to Skip to main content
Technical Blog

Tagged as

SMTP Exception: 550 5.7.1 Unable to Relay

, 21 Jan 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
SMTP Exception: 550 5.7.1 Unable to relay.

I was trying to configure IIS 6 SMTP server for outbound mail in Windows Server 2008. I was getting error highlighted in below:

Telnet: 550 5.7.1 Unable to relay for ferdous@congral.com

I am sharing my experience here how to solve this error. This is an error reply from your SMTP mail server. It indicates that your mail server is not configured to allow you to send mail through it. The standard port is 25 for SMTP connections. You can check your SMTP Server on SMTP port 25 using Telnet command.Open "MS-DOS prompt" or "command prompt". Just type the following command in the command prompt window and press "Enter":

telnet domain-name.com 25

image

The above highlighted line shows the error. So, You need to do the following if you get the SMTP error message "550 5.7.1 Unable to relay"

By default, the SMTP virtual server allows relaying only from authenticated users. This configuration is designed to prevent unauthorized users from using your Exchange server to relay mail. The virtual server's default configuration allows only authenticated computers to relay mail.

Change Default Relay Restriction

Go to IIS6.0 Manager –> SMTP Virtual Server Properties –> Go to Access tab

Change to "All except the list below" to remove restriction. You also add Restricted IPs or domain name that you don’t want to allow.

image

This should solve your problem to allow to send email anywhere like gmail, yahoo or any other domain.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

MJ Ferdous
Architect Brain Station-23
Bangladesh Bangladesh
Ferdous has industry level experience with SharePoint and has done several presentations and workshops on SharePoint. He also worked as SharePoint Consultant (CREDEM Italy, Robi etc) and Trainer (BASIS, JAXARA IT, LEADS Co.). He is currently working as SharePoint Architect at BrainStation-23. He also worked as Technical Project Manager for Congral LLC for managing revolutionizing Patient Centric Healthcare applications at the same company since 2009.
 
Before joining here, he worked for OT Group SPA and for Rockwell Automation in Italy. He worked on many international projects during his professional life. The major projects are included below:
Internal Enterprise Portal for Robi, Dhaka
nVision Solution for nSales A/S, Denmark
Shared Care Plan for Congral LLC, USA
Internet Banking Portal for the Bank of CREDEM, Italy
Document Management (DMS) for the Bank of CREDEM, Italy
MES solution for Rockwell Automation, Italy
Tourism for Travel Curve Inc., USA
and so on...
 
He is the author of several technical articles with over 49 articles published on http://mrbool.com where he is the Technical Author for the site and author of mssharepointtips.com as well. He is also founder of SharePoint Expert group.
 
Looking for a Offshore Development or partnership.............. in any development in Dot.Net & Sharepoint 2007,2010 Platform.
 
Search him in google by 'MJ Ferdous' to get all links, articles, profile etc
 
Contact him: ferdouscs@gmail.com mjferdous@live.com
 
Blog: http://geekswithblogs.net/ferdous
 
Specialties
===========
Production troubleshooting, maintainability and scalability
SharePoint 2007/2010
Dot.Net Application
Project Management
Document Management Solution
Follow on   Twitter

Comments and Discussions

 
QuestionNo, you shouldn't Pinmemberjw12321-Jan-13 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.141015.1 | Last Updated 21 Jan 2013
Article Copyright 2013 by MJ Ferdous
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid