KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Issue with IMAP on New Email Test
Goto page 1, 2  Next
 
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports
View previous topic :: View next topic  
Author Message
eddymicro



Joined: 13 Nov 2002
Posts: 79

PostPosted: Sun Nov 06, 2011 7:04 am    Post subject: Issue with IMAP on New Email Test Reply with quote

Alex,

I am working on the new Email test. I am able to get it to work with POP, but not with IMAP. First I tested that login for both Pop and Imap are Successful, both login correctly and I have the log data from the mail server to prove this.

Then I did the following:

1) Make a sample test put one message in InBox
2) Run test using POP; check for subject only (expression) and Remove email after test
3) Test correctly reports "BAD" and deletes message
4) Add another identical message back to InBox
5) Switch test to IMAP
6) Test reports "OK", but I can see that it does not seem to be reading the mailbox contents

Using the "Test" function of the test properties (Display subject), I always get "Normal[]" when I use IMAP. But with POP I see the contents as I should.

For IMAP I have InBox in the Mailbox Field, is this correct, or does IMAP require a different syntax such as \InBox or .Inbox etc...

We are using ALT-N MDaemon as the mail server.

Regards
Ed Schwartz
Back to top
View user's profile Send private message
eddymicro



Joined: 13 Nov 2002
Posts: 79

PostPosted: Sun Nov 06, 2011 7:15 am    Post subject: Issue with IMAP on New Email Test Reply with quote

Alex,

Also in the quick log I see another problem, If I Display "Test time" I see the reply in the quick log, but if I Display "Subject" I do not see anything in the quick log.

Also it seems to remove the email after the test, but not consistently. Sometimes it removes it, other times it does not.

I realize I could be doing something wrong, but I am running these tests by first deleting all contents of the inbox and then each time adding one new email to the inbox.

Ed Schwartz
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 11782
Location: USA

PostPosted: Mon Nov 07, 2011 6:02 pm    Post subject: Reply with quote

In some cases HostMonitor can use Normal status for E-Mail test.
Is this correct result in your case or not, we don't know because we need more information.

Could you please send test settings to our e-mail address? Also please send e-mail that you are using for testing.
If you are using private mail server, can you provide access to some mailbox on your server?

Regards
Alex
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 11782
Location: USA

PostPosted: Thu Nov 10, 2011 4:20 pm    Post subject: Reply with quote

Thank you for additional information. As we see HostMonitor works just fine - it detects and removes e-mail everytime test is performed.

However there are a lot of filters set on your mail server.
E.g. e-mails with "- DiskSpace" in subject line automatically moved to SG_DiskSpace folder.
If you want to check such filtered e-mails, you should use EMail test with IMAP protocol and specify "Inbox/SG_DiskSpace" mailbox instead of "Inbox".

Regards
Alex
Back to top
View user's profile Send private message Send e-mail Visit poster's website
eddymicro



Joined: 13 Nov 2002
Posts: 79

PostPosted: Tue Mar 12, 2013 8:53 am    Post subject: Issue with IMAP on New Email Test Reply with quote

Alex,

It's over a year later and I still cannot get this test to work! I tried using our own mail server and the I switched to using Gmail's mail server but no matter what I use to set the test bad, it never detects a failure. It authenticates fine on both IMAP and POP. So I am having the same issue as I posted in November 2011. The test email has a subject of:
Information | Event occured on: SQLServerNode01

I have tried looking at one word such as ('Information') or the whole string. It never works. I have tried expression and string. I have tried have the test fail based on recipient, sender and subject with no success.

Maybe you can send me a sample test that I could import and use with IMAP or POP from Gmail. Or give me another idea of what might be wrong. It never deleted the email either when I turn that function on. But I can see that it reads the mailbox when looking at the logs on our mail server.
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2833

PostPosted: Tue Mar 12, 2013 9:21 am    Post subject: Reply with quote

Sample test settings for GMail IMAP server.
Just replace your_username and your_password.
Import this test, specify/change username and password, send e-mail with subject like: Information | Event occured on: SQLServerNode01
Refresh the test. EMail test should detect email and show Subject as Reply.

Code:
;-----------------------------------------------------------------------------
Method      = EMail
;--- Common properties ---
;DestFolder = Root\HM\
Title       = Mail IMAP test
Comment     =
RelatedURL  =
ScheduleMode= Regular
Schedule    =
Interval    = 3610
Alerts      = Do nothing
ReverseAlert= No
UnknownIsBad= Yes
WarningIsBad= Yes
TuneupReply = No
TuneReplyExp= %MAILFROM%
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
;--- Test specific properties ---
Protocol    = IMAP
Host        = imap.gmail.com
Port        = 993
SSLMode     = Implicit
Timeout     = 0
Mailbox     = INBOX
Username    = your_username@gmail.com
Password    = your_password
AlertMode   = AllEvents
TestOkMode  = IfNoBadEvent
DisplayMode = Subject
RemoveMail  = No
BadFilter   = 1
CheckFromAddr=No
CheckToAddr = No
CheckSubject= Yes
CheckBody   = No
CheckModeSubj = string
ExprSubject = Information
WholeWordsSubj=No
;-----------------------------------------------------------------------------
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 11782
Location: USA

PostPosted: Tue Mar 12, 2013 10:34 am    Post subject: Reply with quote

We found some IMAP servers return timestamp using invalid format (not according to RFC 822 as expected by HostMonitor).
We implemented simple workaraound, probably it will help in your case as well.
I think new version will be available next week.

Regards
Alex
Back to top
View user's profile Send private message Send e-mail Visit poster's website
eddymicro



Joined: 13 Nov 2002
Posts: 79

PostPosted: Thu Mar 14, 2013 10:59 am    Post subject: Reply with quote

Alex,

I imported your test and corrected the login information, Your test button returns a response of OK when requesting the subject (not the actual subject) and returns the time when choosing test time.

But the test still does not work, it does not work for POP either. So I will wait for your updated version. Your test that I imported was exactly the same as what I have been trying.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 11782
Location: USA

PostPosted: Thu Mar 14, 2013 11:16 am    Post subject: Reply with quote

Quote:
But the test still does not work, it does not work for POP either.

May we have access to your mailbox for testing?

Regards
Alex
Back to top
View user's profile Send private message Send e-mail Visit poster's website
eddymicro



Joined: 13 Nov 2002
Posts: 79

PostPosted: Thu Mar 14, 2013 11:51 am    Post subject: Reply with quote

I have sent the requested information via you email
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 11782
Location: USA

PostPosted: Thu Mar 14, 2013 2:14 pm    Post subject: Reply with quote

gmail does not allow connection to your mailbox but we have gmail accounts as well. Setup several tests using 2 accounts plus POP3 and IMAP modes, will test it overnight...

BTW You mail server does not accept our mails
----------
Remote host said: 554 Sorry, message looks like SPAM to me
----------

Regards
Alex
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 11782
Location: USA

PostPosted: Mon Mar 18, 2013 8:31 am    Post subject: Reply with quote

We think we fixed problem but we still cannot send you e-mail because of your spam filter
----------
Remote host said: 554 Sorry, message looks like SPAM to me
----------

Regards
Alex
Back to top
View user's profile Send private message Send e-mail Visit poster's website
eddymicro



Joined: 13 Nov 2002
Posts: 79

PostPosted: Mon Mar 18, 2013 10:25 am    Post subject: Reply with quote

Alex,

Thanks, How do I test the new version?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 11782
Location: USA

PostPosted: Mon Mar 18, 2013 10:38 am    Post subject: Reply with quote

It will be released this week

Regards
Alex
Back to top
View user's profile Send private message Send e-mail Visit poster's website
eddymicro



Joined: 13 Nov 2002
Posts: 79

PostPosted: Thu Mar 21, 2013 11:31 am    Post subject: Reply with quote

Alex,

The test works now thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index