spasm v1.0 documentation

# RegEx Documentation

There are currently two system-only filters in place which support regular expressions (RegEx, RE). These are the spamtrap database (not to be confused with the spamtrap blacklist), and the envfrom database. Neither of these are user-accessible. These two filters allow the Systems Administrator a level of control separate from the users for automation and protection of the mail server. They should be used cautiously and thoughtfully. The RegEx functions used for these are the POSIX functions in "regex.h".

- SPAMTRAPS_DB: The spamtrap database is a list of spamtrap email addresses, in RegEx form or simply "user@domain.com" form. When spasm receives a message destined for a spamtrap address, the sending server's IP address is automatically added to the user-selectable SF_SPAMTRAP blacklist.
- ENVFROM_DB: The envfrom database is a list of envelope sender addresses, in RegEx form or simply "user@domain.com" form. This database is checked during the SF_LOCALFILTER check. If the sender's email address matches an entry in this database, the message is rejected.