issues@javamail.java.net

Re: Mailserver reports two login/logouts

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Wed, 14 Oct 2009 21:08:55 -0700

Frank Schruefer wrote:
> Hy,

Hi Frank. I honestly have no idea what the purpose of the "issues"
mailing list is for Kenai projects. These questions are probably
better sent to the "users" mailing list, or to one of the JavaMail
forums.

> Im checking mail with javamail 1.4.2 on a pop3 mailserver.
> The mailserver logs say that two logins/logouts are made:
>
> Oct 14 17:02:32 sfmail01 pop3d: Connection, ip=[::ffff:91.66.207.201]
> Oct 14 17:02:32 sfmail01 pop3d: LOGIN, user=webmail.demo_at_siteforum.com, ip=[::ffff:91.66.207.201]
> Oct 14 17:02:32 sfmail01 pop3d: LOGOUT, user=webmail.demo_at_siteforum.com, ip=[::ffff:91.66.207.201], top=0, retr=0, rcvd=18, sent=49, time=0
> Oct 14 17:02:32 sfmail01 pop3d: Connection, ip=[::ffff:91.66.207.201]
> Oct 14 17:02:32 sfmail01 pop3d: LOGIN, user=webmail.demo_at_siteforum.com, ip=[::ffff:91.66.207.201]
> Oct 14 17:02:32 sfmail01 pop3d: LOGOUT, user=webmail.demo_at_siteforum.com, ip=[::ffff:91.66.207.201], top=0, retr=0, rcvd=6, sent=30, time=0
>
>
> while the connectionlistener only reports two logins/logouts (Printed the Events to System.err):
>
> javax.mail.event.ConnectionEvent[source=pop3://helpdesk.demo%40siteforum.com_at_mail.siteforum.com]: opened.
> javax.mail.event.ConnectionEvent[source=pop3://helpdesk.demo%40siteforum.com_at_mail.siteforum.com]: closed.
>
>
> Any idea why there's a second login/logout happening or how I can debug this further?

Did you see the debugging tips in the JavaMail FAQ?

> If I'm using another mailclient the server reports one login/logout as expected,
> So it shouldn't be a problem on the mailserver side.

What is your JavaMail code doing exactly? What JavaMail methods are you
calling?