THE VIRTUAL SERVER HANDBOOK
Managing POP before SMTP
In the default configuration, your Virtual Server never removes addresses
from the database. Once an address is recorded, it is always valid. Users
contacting your SMTP server from their IP address are permitted to use the
server as an SMTP relay host. The command vsmtprelay allows you to
manage the IP addresses in the ~/etc/relayers.db file. Here are some
examples of using vsmtprelay.
To list all recorded IP addresses
From your Virtual Server command prompt, enter
vsmtprelay list
Results resemble the following example:
# timestamp (UTC): Tue Sep 22 22:15:27 1998
10.11.12.13 906502527
The example above shows the recorded IP address (10.11.12.13), the
associated timestamp (906502527), and a comment line showing the
timestamp in decoded form as a date and time in Coordinated Universal
Time (UTC).
To list all addresses older than 10 minutes in the database
From your Virtual Server command prompt, enter
vsmtprelay list 10
To list every address in the database, including those with
timestamps in the future:
From your Virtual Server command prompt, enter
vsmtprelay dump
To edit the database contents
From your Virtual Server command prompt, enter
vsmtprelay dump > ~/etc/relayers
Note: The database contents are placed in the
~/etc/relayers
file.
You can manually edit (adding, changing, or removing entries) the
contents of the
~/etc/relayers.db
file.
To rebuild the database from your edited copy
From your Virtual Server command prompt, enter
% /usr/sbin/makemap hash ~/etc/relayers.db <
~/etc/relayers
To expire all addresses in the database
From your Virtual Server command prompt, enter
% vsmtprelay expire
To expire addresses in the database older than 60 minutes
From your Virtual Server command prompt, enter
% vsmtprelay expire 60
COPYRIGHT
1999 DIGITAL TOOLS LLC.
78