report mail
Use this command to configure report profiles that define what information will appear in generated reports.
In addition to log files, FortiMail units require a report profile to be able to generate a report. A report profile is a group of settings that contains the report name, file format, subject matter, and other aspects that the FortiMail unit considers when generating the report.
Syntax
config report mail
edit <profile_name>
set dest-ip-mask <ip/netmask_str>
set dest-ip-type {ip-group | ip-mask}
set direction {both | incoming | outgoing}
set domains {all | <protected-domain_str>}
set period-absolute-from <start_str>
set period-absolute-to <end_str>
set period-relative-value <n_int>
set recipients <recipient_str>
set schedule {daily | dates | none | weekdays}
set schedule-dates <dates_str>
set schedule-weekdays <days_str>
set sender-domains
end
Variable |
Description |
Default |
Enter the name of the report profile. |
|
|
Enter the IP address to which reports on logged email messages are destined. |
0.0.0.0/32 |
|
Enter the type of the IP address for sending reports on logged email messages. |
ip-mask |
|
Enter one of the following:
|
both |
|
Enter either |
all |
|
Enter the file format of the generated report. |
|
|
Enter the beginning of the time range in the format yyyy-mm-dd-hh, where yyyy is the year, mm is the month, dd is the day, and hh is the hour in 24-hour clock format. For example, entering |
|
|
Enter the end of the time range in the format yyyy-mm-dd-hh, where yyyy is the year, mm is the month, dd is the day, and hh is the hour in 24-hour clock format. For example, entering |
|
|
period-relative {last-2-weeks | last-7-days | last-14-days | last-30-days | last-N-days | last-N-hours | last-N-weeks | last-month | last-quarter | last-week | not-used | this-month | this-quarter | this-week | this-year | today | yesterday} |
Enter the time span of log messages from which to generate the report. If you entered |
|
If you entered |
|
|
Enter the name of a query whose result you want to include in the report, such as To display a list of available query names, enter a question mark ( |
|
|
Enter a list of one or more recipient email addresses that will receive the report generated from the report profile. Separate each recipient with a comma ( , ). |
|
|
Enter a value to schedule when the report is automatically generated, or to disable generating reports on schedule if you want to initiate them only manually.
|
|
|
Enter the dates to generate the reports. Separate each date with a comma ( , ). For example, to generate a report on the first and fourteenth of each month, you would enter |
|
|
If you want to automatically generate the report according to a schedule, enter the hour of the day, according to a 24-hour clock, at which you want to generate the report. Also configure the days on which you want to generate the report. For example, to generate reports at 5 PM, you would enter |
|
|
Enter the days to generate the reports. Separate each day with a comma ( , ). For example, to generate a report on Friday and Wednesday, you would enter |
|
|
Enter the selected sender domain names (empty means ALL) |
|