close

이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.

windows/exchange

EXCHANGE 2016/2019 POP3 / IMAP 연결 인증서 없이 -ERR Command is not valid in this state.

mysop 2022. 6. 15. 17:04
728x90
반응형

최신 익스체인지 서버에서

POP3와 IMAP을 살려보려고 하니

일단 꺼져있는 서비스를 올리라고 한다.

 

https://docs.microsoft.com/ko-kr/exchange/clients/pop3-and-imap4/configure-pop3?view=exchserver-2019 

 

모든 서버에서 POP3를 사용하도록 Exchange 구성

요약: POP3 클라이언트의 액세스를 위해 Exchange 서버 2016 또는 2019에서 POP3를 사용하도록 설정하고 구성하는 방법을 제공합니다.

docs.microsoft.com

1. 관리도구 -> 서비스 에서 직접 시작하고 자동으로 설정한다

 

2. POP서비스를 등록을 해준다

Set-PopSettings -ExternalConnectionSettings "mail.contoso.com:995:SSL","mail.contoso.com:110:TLS" -X509CertificateName mail.contoso.com

위 링크에 나온 메뉴얼은 대충 이런식이다

 

Get-PopSettings | Format-List *ConnectionSettings,*Bindings,X509CertificateName

이렇게 입력하면 등록여부도 확인 할수 있다

 

3. POP서비스를 재시작해준다

 

여기까지가 일반적인 프로세서인데

옛날 방식으로 110포트 로그인을 하려고 하면

 

-ERR Command is not valid in this state.

위 에러가 자꾸 반긴다.

 

원인은 옛날 레거시 로그인도 가능하게 서버 설정을 올려줘야 한다

 

 

Set-PopSettings -LoginType PlainTextLogin

 

이렇게 설정하면 바로 접속 된다.

서비스 재시작 안해도 된다.

 

IMAP도 같은 방법이다

 

Set-ImapSettings -LoginType PlainTextLogin

 

POP3 /IMAP4 둘다 정상 연결을 확인했다

 

출처 : https://techienotes.blog/2011/05/19/pop3-error-err-command-is-not-valid-in-this-state-when-connecting-to-exchange-2010/

 

POP3 Error: “ERR Command is not valid in this state” when connecting to Exchange 2010

In order to fix the problem, issue the following command at the Exchange shell, which allows Exchange POP to use plain text credentials: Set-PopSettings -LoginType PlainTextLogin Then restart the P…

techienotes.blog

 

728x90
반응형