Mail fetching_ Command is not valid in this state

Mail fetching_ Command is not valid in this state


Unable to fetch email when encrypted mode is enabled on POP in the mail server.

Error trace in logs:

javax.mail.AuthenticationFailedException: Command is not valid in this state.


Reset the password format on the exchange server to the Normal format. This can be done by running a query on the exchange server shell.

Follow the steps below to configure the POP service to use Plain Text Login:

1. Open Exchange Management Shell from Start -> Programs -> Microsoft Exchange 2007.

2. Enter the following In the shell,

set-POPsettings –logintype plaintextlogin

3. Press Enter.

4. From the Services panel restart the Microsoft Exchange Information Store service.

5. Restart SDP MSP application service and login.

6. Re-enter the password under Admin->mail server settings->Incoming and save. 

Now click start fetching, it should work fine.

                    New to ADSelfService Plus?

                      • Related Articles

                      • Mail fetching issue_Remote host closed connection during handshake

                        GUI Error Trace:  FAILURE :E-mail settings saved successfully. But error occurred while trying to check connection with mail server - Problem connecting to mailbox. LOG TRACE: [16:33:06:197]|[11-09-2018]|[SYSERR]|[INFO]|[120]: ...
                      • Mail fetching failed - PKIX path building failed.

                        Cause: If the SSL Certificate in mail server is a self signed certificate then it is not imported in the ServiceDeskPlus-MSP java environment while using the POPS/IMAPS protocol. Error Trace in logs: ...
                      • Mail fetching - deleted flag issue

                        This message will be thrown, when you have provided a shared mailbox. The concept here is, SDP MSP reads the mail from the configured mailbox and adds it as a request. During the time, if some other application fetches the mail from the same mailbox ...
                      • How to stop Mail fetching before starting the application services ?

                        Use case: When you restore the data in your test environment or trying to migrate to a new server, once the restore is done, the application if started will have emails being fetched in the new server/Test server which you would not wish to. Hence ...
                      • Monitor Mail Fetching schedule

                         We have a workaround for checking the status of mail fetching (start or stopped). However, we do not have an option to start or stop fetching remotely.  We can integrate "Applications Manager" with SDP MSP and we can do regular monitoring (as per ...