Hmail's pop3connector stops fetching single external mails

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
prisma
Senior user
Senior user
Posts: 309
Joined: 2010-07-09 13:16

Hmail's pop3connector stops fetching single external mails

Post by prisma » 2011-10-14 12:39

Hello,

we're using hms 5.3.2 with SpamAssasin on the same machine.
Following appeared several times and randomly:

hMailServer stopped fetching SOME external mails from one single account via POP3. But he stopped not generally fetching. Half of the messages of this single account were fetched and other accounts were not affected. This appears randomly. Another time all accounts were affected, sometimes only some accounts are affected. Sometimes the pop3connector was generally dead, sometimes some external mails came through. Internal delivery was never affected.

So... first my general question without logfile, without all:

Is there a known bug in the pop3connector?

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Hmail's pop3connector stops fetching single external mai

Post by ^DooM^ » 2011-10-14 12:43

No known confirmed bugs however someone mentioned issues with large headers which has yet to be investigated fully.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

prisma
Senior user
Senior user
Posts: 309
Joined: 2010-07-09 13:16

Re: Hmail's pop3connector stops fetching single external mai

Post by prisma » 2011-10-14 13:11

^DooM^ wrote:someone mentioned issues with large headers which has yet to be investigated fully.
Yeah, I remember to have read something like this in the forum.... or the issue tracker?! Before I switch on debug logging which makes my server busy it would be nice to be able to examine the description of the known issues more closely. Do you have a link? I haven't found anything...

prisma
Senior user
Senior user
Posts: 309
Joined: 2010-07-09 13:16

Re: Hmail's pop3connector stops fetching single external mai

Post by prisma » 2011-10-18 15:15

Thanks Doom for your logfile analyser !! Great, very helpful:

This time it concerned only one account. This is the last fetch the server made for this account:

Code: Select all

"POP3D" 2140 5536 "2011-10-14 15:17:50.026" "212.227.15.178" "RECEIVED: +OK POP server ready H mibap4"
"POP3D" 2140 5536 "2011-10-14 15:17:50.026" "212.227.15.178" "SENT: USER x@x.y"
"POP3D" 2100 5536 "2011-10-14 15:17:50.042" "212.227.15.178" "RECEIVED: +OK password required for user "x@x.y""
"POP3D" 2100 5536 "2011-10-14 15:17:50.042" "212.227.15.178" "SENT: ***"
"POP3D" 2108 5536 "2011-10-14 15:17:50.057" "212.227.15.178" "RECEIVED: +OK mailbox "x@x.y" has 0 messages (0 octets) H mibap4"
"POP3D" 2108 5536 "2011-10-14 15:17:50.057" "212.227.15.178" "SENT: UIDL"
"POP3D" 2112 5536 "2011-10-14 15:17:50.073" "212.227.15.178" "RECEIVED: +OK[nl]."
"POP3D" 2112 5536 "2011-10-14 15:17:50.089" "212.227.15.178" "SENT: QUIT"
"POP3D" 2112 5536 "2011-10-14 15:17:50.104" "212.227.15.178" "RECEIVED: +OK POP server signing off"
After this hmailserver continued external fetching for every other internal account EXCEPT the account shown above.
What does this log show? Nothing! Everything seems to be ok until this point...

What to do? Activate debug logging and hoping the bug appears again? Debug logging makes my server busy, no, I don't want to...
Is it better to activate "keep files open" to improve performance?

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Hmail's pop3connector stops fetching single external mai

Post by ^DooM^ » 2011-10-18 15:25

If your server is busy, definitely leave files open however I am not sure logs will tell us anything. We need the stuck email so we can analyze it to see if it matches the long header issue.

Do you have a webmail client you can login to the external account with to grab the offending email?

NP on the analyzer :)
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

prisma
Senior user
Senior user
Posts: 309
Joined: 2010-07-09 13:16

Re: Hmail's pop3connector stops fetching single external mai

Post by prisma » 2011-10-18 17:32

Good idea regarding the external webmailer. Yes, I have access. I'll definitely try this the next time and analyse the email.

But there're some things that make me believe the header problem isn't the problem:

1. The last successful attempt to fetch external mail had the result of 0 messages. After this no further attempts were made. Before this attempt the result was also 0. This means there was no email with a long header which could cause this problem.
2. After the user recognized that he wasn't able to receive external mail, I did a simple "net stop/start hmailserver" and the messages were all fetched. If it had to do with the header of an email catching this mail wouldn't furthermore be possible, would it?

It seems to be more like a dead timer thread or a wrong read or unread property for this account...

Or do you know from experience that it nevertheless could have to do with the header problem?

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Hmail's pop3connector stops fetching single external mai

Post by ^DooM^ » 2011-10-18 17:34

I don't know for sure no. Do you have the leave messages on server option selected?
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

prisma
Senior user
Senior user
Posts: 309
Joined: 2010-07-09 13:16

Re: Hmail's pop3connector stops fetching single external mai

Post by prisma » 2011-10-20 12:27

No, there's no "leave messages on server" option selected. Seems to stop fetching without reason....

hmmm... without reason... I could imagine a reason. The day the problem appeared I now know for sure that there have been connectivity problems to the internet. Possibly the fetching thread for this account got stuck because of a lost IP connection. A lost connection can happen always, so this shouldn't lead to a misbehaviour... but...

Within this context: What's the best log to activate? Debug logging or application?

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Hmail's pop3connector stops fetching single external mai

Post by ^DooM^ » 2011-10-20 12:42

Depends how busy your mailserver is. I would suggest application for the moment. If it happens again, check logs for last successful check and see if anything useful in there. If not, switch to debug. I know it's not ideal but it's not the sort of thing easy to replicate.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

prisma
Senior user
Senior user
Posts: 309
Joined: 2010-07-09 13:16

Re: Hmail's pop3connector stops fetching single external mai

Post by prisma » 2011-10-20 15:11

Checked the performance, is OK. Logfiles are zipped every night, so... debug logging would be OK... I hope I miss no information with debug logging. I assume debug logging is just more verbose than application?

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Hmail's pop3connector stops fetching single external mai

Post by ^DooM^ » 2011-10-20 15:12

Yes, it's mainly helpful for developing but can be helpful in fault finding too
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

Post Reply