Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: SMTP time out error Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
slies
Newbie
Newbie
Avatar

Joined: 17 July 2006
Location: United States
Online Status: Offline
Posts: 5
Posted: 17 July 2006 at 5:37pm | IP Logged Quote slies

Howdy,

We are attempting to use the mailbee object to replace the use of the CDONTS objects that the .NET Mail objects use internally.

We have started with just the SMTP Demo App for C# and trying to get it to send.

I set it up as our public SMTP server, smtp.corporatesvcs.net and I get the following message "Socket Connection has timed out. InnerException message follows: A connection attempt failed because the connected party did no properly respond after a period of time, or established connection failed because connected host has failed to respond"

This SMTP is active and actively being used via the standard .Net Mail objects by simplying stating the smtp server and are on in constant operation. I also logged in via telnet and verified it is working.

Any help at what to look at would be appreciated.

- Scott
Back to Top View slies's Profile Search for other posts by slies
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 18 July 2006 at 7:47am | IP Logged Quote Alex

We tried to connect to smtp.corporatesvcs.net on port 25 but found the connection can't be established.

To let us investigate the problem in more detail, could you please provide us with the following details:
- mail server address (if it is not smtp.corporatesvcs.net);
- port number;
- login/password of a test account on your mail server. Please make sure this problem persist on this test account.

Please send this information to support@afterlogic.com.


Best regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
sas
Newbie
Newbie
Avatar

Joined: 26 December 2006
Location: Germany
Online Status: Offline
Posts: 3
Posted: 26 December 2006 at 3:07pm | IP Logged Quote sas

Hello,

I do have the same problem. It not only occurs when using my code but also the sample 1 for SMTP.NET. I traced the network traffic and I'm posting it here. If you need more info please contact me:

--- start
220 smtp.server (mrelayeu4) Welcome to Nemesis ESMTP server
EHLO domain
250-mrelayeu4 pleased to meet you
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-PIPELINING
250-SIZE 52428800
250 HELP
AUTH LOGIN
334 VXNlcm5hbWU6
bTgwNDI3MjQtdGVzdA==
334 UGFzc3dvcmQ6
dGVzdDEyMzQ1Ng==
235 authentication finished successfully
RCPT TO:<email>
503 bad sequence of commands
--- end

After that it runs on the timeout.

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


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 27 December 2006 at 8:05am | IP Logged Quote Andrew

Perhaps, your SMTP server just advertises pipelining support, but actually doesn't support it. In pipelining mode, MailBee.NET SMTP component sends several commands to the SMTP server simultaneously and if your server doesn't support pipelining (just advertises it), it may skip MAIL FROM (should be sent prior to RCPT TO) command. You can try to disable pipelining as follows (C# syntax):

Code:
Smtp.LicenseKey = "Trial or permanent key";
Smtp mailer = new Smtp();

// Specify SMTP server and enable authentication. Remove last 2 parameters if SMTP
// authentication is not required in order to send mail through your SMTP server.
mailer.SmtpServers.Add("mail.domain.com", "jdoe", "secret");

// Disable pipelining
mailer.SmtpServers[0].Pipelining = false;

// Set sender
mailer.From.DisplayName = "John Doe";
mailer.From.Email = "jdoe@domain.com";

// Demonstrate various methods to specify recipients.
mailer.To.AsString = "email@address.com";

mailer.Subject = "Test";
mailer.BodyPlainText = "Test";

mailer.Send();



If it doesn't help, could you please provide us with a test account on your mail server on which the issue can be reproduced? You can send this info to support@afterlogic.com.


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

Joined: 26 December 2006
Location: Germany
Online Status: Offline
Posts: 3
Posted: 29 December 2006 at 5:45am | IP Logged Quote sas

Disabling Pipelining helped. But: the server actually supports it. I found out that when disabling the anti virus services (which act as a proxy for all mail traffic) the code runs perfect. Thanks for your help. BTW: I disabled pipelining, living w/o an anti virus is maybe not the best idea ;)

Kind regards,
Sascha
Back to Top View sas's Profile Search for other posts by sas
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 29 December 2006 at 8:05am | IP Logged Quote Alex

Thanks for posting back. Now it's clear there is a bug in your antivirus. It intercepts SMTP traffic from pipelining-enabled SMTP server and then transmits it to other apps but does not support pipelining itself. In this case, it should exclude pipelining from the list of advertized capabilities but it "forgets" to do so.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

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