Well, here I am again - replying to my own message:
> Is anyone having trouble with TB hanging on logging onto the
> SMTP-server? (Not TB per se but the *task* in CC.) I had the
> problem with TB 3.99.29 - the problem continues with 4.00.24.
>
> The SMTP-server TB connects to is installed on the very PC
> that TB is on - that installation has not been tampered with
> for over a year now - the problem with TB has been there for
> some few months.
>
> TB says: "Logging on to the server" - if I am lucky, TB will
> not get stuck with that task. But quite so often the task is
> just forever waiting (for days if you're not restarting TB).
> TB has apparently NO Time Out protection that aborts and
> possibly retries from start. When it gets stuck it just says
> "Logging on to the server" - and that's it.
>
> Any clues?
>
> Thanks!
I have investigated a bit more - and have found the reason
to the problem - unfortunately, I haven't found a fix...or
...I have a fix, but it is no way a nice one...anyway:
(I will be referring to
TB: TheBat - email client
MEP: Mail Express Professional - SMTP-server
CC: TB's Connection Centre)
NOTE: TB and MEP are resident on the same machine - hence,
the times should be corresponding very well UNLESS one of the
applications has its time completely freaked up. Which we
cannot assume, really...
Failing (stuck) message 1:
At time 12:43:21 the message had been stuck for 04:05:00.
So TB attempted access at 08:38:21.
Failing (stuck) message 2:
At time 12:42:40 the message had been stuck for 04:00:00.
So TB attempted access at 08:42:40.
Time elapse is courtesy of TB's own CC.
Let's look up the "Received from email client" log from MEP:
20080712 08:38:23 0 New request from 192.168.0.95
20080712 08:38:23 0 New request from 192.168.0.1
20080712 08:38:23 0 [LocalUser1][Use CRAM-MD5 Authentication.
20080712 08:38:23 0 Authenticated - LocalUser1
20080712 08:38:23 0 [LocalUser2][Use CRAM-MD5 Authentication.
20080712 08:38:23 0 Authenticated - LocalUser2
20080712 08:38:23 0 [LocalUser2]Mail From: [EMAIL PROTECTED]
20080712 08:38:23 0 [LocalUser2]RCPT TO: [EMAIL PROTECTED]
20080712 08:38:23 0 [LocalUser2]RCPT TO: [EMAIL PROTECTED]
20080712 08:38:23 0 [LocalUser2]Email Received. [Message-ID: _
<[EMAIL PROTECTED]>]
20080712 08:38:23 0 Connection is close.
20080712 08:38:42 0 Connection is close.
20080712 08:42:41 0 New request from 192.168.0.95
20080712 08:42:41 0 [LocalUser1][Use CRAM-MD5 Authentication.
20080712 08:42:41 0 Authenticated - LocalUser1
20080712 08:43:00 0 Connection is close.
20080712 08:43:19 0 Connection is close.
Apparently, something is happening between the mail client and
the server. Then I looked up TB's own log (account.log) - and
found something very interesting at the times 08:38:21 and
08:42:40:
!12.07.2008, 08:38:21: ANTIVIRUS - The anti-virus has reported _
an error, the object cannot be checked _
for viruses
!12.07.2008, 08:42:40: ANTIVIRUS - The anti-virus has reported _
an error, the object cannot be checked _
for viruses
The Anti Virus that is running on the machine is AVG 8.0.138
(updated on a daily basis). And it strucks me...the problem
started happening after AVG was installed. So...
It is already fair to say the email server is innocent - the
installation hasn't been tampered with for a long time - and it
is running properly. However, one can also conclude the problem
to be in between TB and AVG.
I was actually surprised AVG was working on outgoing messages
as I have disabled this capability. Wondering if there was
something I had been doing wrongly I checked the programs
settings - and yes, it was disabled. Or was it? From the AVG
Overview hovering E-Mail it says "Active". All well. But:
Looking at the "Description of selected component" it says
"E-mail Scanner scans incoming and outgoing e-mail" and "E-mail
Scanner is active". One has to wonder if that line "scans
incoming and outgoing e-mail" is descriptive or if it is showing
some Status for the component, as well. Clicking on the component
brings up the dialog box for said component. From there it is
revealed that, yes, "Scan outgoing messages" is unchecked
(disabled). So why is AVG interfering? It is configured to
IGNORE checking outgoing mail, yet it seemingly does check these
messages (and fail on some occasions creating stuck messages with
TB).
!12.07.2008, 08:38:21: ANTIVIRUS - The anti-virus has reported _
an error, the object cannot be checked _
for viruses
!12.07.2008, 08:42:40: ANTIVIRUS - The anti-virus has reported _
an error, the object cannot be checked _
for viruses
Apparently, TB indeed receives a response from AVG or else TB
wouldn't put these two lines in the log, right. So one could
accuse AVG to be causing the bug...or isn't it so that it is TB
that simply doesn't know how to act on such error messages? In
any case (excuse me for yelling): TB OUGHT TO HAVE A TIME OUT
PROTECTION FOR OUTGOING MESSAGES!
FYI: restarting TB resulted in the two held messages to be sent
just finr:
<12.07.2008, 14:45:36: SEND - message to [EMAIL PROTECTED] and _
others sent (4858 bytes)
<12.07.2008, 14:45:36: SEND - message to [EMAIL PROTECTED] and _
others sent (3079 bytes)
Exactly why AVG couldn't check two messages in plain text is up
to Grisoft to investigate. But in TB's case, Ritlabs ought to
invent a *workaround* for the time being - a workaround that
should prevent similar problems in the future:
Outgoing messages (tasks) to have a Time Out Protection.
Oh, btw... ASAP!
Thanks! (Let me know when the next beta or RC is out fixing
this problem, please!)
--
...listen2reason... - Musaic.Net <[EMAIL PROTECTED]>
________________________________________________
Current version is 4.0.24.0 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html