14 Dec 2019 
Centre d'assistance » Base de connaissances » How to configure AntiSpam and mail server security
 Connexion [Mot de passe perdu] 
Courriel:
Mot de passe:
Se souvenir de moi:
 
 Recherche
 Détails des articles
 How to configure AntiSpam and mail server security
Solution

IceWarp v8 -

Introduction


Spam is one of quickest expanding, discomfort making sector of illegal IT activities. Spammers react on each developed counter-measure in a short time so it's very difficult to write some How-To against spam. Take this document as few recommendations how to have preferably as low amount of spam as possible.

Tips

  • Have closed relay

It's the most important thing on AntiSpam setting. Once you have open relay, spammers will find you in a moment and put you on a list of OPEN (free to spam from) SMTP servers. After that your server will relay thousands of spam email per second and will be globally blacklisted by many ISPs and RBL services in a short time.

Relaying can be set in Mail service --> Security

Security - general - closed relay

As you can see on the picture above, you can define here Trusted IPs as well. These IPs will be no way limited in relaying mail through your mail server, even if it's spam- Anti-Spam engine will be bypassed completely.

  • Set AntiSpam active, schedule updates

As mentioned in Introduction, the power of AntiSpam is in up-to-date spam reference database. Because of that,  carefully set the schedule to a time where server is not in busy but is online!

In some cases, you may want to download current database of AntiSpam manually by click on "Update now" button.

AntiSpam - general tab

  • Enable logging, processing of outgoing messages

As shown on the picture below, enable logging of AntiSpam engine. It can later help you find out what's happened when you need to investigate why a message was/wasn't marked as spam. In large organizations with many email accounts within single domain, it's advised to turn on processing also for outgoing messages. This provides more security for the case when some of your accounts is stolen by a spammer.

AntiSpam - other tab

  • Carefully set score required for actions with messages

Especially in this part of AntiSpam configuration it's very hard to recommend exact values. It really depends on the type of incoming messages and this process will take you some time of trying different values until best results are achieved. You can try to use predefined templates for these settings, but still some adjustments will be required. There are many ways how to configure Spam Reports, Quarantine etc. More information on these topics can be found in other FAQs or in Anti-Spam Guide.

The picture shows some common setting of the engine.

AntiSpam actions

Don't forget to set Quarantine to Active mode in Quarantine node of AntiSpam.

  • Enable SpamAssassin

SpamAssassin is a set of powerful tools which really helps avoiding spam. The picture below shows  recommended settings of SpamAssasin module. If still some problems appear, you can activate any of the other technologies as necessary.

SpamAssasin module

A useful feature is SpamAssassin reporting. Its exact usage depends on your requirements, for example adding X-Header with the report can help you quickly track which filters have added score to the particular email.

  • Use Blackhole Lists

RBL

Real-time blackhole lists also contribute to avoiding spam. It's a real-time database of servers which are being used to send spam, so if a hostname of the server appears in message header, SpamAssassin will add specified score to the message.

Because of resource usage, it's recommended to use 3 RBL lists as a maximum.

SpamAssasin - RBL

DNSBL

This function is similar to RBL used in SpamAssassin. Online database in the form of a special DNS server is queried by the server in the course of message receipt process. If the sender's IP is listed in DNSBL, the message can be rejected by closing the session before the message is sent. You can manually define also any other DNSBL servers which can be found on the internet.

The picture below shows also other options enabled, which will reject the message if it's sent from a suspect mail server.

Security - DNS BL

  • Use Bayesian database

Bayesian statistical function adds score to emails making the AntiSpam more effective if configured properly. Bayesian filter is based on statistical comparison of genuine messages with spam messages. You can improve its precision by using learning functions of Bayesian filter, which can be found in AntiSpam --> Learning rules. Enable both options by checking Active, don't forget to feed the engine with both spam and genuine messages to improve its relevancy.

  • Enable Black & White lists

One of most useful and powerful function, which can be also managed by users, is black & white listing. Turn on message blacklisting for messages which are 100% spam, you can also define your own words to blacklist, so if any of them appears in a message, this message won't be delivered at all.

AntiSpam - Blacklisting


Whitelist on other site allows you to define which domains, email addresses, local senders or key words you trust and want the email always delivered, independent on the rating received from Anti-Spam.

AntiSpam - Whitelisting

  • One of most powerful weapon, greylisting

Greylisting (formerly called tarpitting) on purpose delays receiving of messages from all senders which are not authorized. The sender is authorized after it successfully goes through the greylisting process, meaning that for a specified time he doesn't need to go through it again (before the authorization expires). This avoids spambots sending thousands of messages to different addresses per second, due to the delay between first and second session. Unlike RFC compliant mail servers, they have no time to wait for another session. Time required between the two sessions can be set in Greylisting tab as shown bellow.

AntiSpam - Greylisting

If needed, you can manually authorize pending sessions in the dialog which opens after clicking on "Greylisting" button.

  • User's limits

To avoid that your domain is involved in sending spam, it's better to use domain limits for outgoing messages. Standard users don't send more than 200 messages a day, so set the limit to number 200. Don't forget to enable usage of domain limits in Domains & Accounts --> Global settings --> Domains --> Limits tab. If any user would like to have more than 200 emails to send out in a day, you can define it seperately in this user's settings. Global settings are done through Domains & Accounts -->Management --> selected domain --> Limits as shown on picture below.

Management -> domain -> Limits tab

 

  • Intrusion prevention

Another useful and important feature of the mail server is Intrusion prevention system, which can eliminate many spam attacks. For example dictionary attack to user mailbox names can be denied by controlling the number of delivery attempts to unknown users. After that you can define for how long will this IP address remain blocked or if all other sessions coming from this IP should be refused automatically.

Screenshot will help you with the setting.

Security - Intrusion prevention tab

For now that's all you can do against spam that fits into this 5 minute tutorial. Don't forget that all these settings are individual and not all tips need to be applicable to your specific environment. Look for more information in the Anti-Spam documentation.

KB200706223578
made by LukasP



Détails des articles
Code d'identification de l'article: 294
Créé le: 07 Feb 2008 10:32 AM

 Cette réponse m'a été utile  Cette réponse ne m'a pas été utile