3
回答
求大神!!!163邮箱发邮件,报553 Local user is not allowed
注册华为云得mate10,2.9折抢先购!>>>   

用 javamail + freemarker 发送HTML的demo邮件,企业邮可以发送,但是转到163就报出了个553。已开启smtp、授权码服务。

程序参数如下:

        String host = "220.181.14.154";
        String fromEmail = "15915845114@163.com";
        String password = "****";
        String nickname = "昵称163";

        prop.put("mail.smtp.host", this.host);
        prop.put("mail.smtp.auth", this.auth);
        prop.put("mail.smtp.user", this.fromEmail);
        prop.put("mail.smtp.password", this.password);
        prop.put("mail.transport.protocol", "smtp");
        prop.put("mail.smtp.starttls.enable", true);

邮件内容:

                                                 

                关于进一步改进计划方案

                                尊敬的领导:

                                        今天,我们去了九阳。

 

                                                ------

端口我没有设置,跑的时候先ping了那个ip,可以跑通。

报错内容:

com.sun.mail.smtp.SMTPSendFailedException: 553 Local user is not allowed,163 mx32,UsCowEA5v1ezmdNYet5KCg--.47619S3 1490262453
;
  nested exception is:
    com.sun.mail.smtp.SMTPSenderFailedException: 553 Local user is not allowed,163 mx32,UsCowEA5v1ezmdNYet5KCg--.47619S3 1490262453
    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2108)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1609)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1117)
    at javax.mail.Transport.send0(Transport.java:195)
    at javax.mail.Transport.send(Transport.java:124)
    at cn.itexplorer.mail.util.MailSender.SendEmail(MailSender.java:204)
    at cn.itexplorer.mail.demo.MailCtrl.index(MailCtrl.java:127)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.jfinal.aop.Invocation.invoke(Invocation.java:71)
    at com.jfinal.core.ActionHandler.handle(ActionHandler.java:74)
    at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:958)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517)

    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.sun.mail.smtp.SMTPSenderFailedException: 553 Local user is not allowed,163 mx32,UsCowEA5v1ezmdNYet5KCg--.47619S3 1490262453

    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1616)

    ... 30 more
 

<无标签>
举报
小开发-Bailey
发帖于11个月前 3回/531阅
顶部