Exch2003 - Allow mail relaying to a single external domain

Posted on 2008-06-25
Medium Priority
Last Modified: 2010-04-21
Hello -
We (companya.com) have a partner organization that we work with (companyb.com). Some of CompanyB's employees have AD accounts here with Exchange mailboxes. They then requested that their mail redirect back to their home (CompanyB) mailbox, so a contact was created for them, and the exchange settings for their account were then changed to forward mail to their contact rather than keep it locally. Not the most graceful perhaps, but should work.

The problem I am having is some people from CompanyB want to send email to one of our distribution lists (list@companya.com). This list contains some members of our domain that forward their mail back to companyB. When sending to these lists, the sender gets an SMTP 5.7.1 error indicating that relay is denied. Makes sense since companyb.com is an external domain that my mail server should not relay to by default.

To try and work around this, I created an SMTP Connector under 'Routing Groups' that lists companyb.com as the namespace, checked the box for 'allow relaying' and assigned a bridgehead server to the connection. For some reason I am still unable to send mail from outside the company to this dist list, still getting the relaying error.

How can I setup my exch environment to allow mail relaying to just this one domain?

Question by:JammyPak
  • 2
  • 2
LVL 10

Expert Comment

ID: 21872333
Check the SMTP connector to see which servers are set to be Local bridgehead servers.

On the SMTP virtual server of the bridgehead servers: You could add the IP address of the server that sends the messages from CompanyB into the allowed relay list.
LVL 16

Author Comment

ID: 21884458
I've tried that now, but it still gives the same relay error...smtp 5.7.1. Any other suggestions?
LVL 10

Accepted Solution

uid94130 earned 2000 total points
ID: 21885756
In this case, check the Internet header of a message coming from companyB and see what is the IP address of the server that sends the messages to your server. Add this IP in the allowed relay list.
The Internet header can be viewed from Outlook (open one received message and choose from the menu View / Options)
LVL 16

Author Closing Comment

ID: 31470777
I found the one remaining issue that was blocking me - restrictions had been set on the dist list itself controlling who could send to it. All seems to work now, thanks.

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Microsoft Jet database engine errors can crop up out of nowhere to disrupt the working of the Exchange server. Decoding why a particular error occurs goes a long way in determining the right solution for it.
A method of moving multiple mailboxes (in bulk) to another database in an Exchange 2010/2013/2016 environment...
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Suggested Courses

600 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