foxmail常见出错代码及退信分析

常见错误:

<小提示:建议您按Ctrl+F调出“查找”工具栏,输入您要查询的问题主关键词,方便快速查找到您的问题和解决方法。>

1、 服务器返回“535 Error: authentication failed”。
  SMTP身份验证出错了,需要在Foxmail【帐户属性】对话框的【邮件服务器】属性页中,选中【SMTP邮件服务器需要身份验证】,并在【POP3邮箱账号】和【密码】下填写正确的邮箱账号和密码。

2、 服务器返回“553 Error: authentication is required”。
  这是因为客户端软件没有使用ESMTP方式发送邮件,只要选中帐户属性中的【SMTP邮件服务器需要身份验证】选项即可。

3、 服务器返回“550: Invalid User”、“550:local user only”或者“551 delivery not allowed to non-local recipient”。
  这是由于服务器对发件人地址进行检查,对于发件人地址不是由本服务器提供的邮件,不予已发送。
  解决的办法是:打开Foxmail【帐户属 性】中对话框,在【个人信息】的【电子邮件地址】中填写SMTP服务器所属的邮箱系统提供的邮件地址。

4、 服务器返回“501 syntax.helo hostname”或者“501 Invalid domain name”。
  这时应该检查您的计算机名称是否含有中文或者非ASCII字符,由于某些SMTP服务器不允许。因此,需要把计算机名称改为只含有英文字母或ASCII字符。

错误代码:

Q:the server says:550 relaying mail to <> is not allowed
Q:The server says:550 <>... relaying denied
Q:the server says:550 5.7.1 relaying not permitted:

A:使用某些Smtp服务器时,限制了收件人的地址,只能换一个Smtp服务器。

Q:The server says:550 <>:local user only
Q:The server says:550 <>:Invalid User
Q:The server says:550 Invalid recipient

A:使用163.net,163.com,yeah.net和netease.com之类的Smtp服务器时,只能用自身的信箱发信,所以要在Foxmail的“帐户属性”中的“个人信息”里面填写正确的邮件地址。

Q:the server says:551 delivery not allowed to non-local recipient
Q:The server says:553 Relay restriction.
Q:The server says:553 From <>, message blocked.
Q:The server says:553 sorry,you are not allow to use this SMTP to relay your eami
Q:The server says:553 sorry, that domain isn't in my list of allowed rcpthosts


A:使用21cn.com,china.com,371.net,sina.com等大多数信箱的smtp服务器时,只能用自身的信箱发信,所以要在Foxmail的“帐户属性”中的“个人信息”里面填写正确的邮件地址。

Q:The server says:505 client was not authenticated
Q:The server says:553 authentication is required to send mail as <>


A:使用263.net和sohu.com的Smtp服务器时,不但要用自身的邮箱发信,而且要加入身份验证,所以即要在“个人信息”中填写正确邮箱地址,又要选中“SMTP服务器需要认证”。

Q:The server says:535 Error:authenticatin failed
Q:The server says:535 Authentication unsuccessful
Q:The server says:452 Insufficient system storage


A:在使用Esmtp认证的过程中出错,检查一下Esmtp设置,多试几次。

Q:The server says:553 <>...domain name required
Q:The server says:550 Unable to relay for ...


A:多出现在用Wingate代理服务器发送邮件时。虽然在Wingate中“POP3 邮箱帐号”要使用“用户名#POP3地址”的格式,但在“帐户属性”中的“个人信息”中还是要填写一般的格式。

Q:The server says:553 mailbox name not allowed
A:收件人邮箱地址不允许,需检查收件人地址是否正确。

Q:the server says:553 sorry, your envelop sender is in my badmailfrom list
A:服务器限制了收件人的地址,只能换一个smtp服务器发信。

Q:the server says:554 Transaction failed
Q:The server says:451 Requested action aborted,errno=28


A:传输失败,检查网络问题。

Q:the server says:503 error:needmail command
Q:The server says:503 need mail before RCPT.
Q:The server says:503 Bad sequence of commands


A:消息命令顺序出错,一般出现在其他错误之后,先检查之前出现的错误提示。

Q:The Server says:501 syntax.helo hostname
Q:The server says:501 Invalid domain name
Q:The server says:502 unimplemented command
Q:the server says:503 5.0.0 polite people say HELO first
Q:The server says:533 relay restriction
Q:The server says:544 <>:Recipient address rejected: Relay access denied


A:传输中的语法错误,原因不明。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是一个读取本地Foxmail导出邮件的实际案例代码: ```python import os import email import codecs def read_foxmail_eml(eml_path): """ 读取Foxmail导出的.eml文件 """ with open(eml_path, 'rb') as f: content = f.read() msg = email.message_from_bytes(content) subject = msg['Subject'] from_address = msg['From'] to_address = msg['To'] date = msg['Date'] body = msg.get_payload(decode=True).decode() # 处理HTML格式的正文 if msg.is_multipart(): for part in msg.walk(): content_type = part.get_content_type() filename = part.get_filename() if content_type == 'text/html': body = part.get_payload(decode=True).decode() else: content_type = msg.get_content_type() if content_type == 'text/html': body = msg.get_payload(decode=True).decode() # 处理附件 attachments = [] if msg.is_multipart(): for part in msg.walk(): content_type = part.get_content_type() filename = part.get_filename() if filename: filename = decode_str(filename) data = part.get_payload(decode=True) attachment = {'filename': filename, 'data': data} attachments.append(attachment) result = {'from': from_address, 'to': to_address, 'subject': subject, 'date': date, 'body': body, 'attachments': attachments} return result def decode_str(s): """ 解码字符串 """ value, charset = email.header.decode_header(s)[0] if charset: value = value.decode(charset) return value if __name__ == '__main__': # 测试代码 eml_path = 'test.eml' result = read_foxmail_eml(eml_path) print(result) ``` 这个代码可以读取指定路径下的.eml文件,并解析邮件内容,包括发件人、收件人、主题、日期、正文和附件等信息。你只需要将 `eml_path` 改为你的.eml文件路径即可。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值