"错误:消息文件太大"是传出端还是接收端的限制?

Tra*_*lli 9 mail-server

客户端正在尝试发送一个相当大的电子邮件,但它会被以下消息退回:

Hi. This is the qmail-send program at server2.hysir.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<maria@laeknastodin.is>:
157.157.98.19 failed after I sent the message.
Remote host said: 552 5.3.4 Error: message file too big
Run Code Online (Sandbox Code Playgroud)

我已经检查过,我们的终端上的邮件大小没有限制,这个IP地址即157.157.98.19是接收邮件服务器的IP,我是正确的,我认为laeknastodin.is的邮件服务器拒绝邮件到期它的大小而不是我们的smtp拒绝发送?

Gry*_*ius 20

Remote host said: 552 5.3.4 Error: message file too big
Run Code Online (Sandbox Code Playgroud)

错误消息明确指出接收主机正在限制消息大小.如果使用telnet进行检查,则可以看到目标主机上配置的限制为20 MB(20480000字节)

telnet 157.157.98.19 25
Trying 157.157.98.19...
Connected to 157.157.98.19.
Escape character is '^]'.
220 mail.laeknastodin.is ESMTP Postfix
EHLO example.com
250-mail.laeknastodin.is
250-PIPELINING
250-SIZE 20480000     <----------- 20 MB limit
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Run Code Online (Sandbox Code Playgroud)

  • 只是为了澄清:限制不是20 MB,而是大约19,53 MB,因为20 MB = 20971520字节和20480000字节= 19.53125 MB (2认同)