Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: Relay Access denied error Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
PoornimaJoybala
Newbie
Newbie
Avatar

Joined: 19 February 2007
Location: India
Online Status: Offline
Posts: 1
Posted: 20 February 2007 at 12:29am | IP Logged Quote PoornimaJoybala

Hi all,

   I got the following error when send mail to my personal id.

[06:34:23.45] [INFO] Assembly version: 2.0.0.6.
[06:34:23.45] [INFO] Will resolve host "207.5.72.145".
[06:34:23.45] [INFO] Host "207.5.72.145" resolved to IP address(es) 207.5.72.145.
[06:34:23.45] [INFO] Will connect to host "207.5.72.145" on port 25.
[06:34:23.45] [INFO] Socket connected to IP address 207.5.72.145 on port 25.
[06:34:23.45] [RECV] 220 exmf014-4.msoutlookonline.net Microsoft ESMTP MAIL Service Version: 2.0\r\n
[06:34:23.45] [INFO] Connected to mail service at host "207.5.72.145" on port 25 and ready.
[06:34:23.45] [INFO] Will send Hello command (HELO or EHLO).
[06:34:23.45] [SEND] EHLO syncfusion.com\r\n
[06:34:23.45] [RECV] 250-exmf014-4.msoutlookonline.net\r\n250-PIPELINING\r\n250-S IZE 128000000\r\n250-VRFY\r\n250-ETRN\r\n250-STARTTLS\r\n250-ENH ANCEDSTATUSCODES\r\n250 DSN\r\n
[06:34:23.45] [INFO] SMTP Hello completed.
[06:34:23.45] [INFO] Will send Hello command (HELO or EHLO).
[06:34:23.47] [SEND] EHLO syncfusion.com\r\n
[06:34:23.47] [RECV] 250-exmf014-4.msoutlookonline.net\r\n250-PIPELINING\r\n250-S IZE 128000000\r\n250-VRFY\r\n250-ETRN\r\n250-STARTTLS\r\n250-ENH ANCEDSTATUSCODES\r\n250 DSN\r\n
[06:34:23.47] [INFO] SMTP Hello completed.
[06:34:23.47] [INFO] Will send mail message to SMTP server "207.5.72.145".
[06:34:23.50] [INFO] Will submit sender and recipients.
[06:34:23.50] [SEND] MAIL FROM:<support@syncfusion.com>\r\n
[06:34:23.50] [SEND] RCPT TO:<nima42@rediffmail.com>\r\n
[06:34:23.59] [RECV] 250 2.1.0 Ok\r\n
[06:34:23.59] [RECV] 554 5.7.1 <nima42@rediffmail.com>: Relay access denied\r\n
[06:34:23.61] [INFO] Error: The server rejected the given recipient. The server responded: 554 5.7.1 <nima42@rediffmail.com>: Relay access denied.
[06:34:23.63] [INFO] Will reset SMTP session.
[06:34:23.63] [SEND] RSET\r\n
[06:34:23.63] [RECV] 250 2.0.0 Ok\r\n
[06:34:23.63] [INFO] SMTP session was reset.

could any one help to solve the problem.

Thanks,
Joy


   
Back to Top View PoornimaJoybala's Profile Search for other posts by PoornimaJoybala
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 20 February 2007 at 2:55am | IP Logged Quote Andrew

The log shows your application tries to send a message to the recipient from an external domain. For sending to external domains, SMTP servers require sender to authenticate himself for security reasons. You should enable SMTP authentication as follows (C# syntax):

Code:
Smtp mailer = new Smtp();

// Enable logging
mailer.Log.Enabled = true;
mailer.Log.Filename = @"C:\log.txt";
mailer.Log.Clear();

// Create SMTP server object
SmtpServer server = new SmtpServer("mail.domain.com");

// Setting SMTP authentication data

// Full email or just username "jdoe",
// depends on SMTP server
server.AccountName = "jdoe@domain.com";
server.Password = "password";
server.AuthMethods = AuthenticationMethods.Auto;

// Add the SMTP server
mailer.SmtpServers.Add(server);

// Compose and send the message
mailer.From.Email = "jdoe@domain.com";
mailer.To.Add("marry@domain.com");
mailer.Subject = "Test";
mailer.BodyPlainText = "Test";
mailer.Send();



Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide