POP3 collection timeout?

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

POP3 collection timeout?

Postby deftech » Aug 10 06 9:59 am

Hello you fantastic New Zealand programmers!

I'm curious to know how long POP3 collection attempts to collect mail before it timesout, and if this setting is user programmable?

I ask because our outside mail server is having problems with high cpu utilization. The utilization is causing exim (our mta software), to respond very slowly. When Wingate goes to check our mail server, pop3 collection will wait there and sometimes hang completely.

I know this is not the fault of Wingate, but our web server acting slow. Until we get our web server back in order, I would love to see Wingate maybe wait a bit longer for it to respond, is this possible with the settings available to me?

If not, thanks anyways. Hopefully these DDOS attacks on our server will end soon so things will go back to normal :))
I love Wingate, and it loves me!
deftech
 
Posts: 91
Joined: Mar 02 06 12:40 pm
Location: USA

Postby adrien » Aug 10 06 10:50 am

Hi

You're too kind!

POP3 collection uses the timeout settings of the SMTP server, so you can adjust it there, although it then also affects timeouts for SMTP reception. I should probably make it have its own timeout setting.

Also we recently found a problem with POP3 collection if there is a non-compliance in the POP3 server it is collecting from relating to the UIDL command. Some POP3 servers it seems parse message headers to get the message ID, which they use for the UIDL response. If something stops the parsing of the headers (i.e. incorrectly wrapped header before it), then such POP3 servers can return invalid UIDL responses to some particular messages. The biggest ISP in New Zealand suffers from this problem.

This causes the current version of WinGate to discontinue POP3 collection processing until it times out.

The sure way to check what is going on is to turn on debug logging in the SMTP server, and check the POP3 collection log files.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby deftech » Aug 29 06 6:43 am

I am still having problems with POP3 collection just hanging. I don't have any antivirus on it. Everything else works fine with Wingate.

I have checkd the pop3 collection logs, and see no errors. It just appears to be checking a user account, and then just stops...nothing..no error.

It seems to happen when our outside mail server hits high utilization. I lowered the timeout setting for pop3, but it doesn't seem to work. Whatever is causing POP3 to hang, it isn't timing out after 60 secs (what I currently have it set to).

I'm desperate to solve this problem. Thanks guys!
I love Wingate, and it loves me!
deftech
 
Posts: 91
Joined: Mar 02 06 12:40 pm
Location: USA

Postby adrien » Aug 29 06 11:46 pm

can you post a snippet from the logs in this case?

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby deftech » Aug 30 06 5:54 am

This is the end of pop3 collection log. Right now the activity window appears to be hung on many of my users pop3 accounts...but what is wierd is that the log is continuing to get written to, and it appears to be checking pop3 accounts that ARENT' listed as being hung.....does that make sense?
Last edited by deftech on Mar 18 07 2:35 pm, edited 1 time in total.
I love Wingate, and it loves me!
deftech
 
Posts: 91
Joined: Mar 02 06 12:40 pm
Location: USA

Postby adrien » Aug 30 06 1:10 pm

Hi

That log looks mostly normal. It shows a bunch of accounts that have no mail, and one that has 3 messages that get downloaded and deleted from the server.

The one odd thing is the lines

+OK 0 0
+OK Bye!

coming back from the server. like it is resending the response to the previous command. however, since this is in response to the QUIT command, and the connection is then being closed (get the Traffic log entry), it indicates it's not causing a problem.

Which of these accounts appear to be hung?

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby adrien » Aug 30 06 1:11 pm

Ah

did you mean that this is the end of the file, which only shows activity from sessions that aren't hung?

Can you look through the log file and find the bits relating to the activity on the sessions that are hung?

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

more investigations

Postby deftech » Sep 07 06 7:33 am

no
Last edited by deftech on Mar 18 07 2:36 pm, edited 1 time in total.
I love Wingate, and it loves me!
deftech
 
Posts: 91
Joined: Mar 02 06 12:40 pm
Location: USA

Postby deftech » Sep 07 06 7:58 am

woops I already told you the above. Here is a snippet of an account that is hung. at the end of the snippet is my account ricardo@rings-things.com.

That is the last time pop3 collection checked my account, but is continuing to check other accounts.
Last edited by deftech on Mar 18 07 2:36 pm, edited 1 time in total.
I love Wingate, and it loves me!
deftech
 
Posts: 91
Joined: Mar 02 06 12:40 pm
Location: USA

Postby deftech » Sep 07 06 12:03 pm

Would it cause a problem if I had 25 accounts checking pop3 every 5 minutes, and 1 account checking every 1 minute?

I had to restart the engine a bunch today...:(
I love Wingate, and it loves me!
deftech
 
Posts: 91
Joined: Mar 02 06 12:40 pm
Location: USA

Postby adrien » Sep 07 06 4:37 pm

Hi

It's weird that the pop3 server reports that 0 messages take 558 bytes

"You have 0 messages totaling 558 octets"

It clearly indicates from the response to the STAT command that the mailbox is empty, and then WinGate sends QUIT, and the session terminates. It does terminate correct? If need to make sure, turn on logging of session termination.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby deftech » Sep 08 06 6:32 am

Ugh, I think I am running around in circles, and may be wasting your time.

Our main mail server is getting denial of serviced so hard every day. We are starting to see that wingate works fine as long as our mail server is not under a heavy load.

So the only problem we may be seeing with wingate is that it isn't timing out or refreshing the activity screen. Is there a way to make wingate pop3 to just stop or time out or quit if it can't collect pop3 mail, so we don't have to stop/start the engine when we are having a problem? Like a 'reset pop3 collection' button.

I appreciate your respones Adrien..:) Sorry about all this. This DDOS attack is getting very tiresome, and we are under attack constantly. Just we think we are ok, we get hit hard again.
I love Wingate, and it loves me!
deftech
 
Posts: 91
Joined: Mar 02 06 12:40 pm
Location: USA

Postby adrien » Sep 08 06 9:45 pm

Hi

What are they trying to DOS? If it's a TCP service on that machine, can't you enable SYN protection?

It actually comes in the OS from Win2k onwards I think.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby adrien » Sep 08 06 9:52 pm

PS, POP3 collection uses the same timeouts that SMTP reception does - specified in the timeout setting of the SMTP server.

Are these timeouts enabled?

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby deftech » Sep 09 06 5:48 am

Our mail server at our ISP is what's getting ddos'd. EXIM to be specific. Our wingate machine is fine, it downloads mail from our webserver at our ISP.

We finally ended up changing our MX record to point to a barracuda spam/firewall appliance to filter the smtp connections, so our mail server doesn't get bogged down. It's working great so far. Wingate is doing well also.

SOrry for wasting your time on this :(
I love Wingate, and it loves me!
deftech
 
Posts: 91
Joined: Mar 02 06 12:40 pm
Location: USA

Postby adrien » Sep 10 06 6:29 pm

No worries, we're always interested in tracking down problems.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

problem solved

Postby deftech » Sep 13 06 5:51 am

Well, we solved the denial of service on exim, so our mail server at our ISP is running at a normal load, and Wingate pop3 collection hasn't hung once!

It has been 4 days and no problems! I hate spammers!!!!!!!!!
I love Wingate, and it loves me!
deftech
 
Posts: 91
Joined: Mar 02 06 12:40 pm
Location: USA


Return to WinGate

Who is online

Users browsing this forum: Bing [Bot] and 4 guests

cron