を取得するには、解決策を見つけました。私はping smtp.office365.com
を使用して、DNS名としてoutlook-emeasouth2.office365.com
を返しました。私の完全なoffice365電子メールアドレスとパスワードでこのホストを使用!
設定
EMAIL_HOST = 'outlook-namnorth.office365.com'
EMAIL_HOST_USER = '[email protected]******.com'
EMAIL_HOST_PASSWORD = '********'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
dig smtp.office365.com
Iの位置に応じて推測、ホストの束を返します。
; <<>> DiG 9.9.2-P1 <<>> smtp.office365.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12153
;; flags: qr rd ra; QUERY: 1, ANSWER: 14, AUTHORITY: 7, ADDITIONAL: 12
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;smtp.office365.com. IN A
;; ANSWER SECTION:
smtp.office365.com. 269 IN CNAME smtp.outlook.office365.com.
smtp.outlook.office365.com. 269 IN CNAME outlook.office365.com.
outlook.office365.com. 294 IN CNAME outlook.ha.office365.com.
outlook.ha.office365.com. 3 IN CNAME outlook- emeasouth2.office365.com.
outlook-emeasouth2.office365.com. 273 IN A 40.101.7.194
outlook-emeasouth2.office365.com. 273 IN A 40.101.44.138
outlook-emeasouth2.office365.com. 273 IN A 40.101.6.90
outlook-emeasouth2.office365.com. 273 IN A 40.101.55.210
outlook-emeasouth2.office365.com. 273 IN A 40.101.29.114
outlook-emeasouth2.office365.com. 273 IN A 40.101.5.130
outlook-emeasouth2.office365.com. 273 IN A 40.101.4.2
outlook-emeasouth2.office365.com. 273 IN A 40.96.33.178
outlook-emeasouth2.office365.com. 273 IN A 132.245.55.178
outlook-emeasouth2.office365.com. 273 IN A 40.101.54.114