一个正在运行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的信息。

具体的设置方法有两个,用其中一个即可。
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: admin@nighthawk3.lotus.com
to: badmin@nighthawk2.lotus.com
message-id: <85256897.00673ad8.00@nighthawk3.lotus.com>
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; 200426174700.htm=”mycar.bmp”
content-transfer-encoding: x-uuencode
content-description: windows bitmap
begin 644 mycar.bmp
m0dtv@”@“““#8““h““@`0““#“`!`!@“““`”`*`#.#@“v`x`
m““““““,”`0/r@@/r@?/s`@0″@@0#`@3s`@3r@@0″@?/r@00″@?0#`@
m0#`o3s@o0″@@/s`@/r@@/s`@/s`@/r@@/r@?0″@?0#`@0#`@3s`@0″@?/r@0
m0″@@0″@?/r`0/r@?0″@@/r@@0#`o/r@@0″@@0″@o0″@@0″@@3s`@4$`p3s`o
m0″@?0″@@0″@?0″@?0″@?0#`o0″@@3s`o/r@@0″@@/r`?/r`?0″@?0#`o0″@@
m0#`p0″@o0#`o0″@o3s`o3s`@4#`o3r@o4#`p4#@p8$a`3s@o0″@o3s`@3s`@
m0″@?3s`@3s`@3s`@0#`@3s@@4#@o7t@_3s`o3s`p3s`o0″@o3s@p7t`_3s`o
m3s`o3s`o3s`o0″@@0″@@0#`o3s`o3s@p0#`o0#`o3s`o0#`o0″@@0″@@3r@o
m0″@?0″@?,!@/0″@?3s`o3s`@0″@@3s@o/r@@0#`@/r@?0″@@/r@?/r@?,”`?
— attachment truncated intentionally —
,
