SMTP Relay - setting maximum number of receipients

We setup a smtp relay on our Exch2010 server for our application to use to send emails through. We setup Hub transport settings to what we like it to be, but when sending from the application it seems to ignore those settings. Is there a way to apply those settings to relaying as well?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Is the application using exchange or a local iis SMTP instance that then relays through exchange.
Check the connector parameters to which this application connects or setup a specific one.

How many recipients fo you want to set per message?
TechneutAuthor Commented:
We want to limit an email to just 50 recipients when sending an email externally. The application asks for SMTP parameters and in order for us to have it send through our server, I had to setup an relay connector, which seems to bypass the transport settings.
You either limit the number of recipients per message to 50 meaning any combination of recipients can not exceed 50 recipient.

Do you have a specific connector designated just for message exchange between the application and exchange?

Is using IIS SMTP an option.

The issue only applies during an SMTP session. A drop of in the pickup directory, the number of recipients is not enforced.
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.

TechneutAuthor Commented:
So is there a way to enforce or limit the number in cases that the Hub Transport does not?
Amit KumarCommented:
Try below command:

Set-ReceiveConnector "SMTP Application relay" -MaxRecipientsPerMessage 50

It will restrict 50 recipient per message.

If you want to restrict that how many mails should go per minutes that you can do it by below command:

Set-ReceiveConnector "SMTP Application relay" -MessageRateLimit 20 or 50 what ever you want to .

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
TechneutAuthor Commented:
Thanks for your help with this.

I input the command, but how would I know if it worked?
Amit KumarCommented:
you can check it by get command:

Get-ReceiveConnector "SMTP Application relay"  | fl MaxRecipientsPerMessage, MessageRateLimit

it will show you the limit if set command was working fine.

and you can try testing with e-mail as well.
if you have a telnet application
open a connection to your exchange server port 25 (putty is a nice/small tools)
#the SMTP exchange is issue a greeting.
ehlo workstationname
#once you receive a response greeting 2xx
#identify the sender of the email message
mail from: <>
#once you receive a 2xx accepting your sender
#identify to whom this message is address, the recipient
rcpt to: <>
#you should receive a 2xx that the recipient is ok.
#repeat the rcpt to: as many time, if you set to 50, when the 51 recipient is tried it should instead of 2xx respond with a 4xx or a 5xx (likely 5xx) saying the number of recipients have exceeded the limit.

To test create a new connector on port not being used, and test it out.

this restriction will only be enforced for SMTP sessions.  depositing the message in the pickup bin, will mean it will bypass the restriction.
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.