PowerProtect smtp_send.py에서 다음 오류가 생성됩니다. 'NoneType' 객체에 'encode' 속성이 없습니다.
Summary: PowerProtect Data Manager는 환경을 보호하는 데 사용되며 이메일 알림을 수신하도록 "Support > Email Setup"을 구성하는 중입니다.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
이메일 설정 테스트 이메일이 SMTP(Simple Mail Transfer Protocol) 세부 정보의 유효성을 검사한다는 것을 나타내는 데 실패합니다.
Error 104: Sending the test email failed. Socket error : mailserver.mydomain.com Verify the SMTP details and try again.
PowerProtect Data Manager에는 /usr/local/brs/bin/smtp_send.py SMTP 관련 문제를 해결하는 데 도움이 되는 스크립트입니다. 스크립트가 실행되지 않고 다음 정보가 생성됩니다.
admin@my-ppdm:~> /usr/local/brs/bin/smtp_send.py -HOST mailserver.mydomain.com -FROM test_email_address@dell.com -PORT 25 -ARGS True -S "PowerProtect Data Manager test email" -C plain -R test_email_address@dell.com
Traceback (most recent call last):
File "/usr/local/brs/bin/smtp_send.py", line 338, in <module>
main()
File "/usr/local/brs/bin/smtp_send.py", line 308, in main
outer.attach(MIMEText(args.body, args.content_type))
File "/usr/lib64/python3.4/email/mime/text.py", line 33, in {}init{}
_text.encode('us-ascii')
AttributeError: 'NoneType' object has no attribute 'encode' Cause
이 smtp_send.py help는 모든 명령이 선택 사항이지만 대부분 필수임을 보여 줍니다.
admin@my-ppdm:~> /usr/local/brs/bin/smtp_send.py -h
usage: smtp_send.py [-h] [-HOST MAILSERVER] [-PORT PORT] [-USER USERNAME]
[-PASS PASSWORD] [-FROM MAILFROM] [-ARGS USEARGS]
[-R RECIPIENTS [RECIPIENTS ...]] [-S SUBJECT]
[-C CONTENT_TYPE]
[-T {MAIL_BODY_AS_ARGUMENT,MAIL_BODY_AS_ATTACHMENT,MAIL_BODY_FROM_FILE}]
[-p TIMEOUT] [--hide] [-F FILENAME | -B BODY]
optional arguments:
-h, --help show this help message and exit
-HOST MAILSERVER Mail server
-PORT PORT Mail port
-USER USERNAME Mail username
-PASS PASSWORD Mail password
-FROM MAILFROM Mail from
-ARGS USEARGS Use args
-R RECIPIENTS [RECIPIENTS ...]
Mail recipients
-S SUBJECT Mail subject
-C CONTENT_TYPE Content Type
-T {MAIL_BODY_AS_ARGUMENT,MAIL_BODY_AS_ATTACHMENT,MAIL_BODY_FROM_FILE}
Message type
-p TIMEOUT Timeout in minutes
--hide hide to field from recipients
-F FILENAME, --Files FILENAME
File to be attached
-B BODY, --Body BODY Message bodyResolution
참조된 모든 옵션은 smtp_send.py 스크립트에 의존하는 대신 "help" 명령 출력. 구문 및 출력 예:
admin@my-ppdm:~> /usr/local/brs/bin/smtp_send.py -HOST mailserver.mydomain.com -FROM test_email_address@dell.com -PORT 25 -ARGS True -T MAIL_BODY_AS_ARGUMENT -S "PowerProtect Data Manager test email" -B "This is a test email from a PowerProtect Data Manager appliance" -C plain -R test_email_address@dell.com
2023-11-08 18:05:10.150515 INFO : Sending email with subject : PowerProtect Data Manager test email
2023-11-08 18:05:10.866943 INFO : sending mail
2023-11-08 18:05:11.071116 INFO : result: {}
admin@my-ppdm:~>Additional Information
필수 인수:
-HOST MAILSERVER Mail server
-FROM MAILFROM Mail from
-ARGS USEARGS Use args
-R RECIPIENTS [RECIPIENTS ...]
Mail recipients
-S SUBJECT Mail subject
-C CONTENT_TYPE Content Type
-T {MAIL_BODY_AS_ARGUMENT,MAIL_BODY_AS_ATTACHMENT,MAIL_BODY_FROM_FILE}
Message type
-B BODY, --Body BODY Message body선택적 인수:
-h, --help show this help message and exit
-PORT PORT Mail port
-USER USERNAME Mail username
-PASS PASSWORD Mail password
-p TIMEOUT Timeout in minutes
--hide hide to field from recipients
-F FILENAME, --Files FILENAME
File to be attachedArticle Properties
Article Number: 000219362
Article Type: Solution
Last Modified: 03 Dec 2025
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.