|
Since version 2.4, H-Sphere provided enhanced Qmail SMTP server configuration with
the following antispam add-ons:

Virus and Spam Protection
Starting with H-Sphere 2.4 Beta 7, the Qmail update also incorporates SpamAssassin and ClamAV filters at
the server level. It uses an improved qmail-queue patch concept, where the use of the QMAILQUEUE variable
is replaced with checking recipient addresses against the clamavclients and spamdclients
databases. H-Sphere users can add their mail addresses to the database to have them checked for spam and
viruses. User-defined antispam preferences are stored in a MySQL database.
Mail is filtered by standalone clamd and spamd services. We had to get rid of the Qmail-Scanner perl
wrapper, because it is rather heavy and unreliable for high load SMTP servers. Instead, we use
clamdmail software,
which is fast and adapted to working with clamd and/or spamd.
ClamAV and Spamassasin settings are configured per user mailboxes. Please refer to the
User Guide for details.
Default antispam settings, like other qmail settings, can be
configured in the admin control panel in the E.Manager/Mail Servers menu.
In later versions, we are planning to add a series of other qmail patches, including:
Qmail Configuration Overview
Qmail installation directory is usually /var/qmail.
SMTPd configuration files are located in the /var/qmail/control directory.
They are also called control files. Each SMTP parameter is configured in its
own control file with the same name, for example, /var/qmail/control/smtpauth
for smtpauth parameter
(see description below.)
To view SMTP server configuration, run the qmail-showctl utility, under root:
# /var/qmail/bin/qmail-showctl
You will get the list of SMTP parameters. Each line in the list has the following format:
smtp_parameter: [(Default.)] Value
Each stmp_parameter may be set in its own control file with the same name located in the
/var/qmail/control directory..
The file contains the parameter's value.
If the file is not found, the default value is taken and the default notification
(Default.) shows up in the configuration list.
Value can be of three types:
- Text: can be either a line, like 78,
or a list, for example a list of addresses in badmailfrom.
badmailfrom is the file that containts a list of
senders mail isn't accepted from.
- Number, like 1000 in databytes.
databytes is the file that contains the maximum allowed size of
a message.
- Boolean, like 0 or 1 in smtpauth.
0 disables SMTP Auth, 1 enables it.
Note: 0 is also set by default if the corresponding control file is absent.
Thus, for example, if you have to enable SMTP Auth, you create/modify the
/var/qmail/control/smtpauth control file and put 1 in it. To disable SMTP Auth,
put 0 in the control file or just delete the control file.
Also, text values may contain patterns: wildcard expressions to set the range of
emails, domains and IPs for filtering rules.
Control characters in patterns:
- Exclamation mark (!): allows you to INCLUDE particular
clients/addresses by simply putting an exclamation mark (!) as first character in the line.
- Asterisk (*): General pattern matching character; one or more preceding.
- Question Mark (?): Match zero or one preceding.
- Backslash (\): Literal expression of following character, eg. \[.
- Match one from a set ([...]): i.e. [Ff][Aa][Kk][Ee] matches FAKE, fake, FaKe, FAKe etc.
As an example of patterns, see the canonical method filter for spam e-mail in
README_SPAMCONTROL
Starting with H-Sphere 2.4, it is possible to configure general and antispam SMTP settings from the
admin control panel. For information on individual parameters, see
Mail Server Settings of the admin guide.
|