[twsocket] Correct shutdown/abort procedure

2010-05-13 Thread Pete Williams

Hi all

I use  TsmtpCli and TPop3Cli, and am not shutting these down correctly, and 
would like some advice on how to stop these components.

Here's the problem.

These components work reliably on a thread where there are many other such 
components, reading and writing user email. Each account on our system gets one 
of each.

At any point, an account may be requested to stop.

What is the correct way to say to these 2 components 'stop whatever you are 
doing, clean up and quit'?

The thread that the components exist in continues to run.

The problem I have is that sometimes after they've stopped, I get GPFs in the 
message pump that these used to exist in - sometimes immediately, sometimes 
after a delay of several minutes. 

Thanks in advance
  
_
http://clk.atdmt.com/UKM/go/19780/direct/01/
Do you have a story that started on Hotmail? Tell us now
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Correct shutdown/abort procedure

2010-05-13 Thread Pete Williams

Thanks for the tip Arno.

I was calling abort, but then going on to free the components after the Abort.

I'll add a delay, and a custom message as you advise.

Pete

 From: arno.garr...@gmx.de
 To: twsocket@elists.org
 Date: Thu, 13 May 2010 15:12:20 +0200
 Subject: Re: [twsocket] Correct shutdown/abort procedure
 
 Pete Williams wrote:
 
  At any point, an account may be requested to stop.
  
  What is the correct way to say to these 2 components 'stop whatever
  you are doing, clean up and quit'?
  
  The thread that the components exist in continues to run.
  
  The problem I have is that sometimes after they've stopped, I get
  GPFs in the message pump that these used to exist in - sometimes
  immediately, sometimes after a delay of several minutes.  
 
 In order to abort and stop them as fast as possible call Abort.
 Abort most likely will trigger other events, setting all event handlers
 to nil prevents this. Since an instance may not be freed from its own
 event handlers one has to PostThreadMessage() a custom message, and
 free the object when this message is handled. The thread requires a 
 custom message pump.
 
 --
 Arno Garrels
 
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
  
_
http://clk.atdmt.com/UKM/go/19780/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] I keep tripping the same POP3 Client Exception

2009-10-01 Thread Pete Williams

Hi

In response to a 'Stat' command, TPOP3Cli sometimes raises this exception:

procedure TCustomPop3Cli.StartTransaction(
OpCode  : String;
Params  : String;
RqType  : TPop3Request;
NextState   : TPop3ProtocolState;  { Next protocol state in case of success}
DoneTrans   : TPop3NextProc);  { What to do when done  }
var
Cmd : String;
begin
if FProtocolState  pop3Transaction then begin
FErrorMessage := '-ERR ' + OpCode + ' command invalid now';
Display(FErrorMessage);
raise Pop3Exception.Create(FErrorMessage);
end;

On the whole, things work OK, and this may be a timing issue, or I'm not 
handling an error correctly.

How can I check it is safe to issue the Stat command?

Thanks

  
_
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] RESOLVED:: Problem sending larger attachments

2009-08-27 Thread Pete Williams

Hi Arno

Thank you for this - it turns out you were correct. Once my message pump was 
corrected it worked.

I still need a handler on OnDisplay that sleeps for 2 milliseconds, but 
everything is working reliably now. I've put through a ton of emails this 
morning and everything has worked out OK.

I'll make sure my message pump code is OK from here onwards.

Thanks a lot, Pete



 From: arno.garr...@gmx.de
 To: twsocket@elists.org
 Date: Thu, 27 Aug 2009 08:41:12 +0200
 Subject: Re: [twsocket] Problem sending larger attachments
 
 Pete Williams wrote:
  I'll post the code tomorrow, but before then...
  
  - The RTC component is on a TDataModule, which is created in the
  Execute() method of the thread in which it runs. 
  - The Connect method is called from the same thread as it's
  constructor, I'm not mixing threads. 
 
 You do not check message's HWND member. If your custom 
 message IDs EMAIL_GATEWAY_TICK .. EMAIL_GATEWAY_QUIT are not
 unique they may conflict with message IDs used by TSmtpCli
 (or RTC?) internally. 
 
 while not Terminated do
 begin
 if not GetMessage(Msg, 0, 0, 0) then
 break;
 if Msg.Hwnd = 0 then // PostThreadMessage() = destination HWND = 0
 begin
 case Msg.Message of
 EMAIL_GATEWAY_TICK : ;
 [..]
 else 
TranslateMessage(Msg);
DispatchMessage(Msg); 
 end;
 end
 else begin // Dispatch window messages 
 TranslateMessage(Msg);
 DispatchMessage(Msg); 
 end;
 end;
 
 --
 Arno Garrels  
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

_
Windows Live Messenger: Happy 10-Year Anniversary—get free winks and emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Problem sending larger attachments

2009-08-24 Thread Pete Williams

Here's a funny thing - without a handler on OnDisplay nothing gets sent at all. 
Even small files.

I found I had to have a Sleep(5) instruction in there, otherwise nothing gets 
sent.

I assumed this was some kind of race/timing condition.

 From: arno.garr...@gmx.de
 To: twsocket@elists.org
 Date: Mon, 24 Aug 2009 12:37:38 +0200
 Subject: Re: [twsocket] Problem sending larger attachments
 
 Pete Williams wrote:
  
  Let me try these things  then report back.
 
 When you test (big) file attachments with MailSnd demo 
 unassign event handler OnDisplay first, otherwise it took
 ages.
 
 --
 Arno Garrels
 
 
 
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

_
Celebrate a decade of Messenger with free winks, emoticons, display pics, and 
more.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Problem sending larger attachments

2009-08-23 Thread Pete Williams

Hi

Any ideas how I solve or problem solve this?

Using Thunderbird I can send 5MB+ emails to myself.

Using TSMTPCli I can send something like 1.5MB, but nothing bigger. The SMTP 
server does not report any error - the email just does not arrive.

Any ideas why this would be? The SMTP server is the same in both cases. I've 
whitelisted myself, and I don't think anything is being blocked by anti spam. 
It seems to be size that is the issue - I can predict which ones will arrive, 
and which not, based on size.

Thanks, 

_
Celebrate a decade of Messenger with free winks, emoticons, display pics, and 
more.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Problem sending larger attachments

2009-08-23 Thread Pete Williams

One other thing I should have mentioned in my first post.

I'm using the Delphi 2009 ICS components. I have not seen this problem with the 
components I used with earlier versions of Delphi.

 From: arno.garr...@gmx.de
 To: twsocket@elists.org
 Date: Sun, 23 Aug 2009 11:39:29 +0200
 Subject: Re: [twsocket] Problem sending larger attachments
 
 Pete Williams wrote:
  Hi
  
  Any ideas how I solve or problem solve this?
  
  Using Thunderbird I can send 5MB+ emails to myself.
  
  Using TSMTPCli I can send something like 1.5MB, but nothing bigger.
  The SMTP server does not report any error - the email just does not
  arrive.  
 
 Are you sending exactly the same files with both? 
 Gmail for example, reject any EXE even in ZIP packages (though 
 returning an error).
 
 --
 Arno Garrels
  
 
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

_
Windows Live Messenger: Happy 10-Year Anniversary—get free winks and emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Problem sending larger attachments

2009-08-23 Thread Pete Williams

Hi there

Yes - absolutely the same attachments for both.

And I'm really just sending the email to my hotmail account, and to my own POP3 
account on the same server. 

 From: arno.garr...@gmx.de
 To: twsocket@elists.org
 Date: Sun, 23 Aug 2009 11:39:29 +0200
 Subject: Re: [twsocket] Problem sending larger attachments
 
 Pete Williams wrote:
  Hi
  
  Any ideas how I solve or problem solve this?
  
  Using Thunderbird I can send 5MB+ emails to myself.
  
  Using TSMTPCli I can send something like 1.5MB, but nothing bigger.
  The SMTP server does not report any error - the email just does not
  arrive.  
 
 Are you sending exactly the same files with both? 
 Gmail for example, reject any EXE even in ZIP packages (though 
 returning an error).
 
 --
 Arno Garrels
  
 
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

_

Upgrade to Internet Explorer 8 Optimised for MSN.  

http://extras.uk.msn.com/internet-explorer-8/?ocid=T010MSN07A0716U
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Problem sending larger attachments

2009-08-23 Thread Pete Williams

Thanks a lot

Let me try these things  then report back.



 From: arno.garr...@gmx.de
 To: twsocket@elists.org
 Date: Sun, 23 Aug 2009 16:20:11 +0200
 Subject: Re: [twsocket] Problem sending larger attachments
 
 Pete Williams wrote:
  Hi there
 
 Hi,
  
  Yes - absolutely the same attachments for both.
  I'm using the Delphi 2009 ICS components. 
  I have not seen this problem with the components I used with earlier 
  versions of Delphi.
 
 Are you sure that SMTP command DATA succeeds?  
 
 Does it repeat with latest ICS v7 available at:
 http://wiki.overbyte.be/wiki/index.php/FAQ#How_to_get_ICS ?
 
 Try the MailSnd demo.
 Also, if you send the mail to file, which is an option in the demo, 
 does it produce a correct email file that displays in OE or Thunderbird?
 
 --
 Arno Garrels  
 
 
  
  And I'm really just sending the email to my hotmail account, and to
  my own POP3 account on the same server. 
  
  From: arno.garr...@gmx.de
  To: twsocket@elists.org
  Date: Sun, 23 Aug 2009 11:39:29 +0200
  Subject: Re: [twsocket] Problem sending larger attachments
  
  Pete Williams wrote:
  Hi
  
  Any ideas how I solve or problem solve this?
  
  Using Thunderbird I can send 5MB+ emails to myself.
  
  Using TSMTPCli I can send something like 1.5MB, but nothing bigger.
  The SMTP server does not report any error - the email just does not
  arrive.
  
  Are you sending exactly the same files with both?
  Gmail for example, reject any EXE even in ZIP packages (though
  returning an error).
  
  --
  Arno Garrels
  
  
  
  --
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
  Visit our website at http://www.overbyte.be
  
  _
  
  Upgrade to Internet Explorer 8 Optimised for MSN.
  
  http://extras.uk.msn.com/internet-explorer-8/?ocid=T010MSN07A0716U
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

_
Windows Live Messenger: Happy 10-Year Anniversary—get free winks and emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Using lots of TSmtpCli in a single application

2009-08-17 Thread Pete Williams

Thanks for all the messages! Some useful things for me to know.

My question wasn't about email volume as such, but simply about having lots of 
TSmtpCli components active at any one time, even if they are not doing anything.

The application I'm working on is 9 years old, has many thousands of man hours 
spent on it, and whilst it would be nice to have a single TSmtpCli, in order to 
avoid a massive code rewrite it's much easier for me to have lots of TSnmpCli 
components, rather than one (you can't see it, but I can of course). 

Reading the responses, it looks like this is somewhat un-orthodox but will not 
generate any stability problems at all with respect to ICS - which is what I'd 
hoped.

Thanks again, Pete

_
Windows Live Messenger: Thanks for 10 great years—enjoy free winks and 
emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Using lots of TSmtpCli in a single application

2009-08-17 Thread Pete Williams

This is a really useful thing for me to know, thanks for posting this.
 
 This is the correct way of handling.  As per the RFC, error codes win  
 the 400 range are transient errors, meaning that they are temporary,  
 and the sender should retry eventually; while codes in the 500 range  
 are permanent errors.  Of course, servers are not required to adhere  
 to the RFC, but I haven't come across one that does not in this  
 regard.  It's for their own benefit, for they stand to break the  
 entire system and lose e-mail if they send the wrong response.
 
 Greylisting and other anti-spam techniques should result in a 4.x.x  
 error.  Any mail sending application should be smart enough to re- 
 queue these.  5.x.x errors must not be re-tried without  
 modifications.  In my mail queue server I have a simple algorithm to  
 attempt to determine the reason for the failure, and sort them so that  
 they can be manually analysed and corrected if necessary.  The most  
 common errors I've seen are:
   1. User not found (account closed)
   2. Destination server blacklisted in ORDB
   3. Common typo in domain name (e.g. yaho.com, gmail.cmo, etc.)
 
   dZ.
 


_
Windows Live Messenger: Happy 10-Year Anniversary—get free winks and emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Using lots of TSmtpCli in a single application

2009-08-16 Thread Pete Williams

Hi 

I've used ICS components for a while now and had great results. 

I have something new to do and wanted some advice before starting a new project.

Previously my app used a single TSmtpCli and this all worked fine. Now however 
I have to send mail on behalf of lots of accounts and the number of TsmtpCli 
components in use simultaneously, used in a multi threaded application, could 
be in excess of 100.

Assuming that the machine has enough memory and processor power, am I likely to 
run into any problems?

I don't evisage the email volumes being massive - say 20 per hour per account, 
meaning something like 200 per hour outgoing per application.

My reason for asking is simple - I'm doing something unusual. If it is likely 
to be a problem I can try concentrating all emails through a single Tsmtpcli 
but because of the code base I am working with this will be much harder to do.

Any comments welcome. Thanks in advance!





_

Upgrade to Internet Explorer 8 Optimised for MSN.  

http://extras.uk.msn.com/internet-explorer-8/?ocid=T010MSN07A0716U
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] I need some help understanding TWsocket states

2007-11-28 Thread Pete Williams
Thank you to the two people who replied. I got really good advice which 
I followed and this seems to have given me a working server, but I still 
have client problems.

- I created a message-pump in a distinct thread for the DLL server, as 
advised.
- Both client and server were changed to async programming style, and 
this worked for the server.

I have another problem though, which seems stange, and may be related to 
timing (or something).

My client wants to sometimes connect to the server, send a few lines of 
data, and then disconnect.

When I want to send data this is what I do

procedure sendData(asMessage: string);
begin
mystringlist.add(asMessage);
if mytwsocket.state  wsConnected then
begin
   mytwsocket.addr := '127.0.0.1'; // client and server are on same 
machine
   mytwsocket.port := '17072';
   mytwsocket.connect();
end;
end;

Then I have handlers for OnSessionAvailable and OnDataSent. 
OnSessionAvailable doesn't seem to get called ever.

In OnDataSent I do this

begin
if mystringlist.count  0 then
begin
   mytwsocket.sendStr(mystringlist[0]+#$D#$A);
   mystringlist.delete(0); // we've sent this one
end else
begin
   mytwsocket.close(); // no more data to send, so close
end;
end;

Here's what I've observed. The client can send once, and that's it. I 
can't send twice. However, if I put a breakpoint at the end of the 
function that connects to the server,it works - almost like there is 
some kind of timing issue.

I'm working on Windows 2003.

Should I use threads for my clients as well? Any advice is greatly received.


Wilfried Mestdagh wrote:
 Hello Pete,

   
 if myclient.state  wsConnected then
 begin
 myclient.connect;
 loop for 5 seconds begin
 

 You have to think async. TWSocket uses events. think on events as a
 OnClick event of a butten. You don't write loops to wait until a user
 click a button. So you have to change to:

MyClient.Connect; // that's all

 and in the OnSessionAvailable event you start do
TWSocket(Sender).sendstr(thedatastring);

   
myclient.processMessages;
 

 General a very bad idea to call the message pump yourself.

   
 myclient.close();
 

 If your client has send all the data then you still dont know if the
 other end has received an handled the data. if you design your proto
 yourself then the receiver can close. if  you dont then call
 ShutDown(1);

   
 myserver.OnsessionAvailable
 begin
 myserversocket.dup(myserversocket.accept());
 end;
 

 Better to use TWSocketSer4ver.

 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz

 Monday, November 26, 2007, 18:58, Pete Williams wrote:

   
 Hello again
 

   
 I'm trying to write a very simple client/server socket application using
 TWSocket. However, I think I may not understand the use of states correctly.
 

   
 What I want is for the client to connect to the server, send some data,
 and then disconnect. If it has more data to send, I want it to connect
 again and repeat the process.
 

   
 Here's what is happening at the moment. The client can connect to the 
 server and successfully send as much data as it chooses. However, once
 it disconnects it can't reconnect.
 

   
 The code on the client is broadly thus (using  a pseudo code):
 

   
 if myclient.state  wsConnected then
 begin
 myclient.connect;
 loop for 5 seconds begin
myclient.processMessages;
if myclient.state = wsConnected then
begin
   lbConnected := TRUE:
   break;
end;
 end loop;
 end else
 lbConnected := TRUE;
 

   
 if lbConnected then
 myclient.sendstr(thedatastring);
 

   
 myclient.close();
 

   
 On the server, this is what I have:
 

   
 myserver.OnsessionAvailable
 begin
 myserversocket.dup(myserversocket.accept());
 end;
 

   
 I'm also handling the OnDataAvailable event, and this works fine - but
 only the first time (or at least until the client disconnects).
 

   
 I've tried recalling listen() in the OnSessionClosed event, but it does
 nothing.
 

   
 The state of the client on the 2nd attempt to reconnect remains at closed.
 

   
 If anyone can point me in the right direction I'd be grateful. Maybe I
 need some form of clean-up on the server after the disconnect?
 

   
 Cheers,
 

   

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] I need some help understanding TWsocket states

2007-11-28 Thread Pete Williams
I don't mind checking simple stuff. I'm desperate, as I have a deadline 
for Saturday!

It is definately connected  hooked-up. Nothing is over-writing it.

[EMAIL PROTECTED] wrote:
 Hello:
This may sound stupid, but could you verify that
 the OnSessionAvailable event is actually wired
 (assigned to the property)?  It seems strange that it
 is not called, yet OnDataSent is.

Also, what happens when you try to send a second
 time (or does it even try)?  Do you get a Component
 already connected error or something like that?

If your burst messages are short as your example
 implies, then there is really no reason to do this on
 a separate thread; it will actually be slower to
 spawn a new thread and execute it than to just
 re-connect and call SendStr.

  -dZ.

   

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] TWSocket component within DLL

2007-11-24 Thread Pete Williams
Hi

I hope someone can help me.

I'm trying to use TWSocket to listen for incoming data and display it on 
a console. TWSocket is initialised and used within a Delphi DLL.

The problem I have is that I initialise the TWSocket component, but none 
of the events fire to tell me about the incoming data. If I use the 
component in a delphi app it works fine. Is there something I need to do 
for DLL use?

Any help appreciated.
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] 10054 Connection reset by peer while sending dataTSmtpCli

2007-01-22 Thread Pete Williams
Some servers have a limit on the size of email message that they will
accept - this is something I've personally encountered before. It's an
anti-spam, security measure.

Try sending using Outlook Express and see if it gets through.

- Original Message - 
From: Arno Garrels [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, January 22, 2007 10:24 AM
Subject: [twsocket] 10054 Connection reset by peer while sending
dataTSmtpCli


 Hello,

 Any idea what might cause the server to drop the connection while
 the client is sending bigger data?

 20.12.06 13:39:11  220 foo.net ESMTP Sendmail 8.13.8/8.13.8; Wed,
20 Dec 2006 13:38:59 +0100 (CET)
 20.12.06 13:39:11  HELO 
 20.12.06 13:39:11  250 foo.net Hello foo.net [xxx.xxx.xxx.xx],
pleased to meet you
 20.12.06 13:39:11  MAIL FROM:[EMAIL PROTECTED]
 20.12.06 13:39:11  250 2.1.0 [EMAIL PROTECTED]... Sender ok
 20.12.06 13:39:11  RCPT TO:[EMAIL PROTECTED]
 20.12.06 13:39:11  250 2.1.5 [EMAIL PROTECTED]... Recipient ok
 20.12.06 13:39:11  DATA
 20.12.06 13:39:11  354 Enter mail, end with . on a line by itself
 20.12.06 13:39:26   Session closed **Error 10054!

 Mailbox full, data recognized as SPAM, virus detected?

 Arno Garrels

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


 __ NOD32 1995 (20070121) Information __

 This message was checked by NOD32 antivirus system.
 http://www.eset.com



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] [tsyncsmtpcli] Problem sending emailtoExchange2000server

2005-10-05 Thread Pete Williams
Thanks Francois

I'll do that and report back.

Pete
- Original Message - 
From: Francois Piette [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, October 05, 2005 12:20 PM
Subject: Re: [twsocket] [tsyncsmtpcli] Problem sending
emailtoExchange2000server


  We are at a loss at the moment. Does anyone
  have any idea what could be causing this?

 Use the sample program MailSnd delivered with ICS to send an email
and show us the log of messages
 exchanged with the server (this log is simply shown in a TMemo in
the demo, copy and paste it).

 If the log show an error, then I can comment on it.

 If the log doesn't show any error, it means the server is silently
throwing away the message
 probably because some rule tell him to do so. Such rules are
sometime setup to avoid spamming.

 --
 Contribute to the SSL Effort. Visit
 http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware)
 Author of MidWare (Multi-tier framework, freeware)
 http://www.overbyte.be



 - Original Message - 
 From: Pete Williams [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Wednesday, October 05, 2005 1:14 PM
 Subject: Re: [twsocket] [tsyncsmtpcli] Problem sending email
toExchange2000server


  Just a recap on this one: more info now.
 
  We have an ICS-based email app that is having difficulty sending
  messages to Exchange 2000 server. Specifically, we can send
internal
  emails but not emails that would need to be sent over the
internet. No
  error is reported by ICS, the email just disappears.
 
  Outlook Express works and can send external emails. *Also, Phoenix
  (which is an open source application and nothing to do with OE)
can
  also send external emails*.
 
  So this seems to be a problem with ICS. One thing which may/may no
be
  significant: our app just sends emails using SMTP. It doesn't read
  them via POP3 like Phoenix.
 
  The mail server is on a customer site, so we don't have direct
access
  to it.
 
  We are at a loss at the moment. Does anyone have any idea what
could
  be causing this?
 
  Regards, Pete
 
  -- 
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://www.elists.org/mailman/listinfo/twsocket
  Visit our website at http://www.overbyte.be

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


 __ NOD32 1.1241 (20051004) Information __

 This message was checked by NOD32 antivirus system.
 http://www.eset.com



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] [tsyncsmtpcli] Problem sending email to Exchange 2000 server

2005-09-19 Thread Pete Williams
Hi

(Before saying this is a server problem, read the whole message, as
it's got us confused)

Our ICS-based email app (using TSnycSMTPCli) work fine most of the
time. We have once instance though where when sending external emails
(i.e., emails that require to be sent over the internet, not
internally) the application using ICS thinks it's sent, but the email
just disappears. Internal emails go fine.

Now, the strange thing is that Outlook Express (connected as a
SMTP/POP3 client) on the same machine as ICS *can* send external
emails with no problem.

Does anyone have any ideas as to why OE might be able to send, and
TSyncSMTPCli might not? There are no errors reported by ICS.

If anyone can help I'd be grateful.

Pete Williams.


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] [tsyncsmtpcli] Problem sending email to Exchange2000 server

2005-09-19 Thread Pete Williams
Wow thanks for your quick reply.

I'll reply between the lines.

 First, what kind of SMTP Server is receiving the e-mails on the
other end?

Exchange 2000 server.

Second, are you positive that your ICS application is  sending a QUIT
command at the end of the transaction?

I believe so. The function QuitSync is called, and the return code
tested.

And third, the server might be rejecting messages from your
 ICS client because it does not recognize the MUA as a valid one,
 while it recognizes OE as a legitimate mailer.

That's an interesting one. What is MUA and how do I set it? Sorry for
what is probably a dumb question.

Pete.

- Original Message - 
From: DZ-Jay [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, September 19, 2005 11:29 AM
Subject: Re: [twsocket] [tsyncsmtpcli] Problem sending email to
Exchange2000 server


 A few things come to mind.  First, what kind of SMTP Server is
 receiving the e-mails on the other end?  This might be important, as
 some servers have some weird, non-standard requirements or modus
 operandi.  Second, are you positive that your ICS application is
 sending a QUIT command at the end of the transaction? Some servers
 require this in order to queue a message, and if the connection is
 closed without receiving the QUIT command, they might dismiss the
 message.  And third, the server might be rejecting messages from
your
 ICS client because it does not recognize the MUA as a valid one,
 while it recognizes OE as a legitimate mailer.

 Can you post, or send by private message, a verbose log of a
complete
 SMTP transaction between your ICS client and the server, from one of
 those messages that is lost?  Also, you might want to compare the
 headers sent by your ICS client and those sent by OE.  Try mimicking
OE
 by forging the message's headers to look like Outlook Express' and
see
 if that helps.

 dZ.

 On Sep 19, 2005, at 06:23, Pete Williams wrote:

  Hi
 
  (Before saying this is a server problem, read the whole message,
as
  it's got us confused)
 
  Our ICS-based email app (using TSnycSMTPCli) work fine most of the
  time. We have once instance though where when sending external
emails
  (i.e., emails that require to be sent over the internet, not
  internally) the application using ICS thinks it's sent, but the
email
  just disappears. Internal emails go fine.
 
  Now, the strange thing is that Outlook Express (connected as a
  SMTP/POP3 client) on the same machine as ICS *can* send external
  emails with no problem.
 
  Does anyone have any ideas as to why OE might be able to send, and
  TSyncSMTPCli might not? There are no errors reported by ICS.
 
  If anyone can help I'd be grateful.
 
  Pete Williams.
 
 
  -- 
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://www.elists.org/mailman/listinfo/twsocket
  Visit our website at http://www.overbyte.be
 

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


 __ NOD32 1.1219 (20050916) Information __

 This message was checked by NOD32 antivirus system.
 http://www.eset.com



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] [tsyncsmtpcli] Problem sending email to Exchange2000server

2005-09-19 Thread Pete Williams
Hi

 Verify that OE use SMTP and don't use IMAP4.

It definately uses SMTP.

Pete

- Original Message - 
From: Francois Piette [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, September 19, 2005 4:03 PM
Subject: Re: [twsocket] [tsyncsmtpcli] Problem sending email to
Exchange2000server


 Verify that OE use SMTP and don't use IMAP4.
 Use a netwrok sniffer to see exactly what OE does and what your
program does (you can simply log
 what your program does).

 --
 Contribute to the SSL Effort. Visit
 http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware)
 Author of MidWare (Multi-tier framework, freeware)
 http://www.overbyte.be


 - Original Message - 
 From: Pete Williams [EMAIL PROTECTED]
 To: twsocket@elists.org
 Sent: Monday, September 19, 2005 12:23 PM
 Subject: [twsocket] [tsyncsmtpcli] Problem sending email to Exchange
2000server


  Hi
 
  (Before saying this is a server problem, read the whole message,
as
  it's got us confused)
 
  Our ICS-based email app (using TSnycSMTPCli) work fine most of the
  time. We have once instance though where when sending external
emails
  (i.e., emails that require to be sent over the internet, not
  internally) the application using ICS thinks it's sent, but the
email
  just disappears. Internal emails go fine.
 
  Now, the strange thing is that Outlook Express (connected as a
  SMTP/POP3 client) on the same machine as ICS *can* send external
  emails with no problem.
 
  Does anyone have any ideas as to why OE might be able to send, and
  TSyncSMTPCli might not? There are no errors reported by ICS.
 
  If anyone can help I'd be grateful.
 
  Pete Williams.
 
 
  -- 
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://www.elists.org/mailman/listinfo/twsocket
  Visit our website at http://www.overbyte.be

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


 __ NOD32 1.1219 (20050916) Information __

 This message was checked by NOD32 antivirus system.
 http://www.eset.com



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] [tsyncsmtpcli] Problem sending email to Exchange2000server

2005-09-19 Thread Pete Williams
Hi

Are you absolutely sure? We get customers emailing us all the time
saying
 Outlook works fine

We get that too from our customers. Outlook Express and Outlook are
quite different. We are using OE as the tester.

Exchange is a beast with way to many stupid settings.

I'll second that!

Maybe
 Outlook is using one type of authentication while your SMTP client
is using
 a less secure method (or no authentication at all).

Our client is not using SMTP authentication, but neither is OE.

I'm going to give SocketSpy a try to see what could be up.

Thanks to everyone for their help.

Petew.
- Original Message - 
From: Jake Traynham [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, September 19, 2005 4:58 PM
Subject: Re: [twsocket] [tsyncsmtpcli] Problem sending email to
Exchange2000server


 Hello,

 At 10:16 AM 9/19/2005, you wrote:
 Hi
 
   Verify that OE use SMTP and don't use IMAP4.
 
 It definately uses SMTP.

 Are you absolutely sure?  We get customers emailing us all the time
saying
 Outlook works fine, but your [SMTP based program] won't send emails
 outside of our domain!  It's always that Outlook is connecting to
the
 server using IMAP and the settings on the server are set to allow
those
 emails to relay or whatever.  I would double- and triple-check the
 settings on Exchange to make sure that emails coming in over SMTP
can send
 out to the internet.  Exchange is a beast with way to many stupid
settings.

 The only other thing I can think of still has to do with the server
side:
 see if there's some settings in Exchange that limit who can relay
emails
 based on what type of authentication they use to access the server.
Maybe
 Outlook is using one type of authentication while your SMTP client
is using
 a less secure method (or no authentication at all).

 I hope this helps,
 Jake


 --
 Jake Traynham
 Comm-Unity Networking Systems
 FSA Associate Level Members
 http://www.cnsplug-ins.com/

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


 __ NOD32 1.1220 (20050919) Information __

 This message was checked by NOD32 antivirus system.
 http://www.eset.com



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] [tsyncsmtpcli] Problem sending email toExchange2000server

2005-09-19 Thread Pete Williams
Hi

No, it is *not* using IMAP4 - it's Outlook Express (not Outlook) we're 
using. They have the same name but are quite different.

However, we will get a non-MS email client like pheonix tried out tomorrow. 
I'll post on my findings.

Pete.
- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, September 19, 2005 7:07 PM
Subject: Re: [twsocket] [tsyncsmtpcli] Problem sending email 
toExchange2000server


 Yes, IMAP4 does it all.
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be

 - Original Message - 
 From: Wilfried Mestdagh [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Monday, September 19, 2005 8:05 PM
 Subject: Re: [twsocket] [tsyncsmtpcli] Problem sending email to
 Exchange2000server


 Hello Francois,

 Verify that OE use SMTP and don't use IMAP4.

 Is IMAP also used to send emails ? I have the problem that M$ Echange
 complains it will not relay, but sending with outlook to same
 destination it works. So probably this is the reason...

 ---
 Rgds, Wilfried
 http://www.mestdagh.biz

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

 


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be