How can I search the mail log on my VPS?

The default location for the mail log is /var/log/maillog on your VPS. By default, you will also have archived maillog files with the name of /var/log/maillog.1, /var/log/maillog.2, /var/log/maillog.3 and /var/log/maillog.4.

Finding specific text in a file can be faster if you look at these files in a shell prompt. Use a command like:

less /var/log/maillog

to view the file and search with the following key combination:


where "searchtext" is the actual text you are searching for. Hitting the '/' key and then hitting the Enter key while in search mode goes to the next instance of that text. Hitting the 'q' key will exit from less.

You can also search for specific text in a file. A command like:

cat /var/log/maillog |grep searchtext |less

will bring up a list of all lines with the string "searchtext" in the file /var/log/maillog and place that information in less.

For more information on cat, less, and grep use the "man" command. For instance, to find more information on the grep command type:

man grep

If you do not wish to log into a shell prompt you can also view files in the File Manager in the control panel. The File Manager will not open files if they become too large and does not allow you to search for text within the file.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What are the incoming and outgoing mail servers for Walla Walla Internet Dial-Up Internet Access?

The mail servers for Walla Walla Internet dial-up Internet access are: POP3 (incoming) server:...

How do I make a Global Address Book for Open WebMail?

To create a global address book, first create an address global book for one user, populate it...

What is a mail spool?

A mail spool is a file that stores the mail header (i.e. sender's address, time of delivery,...

How do I add or remove MX records for my MDH hosting account?

To add an MX record "" for a domain: Click on your domain name....

What is a mailbox quota (Plesk)?

The mailbox quota is the limit on the size each mailbox can reach. The disk space quota is the...

Powered by WHMCompleteSolution