Table of content
The grey listing consist to temporarily reject the first message received from an unknown sender, and according to the SMTP protocol the sender must try again later.
This greatly improves spam detection, because from the message rejection there are two possible ways for the sender:
- not sending the message again, and in this case, it is certainly a person who is doing mass mailing
- sending the message again, and if it’s spam, the elapsed time will have permited updating of the blacklists like spamcop or spamhaus. These blacklists can be exploited by spamassassin or directly by postfix.
Build information
Ensure the following options:
Configuration
The configuration file sqlgrey.conf
is located in the
/usr/local/etc/sqlgrey/
directory.
sqlgrey
process and network connection- Information to access and manage the database
- Management of grey listing
Initialisation
1 2 3 4 5 |
|
Whitelist
Unfortunately not all legit mail servers respect the rules, and
it is necessary to have a whitelist for some of them, either based
on the IP address clients_ip_whitelist
or on the fully qualified
host name clients_fqdn_whitelist
.
The clients_ip_whitelist
and clients_fqdn_whitelist
files
can be automatically updated using:
1 |
|
If you need to manually specify additional servers you need to use:
clients_ip_whitelist.local
clients_fqdn_whitelist.local
Startup
Integration
Postfix
It is used with the check_policy_service
action from the
/etc/postfix/main.cf
configuration file, for example:
When adding the check_policy_service
for sqlgrey, be careful where
you place it according to other existing rules