Apple 10.6 Server User Manual


 
Chapter 4 Monitoring and Maintaining Mail Service 87
To view a Mail service log:
1 In Server Admin, select a computer in the Servers list, then select Mail.
2 Click the Logs button.
3 From the View pop-up menu, choose a log type.
4 Click Save.
From the command line:
You can use tail or another le-listing tool to view the contents of Mail service logs.
1 Use the serveradmin getLogPaths command to see where Mail service logs are located.
$ sudo serveradmin command mail:command = getLogPaths
2 View 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 le:
$ tail -f /var/log/amavis.log
Control-C stops the tail command from watching the log le 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 specied 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:
1 In Server Admin, select Mail in the Computer & Services list.
2 Click the Connections button.