11.10.2.4 Use Milter to quarantine
The end-of-message handler, inside a Milter, can call smfi_quarantine(3) (?§26.5.13
on page 1194) to quarantine the envelope being screened.
11.10.2.5 Use the access database to quarantine
The access database (?§7.5 on page 277) provides a single, central database withrules
to accept, reject, and discard messages based on the sender name, address, or IP
address. It is enabled with the FEATURE(access_db) (?§7.5.1 on page 277).
A source text file used to create an access database might look (in part) like the following.
Note that each line is composed of a key on the left and a value on the right,
the two separated by tabs:*
key QUARANTINE
key QUARANTINE:reason
Note that the QUARANTINE term on the right may optionally be followed by a colon
and the reason the envelope is being quarantined. The reason may contain
whitespace, but must not contain newlines and should not be quoted.
For example, consider the following entries in a source file for an access database:
Connect:192.168.1.23 QUARANTINE:Bob??™s PC
To:your.compeditor.gov QUARANTINE:Review mail to our compeditor
From:head.hunter.domain QUARANTINE:Employee theft?
In the first line, Bob??™s PC sends email by connecting to the SMTP port on the central
mail server. Because of past behavior, or perhaps because of a worm or virus on
Bob??™s PC, we want to quarantine all outbound mail from that machine.
Pages:
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793