To view a Mail service log:

1In Server Admin, select a computer in the Servers list, then select Mail.

2Click the Logs button.

3From the View pop-up menu, choose a log type.

4Click Save.

From the command line:

You can use tail or another file-listing tool to view the contents of Mail service logs.

1Use the serveradmin getLogPaths command to see where Mail service logs are located.

$ sudo serveradmin command mail:command = getLogPaths

2View the latest entries in your selected log with the tail command.

To view the last 10 entries in the Junk Mail/Virus Scanning log:

$ tail /var/log/amavis.log

To view any number of entries:

$ tail -n lines /var/log/amavis.log

Replace lines with the number of lines you want to view.

To watch new additions to the log file:

$ tail -f /var/log/amavis.log

Control-C stops the tail command from watching the log file and returns your command prompt.

For more information on the tail command, see its man page.

Reclaiming Disk Space Used by Mail Service Log Archives

Mac OS X Server reclaims disk space used by Mail service logs when they reach a specified size or age. You can use the command-line tool diskspacemonitor to monitor disk space when you want, and delete or move the log archives. For additional information, see the diskspacemonitor man page.

Viewing the Mail Connections List

Server Admin can list the users who are connected to Mail service. For each user, you see the user name, IP address of the client computer, type of mail account (IMAP or POP), number of connections, and connection length.

To view a list of connected mail users:

1In Server Admin, select Mail in the Computer & Services list.

2Click the Connections button.

Chapter 4    Monitoring and Maintaining Mail Service

87

Page 87
Image 87
Apple 10.6 manual Viewing the Mail Connections List, To view a Mail service log, To view a list of connected mail users