Blue Reef Technical Support Blue Reef Virtual Server Reseller ProgramBlue Reef Virtual Server SupportAbout Blue Reef Consulting, Inc.

About Blue Reef Virtual ServersEcommerce Solutions for your Virtual ServerSearch the Blue Reef Virtual Server web site
Return to Blue Reef Virtual Servers Home Page
Order virtual servers, software, computers, and more!
Return to Blue Reef Main Home Page
Specials
Site Map
Email Utilities to help you do business with your Virtual Server.



Blue Reef Virtual Servers
Virtual Server Support
Virtual Server Addons
Mail Utilities
Mail Utilities Overview
Email via SSLEmail via SSL
Poppass Password Changer
Procmail Email Filter
Email Autoresponders
Finger User Info
Majordomo Mail List Manager
PGP (Pretty Good Privacy)
Web-based Email
WPoison Email Collection Thwarting Utility
Request help using our Problem Tracking System
Order a Blue Reef Virtual Server now!


"POP(IMAP)-before-SMTP"
Anti-spam Measure


Updated 4/15/03

By default all Virtual Servers are closed to SMTP relaying by the POP-before-SMTP anti-spam configuration, which is specifically designed to prevent SMTP relaying by spammers.

How It Works

Each time a user on your server successfully enters a correct username and password to your POP or IMAP server (i.e. checks an email account that is configured on your Virtual Server), the server records the IP address of the remote client. The IP address and a timestamp are stored in the ~/etc/relayers.db database file. The database serves as a list of IP addresses that are a llowed to perform an SMTP relay. A simple rule set in the check_rcpt section of the ~/etc/sendmail.cf file causes sendmail to refuse to relay e-mail from any IP address that is not listed in the ~/etc/relayers.db database file. You will need to add this Rule Set if it is missing from your ~/etc/sendmail.cf file.

vsmtprelay
You may on occasion want to manually add to or clean the relayers.db database yourself. To do this we have created a utility program named vsmtprelay that allows you to add, delete, expire, or list IP addresses in the ~/etc/relayers.db file.
    % vsmtprelay
    vsmtprelay 1.1.0 usage (optional items in []):
    % vsmtprelay command [arg] [...]
      where "command [arg] [...]" can be one of the following:
      "add ip [ticks]" insert address with current timestamp (or ticks)
      "delete ip [...]" remove specified address(es)
      "expire [n]" expire all old (or older than n minutes) entries
      "list [n]" list all old (or older than n minutes) entries
      "dump" list every entry, including the future timestamped

    IP addresses are expressed as ASCII "dotted quads", e.g. "10.11.12.13". All timestamps are stored as ASCII strings representing a count of seconds elapsed since 0 hours, 0 minutes, 0 seconds, January 1, 1970, Coordinated Universal Time (the common UNIX epoch).
The ~/etc/relayers.db database is implemented as a "Berkeley DB hash file" with IP addresses as keys and timestamps as the data (all as ASCII strings). The vsmtprelay list output is intentionally produced in a form that can be edited manually and rebuilt by makemap(8) if desired.

Although the ~/etc/relayers.db database does not use up a lot of disk space, you may wish to automatically expire entries on a periodic basis to keep the database small. This can be done using the Cron program scheduler. For example, the following crontab entry would expire all of the day-old ~/etc/relayers.db database entries every night at 3:15 AM.

15 3 * * * /usr/local/bin/vsmtprelay expire 1440

SEE ALSO:

Creating Email Accounts

Configuring Email for Virtual Subhosts

Administration Utilities

Server Add-on Help

Implementing Microsoft Exchange Mail-on-Demand

BOOKS TO HELP YOU:

PGP: Pretty Good Privacy
PGP: Pretty Good Privacy


Marketing With Email
Marketing With Email



Web Security: A Step-by-Step Reference Guide
Web Security:
A Step-by-Step Reference Guide


Amazon.com logo
Search for :
Enter keywords...