Message submission rate for this client has exceeded the configured limit?

18,231

Solution 1

Rather then sending the emails directly can you use a pickup folder?

SmtpMail.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;

that way you just dump the messages in to the folder and let exchange send them when its ready, this way if your user can only send say 3 per minute exchange should send 3 then on the next pass send another 3 and so on.

Solution 2

I resolved this problem on my system by using the correct port. The way exchange had been set up meant that SSL = TRUE, Port = 587 produced this error. If I changed it to use Port 25, then everything worked just fine. So check with your sys admins this may help!

Share:
18,231
mezamorphic
Author by

mezamorphic

Updated on June 20, 2022

Comments

  • mezamorphic
    mezamorphic almost 2 years

    I have a for loop which calls some code sending emails. I get the following run-time error:

    Service not available, closing transmission channel. The server response was: 4.4.2 Message submission rate for this client has exceeded the configured limit

    After googling around it appears to be related to the "set-receiveconnector", possible for exchange server? Could anyone advise how I can fix this?

    the code:

                 var mail = new MailMessage();
                 var smtpServer = new SmtpClient(SMTPServer);
    
                 mail.From = new MailAddress(fromAddress);
                 mail.To.Add(toAddress);
                 mail.Subject = title;
    
                 mail.IsBodyHtml = isHTML;
                 mail.Body = message;
    
                 if(attach != null) mail.Attachments.Add(attach);
    
                 smtpServer.Port = xxx
                 smtpServer.UseDefaultCredentials = false;
                 smtpServer.Credentials = new NetworkCredential(SMTPUser, SMTPPassword);
                 smtpServer.EnableSsl = true;
                 smtpServer.Send(mail); //Error occurs here
    
  • mhesabi
    mhesabi about 9 years
    remember you need to set EnableSsl = false and also need absolute directory path in SmtpMail.PickupDirectoryLocation
  • GingerBeer
    GingerBeer over 5 years
    @Sturat, I like this solution. I was able to generate the .eml files. But how exactly can we configure exchange to pickup the mail?
  • Stuart
    Stuart over 5 years
    @BharatRaj that is way out of scope for SO, had one over to serverfault and they'll sort you out
  • user234110
    user234110 almost 5 years
    Thank you, Port 25 just saved me