argsoft_mail_server = { # The name of the log format log.format.format_label = "Argsoft Mail Server Log Format" log.miscellaneous.log_data_type = "mail_server" log.miscellaneous.log_format_type = "mail_server" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[0-9]+-[0-9]+-[0-9][0-9][0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] - Requested SMTP connection from [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # The format of dates and times in this log log.format.date_format = auto log.format.time_format = auto # An entry in this log is called a "message" in the statistics (not a "hit") statistics.miscellaneous.entry_name = "messages" # Log fields log.fields = { date = { label = "$lang_stats.field_labels.date" type = "date" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # time from = { label = "$lang_stats.field_labels.from" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "@" left_to_right = false leading_divider = false } # from to = { label = "$lang_stats.field_labels.to" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "@" left_to_right = false leading_divider = false } # to server_domain = { label = "$lang_stats.field_labels.server_domain" type = "flat" index = 0 subindex = 0 } # server_domain source_ip = { label = "$lang_stats.field_labels.source_ip" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # source_ip size = { label = "$lang_stats.field_labels.size" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # size } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse connection line connection = { label = "connection" comment = "" value = "collect_fields_using_regexp('^([0-9-]+) ([0-9:]+) - Requested SMTP connection from ([0-9.]+) .* ID=([0-9]+)', 'date,time,source_ip,*KEY*')" } # Parse HELO lines helo = { label = "helo" comment = "" value = "collect_fields_using_regexp('\\( *([0-9]+)\\) ([Hh][Ee][Ll][Oo]|[Ee][Hh][Ll][Oo]) (.*)', '*KEY*,dummy,server_domain')" } # helo # Parse MAIL FROM lines mailfrom = { label = "MAIL FROM" comment = "" value = "collect_fields_using_regexp('\\( *([0-9]+)\\) [Mm][Aa][Ii][Ll] [Ff][Rr][Oo][Mm][: ]<([^>]*)>', '*KEY*,from')" } size = { label = "size" comment = "" value = "collect_fields_using_regexp('\\( *([0-9]+)\\) [Mm][Aa][Ii][Ll] [Ff][Rr][Oo][Mm][: ].* [Ss][Ii][Zz][Ee]=([0-9]*)$', '*KEY*,size')" } # size # Parse RCPT TO lines rcptto = { label = "RCPT TO" comment = "" value = "collect_fields_using_regexp('\\( *([0-9]+)\\) [Rr][Cc][Pp][Tt] [Tt][Oo][: ]<([^>]*)>', '*KEY*,to')" } # Accept this collected log entry, if this is a rcpt to line accept = { label = "accept" comment = "" value = "accept_collected_entry_using_regexp('\\( *([0-9]+)\\) [Rr][Cc][Pp][Tt] [Tt][Oo][: ]', false)" } } # log.parsing_filters # Database fields database.fields = { date_time = { label = "$lang_stats.field_labels.date_time" log_field = "date_time" type = "string" suppress_top = 0 suppress_bottom = 3 display_format_type = "date_time" } # date_time day_of_week = { label = "$lang_stats.field_labels.day_of_week" log_field = "day_of_week" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "day_of_week" } # day_of_week hour_of_day = { label = "$lang_stats.field_labels.hour_of_day" log_field = "hour_of_day" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "hour_of_day" } # hour_of_day server_domain = { label = "$lang_stats.field_labels.server_domain" log_field = "server_domain" type = "string" suppress_top = 0 suppress_bottom = 2 } # server_domain source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip from = { label = "$lang_stats.field_labels.from" log_field = "from" type = "string" suppress_top = 0 suppress_bottom = 2 } # from to = { label = "$lang_stats.field_labels.to" log_field = "to" type = "string" suppress_top = 0 suppress_bottom = 2 } # to } # database.fields database.numerical_fields = { messages = { label = "$lang_stats.field_labels.messages" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # messages size = { label = "$lang_stats.field_labels.size" default = false requires_log_field = true log_field = "size" type = "int" integer_bits = 64 display_format_type = "bandwidth" } # size } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'messages = 1;' } # mark_entry } # log.filters create_profile_wizard_options = { date_time_tracking = true host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" day_of_week = true hour_of_day = true server_domain = true source_ip = true from = true to = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true } # not_supported } # argsoft_mail_server