Trac 메일 발송이 되지 않을 때 - SMTPAuthenticationError: (535, 'authorization failed (#5.7.0)')
Dev.Programming/TroubleShooting 2008/03/27 16:46
메일 호스팅을 옮기면서 Trac의 알림 메일이 보내지지 않는 상황이 발생했다.
일단 log 파일을 열어 상황을 보니...
라는 에러 메시지가 보였다.
파이썬을 전혀 모르기 때문에 구글링을 시작했고,
라는 페이지에서 해답을 찾아 해결할 수 있었다.
아래는 페이지 내용...
ps. smtplib.py는 PYTHON_설치경로\Lib 에 있고, py 파일 수정 후 pyc 파일을 삭제하면 필요시에 자동 컴파일되어 pyc 파일이 생성된다.
일단 log 파일을 열어 상황을 보니...
SMTPAuthenticationError: (535, 'authorization failed (#5.7.0)')
라는 에러 메시지가 보였다.
파이썬을 전혀 모르기 때문에 구글링을 시작했고,
@ [Trac] How to fix an SMTP authentication issue
라는 페이지에서 해답을 찾아 해결할 수 있었다.
아래는 페이지 내용...
I'm posting this to help anyone who might have the same problem. I wasgetting this in the log whenever Trac tried to send an email: (535, 'authorization failed (#5.7.0)')
After searching around google regarding the python smtplib, I was able to fix the problem. In the smtplib.py python source file, I found the following line in the login method:
preferred_auths = [AUTH_CRAM_MD5, AUTH_PLAIN, AUTH_LOGIN]
I changed the line to use the AUTH_LOGIN method and now I can sendemails ok:
preferred_auths = [AUTH_LOGIN, AUTH_PLAIN]
I guess my smtp server (a very large commercial provider) doesn't like the CRAM_MD5 method. This is the only python app I have running on myserver, so I wasn't concerned with it affecting another app.
- Brian
ps. smtplib.py는 PYTHON_설치경로\Lib 에 있고, py 파일 수정 후 pyc 파일을 삭제하면 필요시에 자동 컴파일되어 pyc 파일이 생성된다.
'Dev.Programming > TroubleShooting' 카테고리의 다른 글
| DB 연결의 과부하를 막기 위해 CRecordSet 을 지양하자 (0) | 2008/06/13 |
|---|---|
| MS-SQL 에서 LIKE를 사용할 때 주의점 (0) | 2008/04/01 |
| Trac 메일 발송이 되지 않을 때 - SMTPAuthenticationError: (535, 'authorization failed (#5.7.0)') (0) | 2008/03/27 |
| ASP에서 정확한 쿼리인 경우에도 ORA-00907 오른쪽 괄호가 없다고 나온다면... (0) | 2007/11/01 |
| 오라클 인스턴트 클라이언트 ODBC 10.2 버전 문제가 많은 듯... (0) | 2007/10/26 |
| 아파치 + 서브버전 연동시에 권한 파일 작성 - 한글 디렉토리 쓰지 말 것 (0) | 2007/03/16 |


