如何捕获R5服务器上返回的SMTP消息(SMTP Inbound message)的信息

12/3/2006来源:Lotus Notes人气:5771

一个正在运行Domino Server R5.x的用户,他需要捕获一个关于收到的SMTP消息(SMTP Inbound message)的信息以进行分析。那么,如何做呢?

在R5服务器上捕获一个关于收到的SMTP消息需要设置服务器的Notes.ini的参数,并重新启动SMTP监听任务,以使其生效。之后,所生成的文件将会被保存到一个单独的为服务器指定的TMP目录(即操作系统在环境变量中所定义的TMP的目录,如Windows的操作系统中缺省定义的TMP目录为C:\WINNT\TEMP。请参看下图所示),文件的名字是STXXXXXX.TMP(其中,XXXXXX是6个数字)。这些文件的内容是此信息的信头和MIME的信息。

image

具体的设置方法有两个,用其中一个即可。
1。在远程控制台上,输入命令:
set config smtpsaveimporterrors=2
2。打开服务器的NOTES.INI文件,加入下列参数到此文件中:
smtpsaveimporterrors=2

下面是一个捕获到的文件的实例:

Received: from nighthawk3.lotus.com ([xx.xx.xx.xx])
by nighthawk2.lotus.com (Lotus Domino Release 5.0.2b)
with SMTP id 2000030313512768:2 ;
Fri, 3 Mar 2000 13:51:27 -0500
Received: by nighthawk3.lotus.com(Lotus SMTP MTA v1.2 (600.1 3-26-1998)) id 85256897.00675A93 ; Fri, 3 Mar 2000 13:48:54 -0500
X-Lotus-FromDomain: SUPPORT2
From: [email protected]
To: [email protected]
Message-ID: <[email protected]>
Date: Fri, 3 Mar 2000 13:48:33 -0500
Subject: trap an inbound message on 5.02b
Mime-Version: 1.0
Content-type: multipart/mixed;
Boundary="0__=rG0pysCtZKq9mOxXZNfD244dgwRSXeAQebY6ju6M3uFh2jLYOU6ltGtS"
Content-Disposition: inline

--0__=rG0pysCtZKq9mOxXZNfD244dgwRSXeAQebY6ju6M3uFh2jLYOU6ltGtS
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline

This message contains some text and an attachment.

(See attached file: mycar.bmp)

--0__=rG0pysCtZKq9mOxXZNfD244dgwRSXeAQebY6ju6M3uFh2jLYOU6ltGtS
Content-type: image/x-MS-bmp;
name="mycar.bmp"
Content-Disposition: attachment; filename="mycar.bmp"
Content-transfer-encoding: x-uuencode
Content-Description: Windows Bitmap

begin 644 mycar.bmp
[email protected]"@``````#8````H````@`0````#```!`[email protected]```````"`*`#.#@``V`X`
M````````````,"`0/[email protected]@/[email protected]?/S`@0"@@0#`@3S`@[email protected]@0"@?/[email protected]"@?0#`@
M0#`[email protected]"@@/S`@/[email protected]@/S`@/S`@/[email protected]@/[email protected]?0"@?0#`@0#`@3S`@0"@?/[email protected]
M0"@@0"@?/R`0/[email protected]?0"@@/[email protected]@0#`O/[email protected]@0"@@0"@O0"@@0"@@3S`@4$`P3S`O
M0"@?0"@@0"@?0"@?0"@?0#`O0"@@3S`O/[email protected]@0"@@/R`?/R`?0"@?0#`O0"@@
M0#`P0"@O0#`O0"@O3S`O3S`@4#`[email protected]#`P4#@P8$A`[email protected]"@O3S`@3S`@
M0"@?3S`@3S`@3S`@0#`@[email protected]@4#@[email protected]_3S`O3S`P3S`O0"@[email protected]`_3S`O
M3S`O3S`O3S`O0"@@0"@@0#`O3S`[email protected]#`O0#`O3S`O0#`O0"@@0"@@[email protected]
M0"@?0"@?,[email protected]/0"@?3S`O3S`@0"@@[email protected]/[email protected]@0#`@/[email protected]?0"@@/[email protected]?/[email protected]?,"`?

-- Attachment truncated intentionally --

,