Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Blocking Spam - The access File

bullet Blocking Spam - The access File
The access file is similar to The spammers File, but offers more options and flexibility. For example, with the access file you can:

  • Reject e-mail (e.g. Spam) from specific users, domains, IP addresses, and networks.
  • Specify the text (or use sendmail's default) of messages to return to senders of rejected e-mail.
  • Accept e-mail from specific users within a domain, while rejecting e-mail from all other senders in the domain.
  • Reject e-mail sent to specific local users.

There are also a number of other features of the access file, which are documented in the ~/usr/local/sendmail/cf/README file.


bullet Installation
The access file functions can be installed by modifying your sendmail configuration file (~/etc/ You can do this by using the sendmail M4 macros, which include ready-to-use configuration files with the full anti-spam support. Connect to your Virtual Server via Telnet or SSH and do the following.
  1. Install the sendmail Configuration Utilities.

  2. Copy your current ~/etc/ file to a backup location by running the following command:

    % cp ~/etc/ ~/etc/

  3. Install the new anti-spam sendmail configuration file that is approprate for your Virtual Server O/S.

    • FreeBSD
      % cp ~/usr/local/sendmail/cf/cf/ ~/etc/

    • Solaris
      % cp ~/usr/local/sendmail/cf/cf/ ~/etc/

    NOTE: The anti-spam rules require an ACL account with in order to function. To learn more about getting an ACL account, go to MAPS Fee Structure page.

  4. Create a file named local-host-names, if it doesn't exist already, in your ~/etc directory on your Virtual Server. In this file, list all the domains on the Virtual Server that are allowed to recieve e-mail locally. The list should be one domain per line. Previously, these domains were listed on the Cw line of the sendmail configuration file.


bullet Usage
Create or upload an ~/etc/access text file with the format described in the documentation in the ~/usr/local/sendmail/cf/README file. Then, issue the vnewaccess command:

% vnewaccess

Toll Free 1-866-GSP-4400 • 1-301-464-9363 •
Copyright © 1994-2016 GSP Services, Inc.