From: Mark M. <Mar...@ij...> - 2004-07-31 21:18:10
|
Simon, > I'm having a few issues with the virus_quarantine_to field in the > policy table, when using amavis-new-20040701. I believe I have missed > something simple. When a virus or spam message is getting quarantined, > it will be quarantined to the default location if their is no entry in > the virus_quarantine_to feild. But if I have a dir path in the > virus_quarantine_to field e.g /var/amavis/customers/simon > The email doesn't go their, and just vanishes. > > I believe I am inputing the path incorrectly in the virus_quarantine_to > field, but can not find any docs, or examples on it. The value of virus_quarantine_to field (just as its static counterparts) is not interpreted as a file name, but is either an e-mail address, or one of the entries in %local_delivery_aliases, typically the string 'virus-quarantine'. amavisd.conf-sample : # A finer control of quarantining is available through variable # $virus_quarantine_to/$spam_quarantine_to. It may be a simple scalar string, # or a ref to a hash lookup table, or a regexp lookup table object, # which makes possible to set up per-recipient quarantine addresses. # # The value of scalar $virus_quarantine_to/$spam_quarantine_to (or a # per-recipient lookup result from lookup tables @virus_quarantine_to_maps) # is/are interpreted as follows: # # VARIANT 1: # empty or undef disables quarantine; # # VARIANT 2: # a string NOT containing an '@'; # amavisd will behave as a local delivery agent (LDA) and will quarantine # viruses to local files according to hash %local_delivery_aliases (pseudo # aliases map) - see subroutine mail_to_local_mailbox() for details. # Some of the predefined aliases are 'virus-quarantine' and 'spam-quarantine'. # Setting $virus_quarantine_to ($spam_quarantine_to) to this string will: ... # VARIANT 3: # any email address (must contain '@'). # The e-mail messages to be quarantined will be handed to MTA # for delivery to the specified address. If a recipient address local to MTA # is desired, you may leave the domain part empty, e.g. 'infected@', but the # '@' character must nevertheless be included to distinguish it from variant 2. > The email doesn't go their, and just vanishes. Using variant 2 and specifying a nonexistant key (as in your case), you get a log entry 'skip local delivery ...' at log level 2. It behaves the same as specifying empty or undef. Mark |