Rocco wrote:
> $QUARANTINEDIR is commented out.
> So I need to set:
> $QUARANTINEDIR = '/var/virusmails';
> create with the right permission the dir:
> /var/virusmails
> More over I need to set:
> @spam_quarantine_to_maps = (
> { '.example.com' => '[EMAIL PROTECTED]', # spam for this domain goes here
> '.' => undef, # everyone else's spam is dumped (discarded)
> }
> );
> In this way the messages are filtered for 'example.com' and moreover the
> spam is all forwarded to [EMAIL PROTECTED]
This has nothing to do with whether mail is filtered for example.com
or not. Since you relay mail to example.com, this domain should
already be in your /etc/mail/relay-domains which is the file that your
/var/amavis/local_domains is linked to. If this is accurate, then mail
addressed to example.com should be spam scanned. This setting will
quarantine spam addressed to example.com to [EMAIL PROTECTED], and it
will discard spam for everyone else.
> Right?
> BR,
> rocsca
Since you have not configured $QUARANTINEDIR, the default for
$QUARANTINEDIR is undef, which means that amavisd-new will skip local
delivery of quarantined items. So, you do not need to change or
configure $QUARANTINEDIR. Since you do not wish to quarantine items
locally, you also do not need to create /var/virusmails.
Since this is the case, the ONLY change (addition) you need to make to
amavisd.conf is:
@spam_quarantine_to_maps = (
{ '.example.com' => '[EMAIL PROTECTED]', #spam for this domain goes here
}
);
You can use this, or the previous example of this:
@spam_quarantine_to_maps = (
{ '.example.com' => '[EMAIL PROTECTED]', # spam for this domain goes here
'.' => undef, # everyone else's spam is dumped (discarded)
}
);
After a spam is sent to someone at example.com, in your log you should
also see mail addressed to=<[EMAIL PROTECTED]>
Like I said, make sure there is a mailbox set up for that email
address.
Gary V
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/