一个正在运行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; filename="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 --