POP/IMAP tests not working

The forum for help and support with FreeNATS as well as any useful hints and tips
amedias
Posts: 19
Joined: Mon Jul 21, 2008 12:00 pm

POP/IMAP tests not working

Post by amedias » Mon Jul 21, 2008 12:08 pm

Hi there, I'm having some trouble getting the POP and IMAP tests to work.

I have setup a node (my pop/imap server) and it is respondingt o ping fine, set up TCP port open tests for port 110 etc. all working fine, but when I set up the POP/IMAP tests they never complete.

set up test as follows:

Test type: IMAP
Test Options:
Hostname: hostname of pop server
Username: my pop username
Password: my password
Protocol: pop3
Port: 110
SSL: NOT ticked
Custom Name: POP check
Test Enabled: ticked
Recorded: ticked
Simple Evaluation: ticked
Custom attempts: 0
Custom timeout: 0

and then saved settings, which then cleared to password field so looks like it worked.
The logs show no error, the test just never completes and get stuck, I have to manually kill it to continue.
I would have thought if I had details wrong like UN:PW etc. then it would at least fail and give an error..

any suggestions?

thank you
Matt

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: POP/IMAP tests not working

Post by dave » Mon Jul 21, 2008 12:22 pm

Hi,

Hmm... The only time I have come across the IMAP test just dying and taking out the whole test script was on a Windows box I was experimenting with.

What environment are you running? Are you using the VM or source install (if source, what's the host OS/version).

I'm wondering if perhaps you don't have the required PHP libraries for IMAP.

From the shell (as root) can you try running the tester.sh script against the node e.g.

Code: Select all

cd /opt/freenats/server/bin
tester.sh nodeid
And see if you get an error there perhaps?

Regards,

Dave.

amedias
Posts: 19
Joined: Mon Jul 21, 2008 12:00 pm

Re: POP/IMAP tests not working

Post by amedias » Mon Jul 21, 2008 12:30 pm

Will give that a go and let you know, I'm using the VM by the way, it was on 0.04.14b but I upgraded to .25b hoping that might fix it

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: POP/IMAP tests not working

Post by dave » Mon Jul 21, 2008 12:32 pm

Hmm... Well on the VM all should work fine as it's one of the few environments we have some control over!

Hopefully running the script may help.

You may also like to try doing

Code: Select all

tail /var/log/httpd/error_log
Immediately afterward and see what is in there.

Regards,

Dave.

amedias
Posts: 19
Joined: Mon Jul 21, 2008 12:00 pm

Re: POP/IMAP tests not working

Post by amedias » Mon Jul 21, 2008 12:35 pm

well tried running it manually and got following output

NodeID: my node IP
Ping test: Yes
Ping returned: 0.016
Ping Test: Passed
Doing Local Tests
Test: tcp (110)
Result: 1
Eval: 0
Recording Test
Test: imap (my hostname)

Theng get dumped back at the prompt, it's almost like its not actually doing the test...

amedias
Posts: 19
Joined: Mon Jul 21, 2008 12:00 pm

Re: POP/IMAP tests not working

Post by amedias » Mon Jul 21, 2008 12:36 pm

And even though I get chucked back to the prompt on the local console, in the webadmin it shows the session as 'Still Running'

amedias
Posts: 19
Joined: Mon Jul 21, 2008 12:00 pm

Re: POP/IMAP tests not working

Post by amedias » Mon Jul 21, 2008 12:40 pm

Nothing cropping up in the apache error_logs

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: POP/IMAP tests not working

Post by dave » Mon Jul 21, 2008 2:13 pm

Hi,

Hmm... Well if the test script dumps the "still running" flag would stay on - it's just a flag rather than any actual check of the script running.

IMAP not working and not displaying anything at all is really really weird.

Do you get anything in the /var/log/httpd/error_log ?

I'm afraid I'm out right now but when I get home later on I'll have a play with the code and see what I can find.

Regards,

Dave.

amedias
Posts: 19
Joined: Mon Jul 21, 2008 12:00 pm

Re: POP/IMAP tests not working

Post by amedias » Mon Jul 21, 2008 3:04 pm

nothing at all relating to this problem, the only entries in the appache error log are relating to lack of favicon about 6 hours ago

I've tried using POP, IMAP, secure, non-secure, my pop server, 3rd party pop servers and same thing happens on all of them :-(

thanks for looking into it!

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: POP/IMAP tests not working

Post by dave » Mon Jul 21, 2008 5:44 pm

Balls! I have found the problem. Double Balls!

Sorry but it appears the VM PHP doesn't have IMAP support included. TBH I'm surprised nobody mentioned this before but there you go.

IMAP early testers must have been running source installs on a fuller PHP environment.

Sorry.

Erm... I'll look into adding the module which I think is doable (I hope).

Sorry again.

I'll get back to you when I've looked at the options.

Regards,

Dave.

Post Reply