不完整的附件仍附在邮件

时间:2018-06-04 13:48:35

标签: email filter email-attachments

我正在使用mimedefang过滤工具。在配置中,我删除所有附件并将其转发到另一个地址。对于特定的发件人,我可以看到milter更改了application / pdf和multipart-mixed中的标题Content-Type。在收到的outlook电子邮件中,当我使用文本编辑器打开pdf时(它包含的内容类似于("这是MIME格式的多部分消息......"后跟一些随机数字&#34) ; ------------ = _ 1525668389-64274-8 - ")。

任何人都可以猜到为什么会发生这种情况?

1 个答案:

答案 0 :(得分:0)

多部分消息(如带有附件的消息)的部分除以boundary。此boundary介于1到70个字符之间,并且不得出现在消息的封装部分内的任何位置(边界之间)。

MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=gc0p4Jq0M2Yt08jU534c0p

This is a message with multiple parts in MIME format.
--gc0p4Jq0M2Yt08jU534c0p
Content-Type: text/html; charset=UTF-8

<html><head></head><body>This is the HTML body of the message.</body></html>
--gc0p4Jq0M2Yt08jU534c0p
Content-Type: text/plain

This is the body of the message.
--gc0p4Jq0M2Yt08jU534c0p
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64

PGh0bWw+CiAgPGhlYWQ+CiAgPC9oZWFkPgogIDxib2R5PgogICAgPHA+VGhpcyBpcyB0aGUg
Ym9keSBvZiB0aGUgbWVzc2FnZS48L3A+CiAgPC9ib2R5Pgo8L2h0bWw+Cg==
--gc0p4Jq0M2Yt08jU534c0p-- 

我怀疑在mimedefang和你的milter配置之间,边界被破坏或包含在附件中会导致它们被破坏。