IRedMail/FAQ/Quarantining.Messages
From iRedMail
(Difference between revisions)
(Created page with 'When amavisd detects a spam email, it logs a message to its log file by default. It can also quarantine the email and/or notify an administrator. It can then generate a bounce me…') |
|||
| Line 1: | Line 1: | ||
| + | __TOC__ | ||
| + | |||
| + | WARNING: This is '''NOT''' finished yet, do '''NOT''' apply it on your product server. | ||
| + | |||
| + | = Summary = | ||
When amavisd detects a spam email, it logs a message to its log file by default. It can also quarantine the email and/or notify an administrator. It can then generate a bounce message to the sender. Finally, it can either accept and deliver the message, or discard the message. Many different configuration variables are involved in these decisions. | When amavisd detects a spam email, it logs a message to its log file by default. It can also quarantine the email and/or notify an administrator. It can then generate a bounce message to the sender. Finally, it can either accept and deliver the message, or discard the message. Many different configuration variables are involved in these decisions. | ||
| + | = Steps = | ||
Enable a spam quarantine by setting the following variables: | Enable a spam quarantine by setting the following variables: | ||
{{cfg|/etc/amavisd.conf|<pre> | {{cfg|/etc/amavisd.conf|<pre> | ||
| Line 18: | Line 24: | ||
* '''D_REJECT''': mail will not be delivered to its recipients, sender should preferably get a reject, e.g. SMTP permanent reject response. | * '''D_REJECT''': mail will not be delivered to its recipients, sender should preferably get a reject, e.g. SMTP permanent reject response. | ||
| - | + | = References = | |
| - | References | + | |
* [http://www.akadia.com/services/postfix_amavisd.html Fighting Spam/Viruses with Amavisd-New, Maia and Postfix] | * [http://www.akadia.com/services/postfix_amavisd.html Fighting Spam/Viruses with Amavisd-New, Maia and Postfix] | ||
Revision as of 15:36, 25 August 2010
Contents |
WARNING: This is NOT finished yet, do NOT apply it on your product server.
Summary
When amavisd detects a spam email, it logs a message to its log file by default. It can also quarantine the email and/or notify an administrator. It can then generate a bounce message to the sender. Finally, it can either accept and deliver the message, or discard the message. Many different configuration variables are involved in these decisions.
Steps
Enable a spam quarantine by setting the following variables:
| File: /etc/amavisd.conf |
$QUARANTINEDIR = '/var/virusmails'; # Quarantine Directory $final_spam_destiny = D_DISCARD; $spam_quarantine_method = 'local:spam-%b-%i-%n'; # Filename in $QUARANTINEDIR $spam_quarantine_to = 'spam-quarantine'; # Put Spam in Quarantine Directory # $spam_quarantine_to = "postmaster\@$mydomain"; # Send Spam to Adminstrator # $spam_quarantine_to = undef; # Do nothing with Spam $spam_admin = "martin.zahn\@$mydomain"; # Where to send Notification |
The following symbolic constants can be used in $final_spam_destiny:
- D_DISCARD: Mail will not be delivered to its recipients, sender will NOT be notified. Effectively we lose mail (but will be quarantined unless disabled). Losing mail is not decent for a mailer, but might be desired.
- D_BOUNCE: Mail will not be delivered to its recipients, a non-delivery notification (bounce) will be sent to the sender by amavisd-new; Exception: bounce (DSN) will not be sent if a virus name matches $viruses_that_fake_sender_re, or to messages from mailing lists, or for spam level that exceeds the $sa_dsn_cutoff_level.
- D_REJECT: mail will not be delivered to its recipients, sender should preferably get a reject, e.g. SMTP permanent reject response.
