SYNOPSISnms2dlf STDIN STDOUT
DESCRIPTIONThis program converts Netscape Messaging Server log file generated by the SMTP service to the email DLF.
To process correctly the log file, you need to turn on logging of the following modules:
- SMTP-Accept - SMTP-Deliver - Error-Handler - Mailbox-Deliver (Need to be enabled)
LIMITATIONSThis DLF converter was developed for the Netscape Messaging Server version 4.1. Other versions may or may not work. Contact the LogReport developers if you have problems with that converter.
You can find information about the log format used by Netscape Messaging Server at the following URL:
Not all messages are documented. And we found errors in the documentation. The fields msgID and mailFrom are inversed in both SMTP-Accept and SMTP-Deliver from what described the documentation.
CONFIGURING LOGGING OF MAILBOX-DELIVER MODULEWe found that there are no logs from the Mailbox-Delivery module by default. In order to fix that problem please make sure you do the following:
- Go on the Netscape Messaging Server 4 MTA or Message Store
- Become the Mail Server user (usually this should not be root but typically a user like mailsrv or whatever was defined at installation time, check for the ownership of the files in your message server instance for example)
Go to the right location, something like: server-root/msg-instance
For example it could be: /usr/netscape/server4/msg-mymailserver
$ ./configutil -o service.smtp.mailbox-deliver.log -v yes OK SET
Then become root, go again to your instance directory like:
/usr/netscape/server4/msg-mymailserver and do:
# ./stop-msg smtp /usr/netscape/server4: Stopping SMTP daemon 16279 .... done: 16279 # ./start-msg smtp /usr/netscape/server4: Starting SMTP daemon ..... done: 10820
And then you will start seeing lines which will look like the following:
[19/Jul/2002:08:31:54 +0200] amail2 smtpd: \ General Notice: SMTP-Accept:GZHGT501.C01:<[email protected]\ esmtp.orangemail.ch>:[192.168.30.2]:192.168.30.2: \ <[email protected]>:19514:1:<[email protected]> [19/Jul/2002:08:31:54 +0200] amail2 smtpd: General Notice: \ Mailbox-Deliver:GZHGT501.C01:<[email protected]\ esmtp.orangemail.ch>:19516:1:hmarmy;
If this was not done the line with the pattern Mailbox-Deliver above will not be present and the program will give wrong results. A warning will be output in the error log.
EXAMPLESTo process a log as produced by Netscape Messaging Server
$ nms2dlf < mail.log
nms2dlf will be rarely used on its own, but is more likely called by lr_log2report:
$ lr_log2report nms < /var/log/mail.log
VERSION$Id: nms2dlf.in,v 1.10 2006/07/23 13:16:34 vanbaal Exp $
COPYRIGHTCopyright (C) 2002 Stichting LogReport Foundation <[email protected]> Copyright (C) 2002 Arnaud Taddei Copyright (C) 2002 Arnaud Gaillard
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.