search-maillogs

Searches mail server and procmail logs This is the command-line equivant of the Search Mail Logs page in the Virtualmin user interface. It can find email messages delivered or relayed through the system by several different criteria, specified by command-line flags. To search by recipient, use the --dest flag followed by an email address, domain name or Unix username. To search by sender, use the --source flag followed by a sender’s email address.

Searches mail server and procmail logs#

This is the command-line equivant of the Search Mail Logs page in the Virtualmin user interface. It can find email messages delivered or relayed through the system by several different criteria, specified by command-line flags.

To search by recipient, use the --dest flag followed by an email address, domain name or Unix username. To search by sender, use the --source flag followed by a sender’s email address.

To limit the search to a particular date range, use the --start and/or --end flags. Both can be followed by either a date formatted like 2001-09-16, a date and time like 2001-09-16 17:00, or an offset in days into the past from the current time like -5.

To filter out spam or viruses from the output, use the --no-spam or --no-virus flags respectively.

By default, the output is in a human-readable table format. To switch to one that shows more details and is more easily parsed by other programs, use the --multiline flag.

Command line help#

virtualmin search-mailllogs [--start yyyy-mm-dd:hh:mm:ss]
 [--end yyyy-mm-dd:hh:mm:ss]
 [--dest domain|user@domain]
 [--source domain|user@domain]
 [--multiline]
 [--no-spam] [--no-virus]

Source: https://www.virtualmin.com/docs/development/api-programs/search-maillogs/

  • virtualmin, domain, email, mail, spam, user, log, logs, command line, search, maillogs
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...