GreenArrow Documentation

hvmail_get_possible_spamtrap_hits Command

Purpose

The hvmail_get_possible_spamtrap_hits command prints out processed logfile entries for all messages delivered from the specified IP between 60 seconds before to 120 seconds after the specified timestamp.

Command Syntax

hvmail_get_possible_spamtrap_hits [options] timestamp ip

This command prints out processed logfile entries for all messages delivered
from the specified IP between 60 seconds before to 120 seconds after the
specified timestamp.

OPTIONS

  --dd-mm-yyyy-timestamp

    Accepts timestamps in "dd/mm/yyyy" or "dd.mm.yyyy" format.

    When this option is not specified, "mm/dd/yyyy" or "mm.dd.yyyy" format is expected.

  --write-to-dir path_to_dir

    Writes output to the directory given. A new file is created with
    the timestamp and the IP address.

  --help

    Print out this help message

EXAMPLE INVOCATION

  /var/hvmail/bin/hvmail_get_possible_spamtrap_hits --write-to-dir /tmp/spamtraps/ "4/27/2016 6:06 PM" 1.2.3.4

IMPORTANT NOTE

  If you see output like this:

  Starting = requested Sun Sep  6 13:43:00 2015
           ACTUAL==> Wed Dec 31 18:00:00 1969
           missing 215552 seconds

  Then the requested data was not available in the log files.

Examples Invocation

Show all emails sent from 1.2.3.4 between 6:05:00 PM and 6:08:00 PM April 27, 2016

/var/hvmail/bin/hvmail_get_possible_spamtrap_hits --write-to-dir /tmp/spamtraps/ "4/27/2016 6:06 PM" 1.2.3.4

Example Report

email=<[email protected]> smtp_result_time=<1461783160> smtp_result=<accepted> smtp_result_message=<> sendid=<a455992>
email=<[email protected]> smtp_result_time=<1461783222> smtp_result=<accepted> smtp_result_message=<> sendid=<a455992>