2024年1月1日发(作者:)
E:studyMyEclipse8.6WorkPlacejavamailbin>java ry
打印出域:的Attributes对象中的信息
{txt=TXT: "v=spf1 include: -all", a=A: 12.130.132.30, ns
=NS: ., ., ., ., .
., soa=SOA: . . 2005042601 900 300
604800 300, mx=MX: 10 ., 10
., 10 ., 5 .}
_______________
打印只检索域:的MX记录的Attributes对象
{mx=MX: 10 ., 5 ., 10 fre
., 10 .}
_______________
逐一打印出Attributes对象中的各个属性
TXT: "v=spf1 include: -all"
A: 12.130.132.30
NS: ., ., ., ., .c
.
SOA: . . 2005042601 900 300 604800 300
MX: 10 ., 10 ., 10 freem
., 5 .
*********
直接检索ATTRIBUTES对象中的MX属性
MX: 10 ., 10 ., 10 freem
., 5 .
***********
获取MX属性的第一个值
从Mx属性中提取邮件服务器地址
0 .
E:studyMyEclipse8.6WorkPlacejavamailbin>
报错
DEBUG: setDebug: JavaMail version 1.4.5
DEBUG: getProvider() returning
er[TRANSPORT,smtp,ansport,Sun Microsystems, Inc]
*************
.
*************
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host ".", port
25, isSSL false
220 Anti-spam GT for Coremail System (163com[20111010])
DEBUG SMTP: connected to host ".", port: 25
EHLO
250-mail
250-PIPELINING
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-coremail
1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2Ur1TxUSUCa0xDrUUUUj
250 8BITMIME
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
DEBUG SMTP: Found extension "AUTH=LOGIN", arg "PLAIN"
DEBUG SMTP: Found extension "coremail", arg
"1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2Ur1TxUSUCa0xDrUUUUj"
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:
553 Requested action not taken: no smtp MX
only,mx17,Q8CowEB5YUa6UklQMOXtDw--.1031S2 1346982587
DEBUG SMTP: got response code 553, with response: 553 Requested action
not taken: no smtp MX only,mx17,Q8CowEB5YUa6UklQMOXtDw--.1031S2
1346982587
RSET
250 OK
DEBUG SMTP: MessagingException while sending
ndFailedException: 553 Requested action not
taken: no smtp MX only,mx17,Q8CowEB5YUa6UklQMOXtDw--.1031S2 1346982587
;
nested exception is:
nderFailedException: 553 Requested action
not taken: no smtp MX only,mx17,Q8CowEB5YUa6UklQMOXtDw--.1031S2
1346982587
at
endCommand(:2114)
at
at
at ssage(:57)
at (:38)
om(:1618)
ssage(:1119)
Caused by: nderFailedException: 553 Requested
action not taken: no smtp MX only,mx17,Q8CowEB5YUa6UklQMOXtDw--.1031S2
1346982587
at
... 3 more
om(:1625)
ndFailedException: 553 Requested action not
taken: no smtp MX only,mx17,Q8CowEB5YUa6UklQMOXtDw--.1031S2 1346982587
;
nested exception is:
nderFailedException: 553 Requested action
not taken: no smtp MX only,mx17,Q8CowEB5YUa6UklQMOXtDw--.1031S2
1346982587
at
endCommand(:2114)
at
at
at ssage(:57)
at (:38)
om(:1618)
ssage(:1119)
Caused by: nderFailedException: 553 Requested
action not taken: no smtp MX only,mx17,Q8CowEB5YUa6UklQMOXtDw--.1031S2
1346982587
at
... 3 more
om(:1625)
DEBUG: getProvider() returning
er[TRANSPORT,smtp,ansport,Sun Microsystems, Inc]
*************
.
*************
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host ".", port
25, isSSL false
220 Anti-spam GT for Coremail System (163com[20111010])
DEBUG SMTP: connected to host ".", port: 25
EHLO
250-mail
250-PIPELINING
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-coremail
1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrbhY33UCa0xDrUUUUj
250 8BITMIME
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
DEBUG SMTP: Found extension "AUTH=LOGIN", arg "PLAIN"
DEBUG SMTP: Found extension "coremail", arg
"1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrbhY33UCa0xDrUUUUj"
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:
553 Requested action not taken: no smtp MX
only,mx1,M8CowECp1EW7UklQZMaMBg--.1389S2 1346982587
DEBUG SMTP: got response code 553, with response: 553 Requested action
not taken: no smtp MX only,mx1,M8CowECp1EW7UklQZMaMBg--.1389S2
1346982587
RSET
250 OK
DEBUG SMTP: MessagingException while sending
ndFailedException: 553 Requested action not
taken: no smtp MX only,mx1,M8CowECp1EW7UklQZMaMBg--.1389S2 1346982587
;
nested exception is:
nderFailedException: 553 Requested action
not taken: no smtp MX only,mx1,M8CowECp1EW7UklQZMaMBg--.1389S2
1346982587
at
endCommand(:2114)
at
om(:1618)
at
at ssage(:57)
at (:38)
ssage(:1119)
Caused by: nderFailedException: 553 Requested
action not taken: no smtp MX only,mx1,M8CowECp1EW7UklQZMaMBg--.1389S2
1346982587
at
... 3 more
om(:1625)
ndFailedException: 553 Requested action not
taken: no smtp MX only,mx1,M8CowECp1EW7UklQZMaMBg--.1389S2 1346982587
;
nested exception is:
nderFailedException: 553 Requested action
not taken: no smtp MX only,mx1,M8CowECp1EW7UklQZMaMBg--.1389S2
1346982587
at
endCommand(:2114)
at
at
at ssage(:57)
at (:38)
om(:1618)
ssage(:1119)
Caused by: nderFailedException: 553 Requested
action not taken: no smtp MX only,mx1,M8CowECp1EW7UklQZMaMBg--.1389S2
1346982587
at
... 3 more
om(:1625)


发布评论