Re: Sending mail between 2 lan computers

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kristofer Gafvert (kgafvert_at_NEWSilopia.com)
Date: 02/07/05


Date: Sun, 06 Feb 2005 22:19:39 -0800

Maybe you should look in the MSDN documentation about the SmtpMail class?

It uses the local SMTP server (unless something else is specified), so it
should log something in the event log (but maybe not in this case since it
is a relay denied error).

Anyway, the error you get back is a relay denied. So you need to configure
the local SMTP server so that you are able to relay thru it. You can for
example add the IP of your machine to the list of allowed IPs to relay.

-- 
Regards,
Kristofer Gafvert
www.gafvert.info - My Articles and help
www.ilopia.com
G Dean Blake wrote:
> it never got to that computer.  I searched for any file created today on 
all
> th hard disks.  but I looked at the error data from the send side and  it
> says...
>
> Reporting-MTA: dns;yorkdell
> Received-From-MTA: dns;yorkdell
> Arrival-Date: Sun, 6 Feb 2005 12:10:46 -0800
>
> Final-Recipient: rfc822;someone@192.168.0.147
> Action: failed
> Status: 5.7.1
> Diagnostic-Code: smtp;550 5.7.1 Unable to relay for someone@192.168.0.147
>
> Any clue there?
> G
>
>
> "Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
> news:xn0dy6yp7bdg4fk01u@news.microsoft.com...
> > If you are using the SMTP server it would log something to the event 
log.
> >
> > Start->Run, eventvwr.msc
> >
> > --
> > Regards,
> > Kristofer Gafvert
> > www.gafvert.info - My Articles and help
> > www.ilopia.com
> >
> >
> > G Dean Blake wrote:
> >
> >> my other computer is 192.168.0.147 (per ipconfig) on my local lan but 
it
> >> didn't work.  That machine is running smtp.  However the email ended 
up
> > in
> >> my own \mailroot\queue folder as an EML file as a rejected email 
where I
> >> could see what it looked like but I'm still curious why it didn't 
work.
> >> G
> >> "Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
> >> news:xn0dy52ac99rhkc01f@news.microsoft.com...
> >> > Hello,
> >> >
> >> > You need to send it to the machine running SMTP. Assuming that you 
do
> > not
> >> > want to configure a local DNS server, you can simply send the 
emails to
> >> > someone@192.168.0.1 assuming that 192.168.0.1 is a machine running
> > SMTP.
> >> > This email will end up in the DROP folder on that machine.
> >> >
> >> >
> >> > --
> >> > Regards,
> >> > Kristofer Gafvert
> >> > www.gafvert.info - My Articles and help
> >> > www.ilopia.com
> >> >
> >> >
> >> > G Dean Blake wrote:
> >> >
> >> >> I have two xp machines.  This is my code on machine1
> >> >>         Dim m As MailMessage = New MailMessage
> >> >>         m.From = "myFromAddr@bogus.com"
> >> >>         m.To = "myToAddr@bogus.com"
> >> >>         m.BodyFormat = MailFormat.Text
> >> >>         m.Subject = "typeOfAction"
> >> >>         m.Body = "this is the body of my test email
> >> >>         SmtpMail.Send(m)
> >> > >
> >> >> IIS shows a Default SMTP Virtual Server on both machine1 and 
machine2
> >> > but I
> >> >> don't know how to address this mail to machine2.  When I send it 
now
> > it
> >> > goes
> >> >> out to my Earthlink ISP who rejects it by blocking port 25.  How 
do I
> >> > send
> >> >> it to machine2 so I can look at the email as it gets received?
> >> >> Thanks
> >> >> G


Relevant Pages

  • Re: SMTP behind NAT
    ... You are therefore forced to send mail via a local smtp server. ... Learn all of the latest penetration testing techniques in InfoSec Institute's Ethical Hacking class. ... Totally hands-on course with evening Capture The Flag exercises, Certified Ethical Hacker and Certified Penetration Tester exams, taught by an expert with years of real pen testing experience. ...
    (Security-Basics)
  • Re: Mail sending problems
    ... but it is one to bear in mind when your email fails to arrive. ... gone through, but as of a few years ago, the SMTP server avalable to BT ... Openworld business ADSL accounts very definitely did only allow From ... We had to set up a local SMTP server ...
    (comp.sys.acorn.networking)
  • Re: [SLE] SMTP authentication
    ... So eventhough my local SMTP server dials up to the internet with a certain ... it is a server side configuration, ... Mozilla will ask for the login/pass with a dialog at the moment it ...
    (SuSE)
  • SmtpMail.Send() No Error but no Email either.
    ... The code executes fine but no Email is sent. ... I'm using my local default SMTP Server and my from address is a valid ... I have configures the local SMTP Server to allow ... Could this be because yahoo/hotmail servers need authentication? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Unable to receive message with SMTP/POP3 server on window2003
    ... it should be your SMTP server. ... Kristofer Gafvert ... >> From where did you try to telnet? ... but I can't receive mail from another domaine. ...
    (microsoft.public.inetserver.iis)