Dear OTRS development personnel,
We have experienced following error message in getting mail via
PostMasterPOP3.pl sometimes.
> :
> Message 19/26 ([EMAIL PROTECTED])
> Message 20/26 ([EMAIL PROTECTED])
> Reconnect Session after 20 messages...
> Connection to *********.co.jp closed.
>
> Message 1/26 ([EMAIL PROTECTED])
> Got no Email at /opt/otrs/Kernel/System/PostMaster.pm line 46.
> :
It occurs in reconnected PostMasterPOP3 fetchmail pass when there are more
than 20 messages in a mailbox, not every time but often.
By our troubleshooting, we find that it occurs due to the mail deletion time
delays in our mail server (MS-Exchange Server).
That is to say, OTRS executes Net::POP3->quit() method and instantly execute
Net::POP3->login(), but mails deletion takes some time in mail server so
reconnected login() method returns $NUM including delete marked mails. But
these mails will delete very soon in the mail server, so OTRS has the error
to try to get() nonexistent messages.
PostMasterPOP3.pl
---------------------------------------------------
225 $PopObject->quit();
226 print "Connection to $Host closed.\n\n";
227 # fetch again if still messages on the account
228 if ($Reconnect) {
229 FetchMail(%Param);
230 }
Wait code is effective to solve this problem
----------------------------------------------------
225 $PopObject->quit();
226 print "Connection to $Host closed.\n\n";
227 # fetch again if still messages on the account
228 if ($Reconnect) {
229 #####################################
230 # Modified by K.Kawaguchi 2007-04-18
231 sleep 1;
232 # End of Patch
233 #####################################
234 FetchMail(%Param);
235 }
I suppose that its better to define some option to define the wait time
above.
I am glad if this report helps you.
Kazuhiro Kawaguchi
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support or consulting for your OTRS system?
=> http://www.otrs.com/