Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2008

Tip: Looking for answers? Try searching our database.

SMTP Relay from IIS SMTP Virtual Server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tshad - 02 May 2008 21:33 GMT
I have a W2K3 Server we are setting up to run a Windows Service for a client
at their location.

I don't want this machine to go through exchange or their local mail server,
I just want the Server to send out a message from the SMTP Virtual Server to
me (in a different company) to tell me that some exception has happened in
our service.  The problem is that it creates an error about a relay:

Exception Type: System.Net.Mail.SmtpFailedRecipientException
FailedRecipient: <tomS@pd.com>
StatusCode: MailboxUnavailable
Message: Mailbox unavailable. The server response was: 5.7.1 Unable to relay
for tomS@pd.com
Data: System.Collections.ListDictionaryInternal
TargetSite: System.Net.Mail.MailWriter SendMail(System.Net.Mail.MailAddress,
System.Net.Mail.MailAddressCollection, System.String,
System.Net.Mail.SmtpFailedRecipientException ByRef)
HelpLink: NULL
Source: System

There is no mailbox here, just the virtual server.

The way I can make it work is to go into the properties for the SMTP Virtual
Server and go to Access/Relay and add 127.0.0.1 to only allow relay from
only this machine.

Is this the proper way to do it?

Thanks,

Tom
bruce barker - 05 May 2008 05:26 GMT
the smtp virtual needs some valid smtp server it can relay thru.
generally the smtp server will require a login (which you can configure
the virtual server to supply).

I assume you are planning on using your smtp server, talk to your
network people and get the port number and login the virtual server will
need. then configure the client virtual relay to use these settings.

the client may need to configure their firewall to allow smtp out from
the virtual server.

-- bruce (sqlwork.com)

> I have a W2K3 Server we are setting up to run a Windows Service for a client
> at their location.
[quoted text clipped - 27 lines]
>
> Tom

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.