Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 907637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:35:11+00:00 2026-05-15T16:35:11+00:00

I deployed my web app to our production IIS 6.0 server and everything is

  • 0

I deployed my web app to our production IIS 6.0 server and everything is working except when my code attempts to send email to an address that is NOT in the domain of our email server. I’ve seen various symptoms but this seems the most straightforward to describe:

Syntax error in parameters or arguments. The server response was: 5.7.1 This system is not configured to relay mail

My web app getting this error msg uses System.Net.Mail. It resides along with the older web app it is supposed to replace which uses System.Web.Mail. There is one SMTP server on this same machine that seems to require some new configuration regarding relay.

Checking the SMTP server properties showed nothing configured for “Relay Restrictions”. The older production web app sends email without errors with the SMTP server configured as described.

So, in summary, does use of System.Net.Mail require something different for relaying email than System.Web.Mail?

The web.config for the newer version that has relay issues contains:

<system.net><mailSettings><smtp><network host="mail.cbmiweb.com" port="25"/></smtp>

I used the values above for all my testing (first on my localhost with XP IIS 5.1; then on a staging IIS 6.0 server in our LAN) and never had any “relay” problems.

The web.config for the older version using System.Web.Mail contains nothing related to SMTP!

If I suddenly need a username and password added to the smtp setting above, how come I never needed “credentials” during development?

I don’t know much about SMTP and really don’t even know what to ask the mail server administrator. I am very confused about what to do…thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:35:12+00:00Added an answer on May 15, 2026 at 4:35 pm

    Sounds to me like the old app is sending the message directly to the recipients server and is bypassing your local mail server completely. This would have happened because your app would not have had a mail server to use configured, so it defaults back to trying to send the mail itself.

    This is usually a bad idea as it can cause delays in your application depending on the recipients mail server configuration (we’re talking seconds here). Further if you aren’t configured to deal with things like grey lists, etc, then you can have a high number of emails that you think was sent, but never really arrived.

    You should ask the mail server administrator to properly configure your local mail server to allow relaying from your machine.

    OR (and this is the more secure way)

    You should set up a user on your local mail server and have your app use those login credentials when attempting to send email.

    The systemnetmail.com site might be helpful. Specifically the page on smtp configuration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I deployed a web app today to my production server, I had an error
We are experiencing some slowdowns on our web-app deployed on a Tomcat 5.5.17 running
Our asp.net app is running on 10 web servers, after we deployed the new
We are performing some JMeter tests on a JBoss 4.0.5 deployed web app. We
I currently have an app deployed on Heroku which runs on two web dynos
Is it possible to edit web.config file of my cloud app deployed on Windows
Recently, we deployed our web-application to a new set of servers. AppServer: Websphere 6.1
We have an existing web app built with jQuery Mobile. Our goal is to
We are developing an app that consists of a web server that hosts a
Hi have deployed web app on Stratos Live I can run the web app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.