Infact the problem has nothing to do with amavisd-new configuration.. I read
the documentation, after which I understand that the $spam_admin setting had
no influence on the forwarded mail to thethe $spam_quarantine_to.

I only unset the $mailfrom_to_quarantine so the forwarded spam mantain the
original address.

But the original problem persist. Infact the spam is not forwarded to the
$spam_quarantine_to. Here want sendmail put in the syslog when I try to send
a spam message to the domain 'example.com':

Nov 12 10:24:33 av3 sendmail[16675]: jAC9OXt4016675: [EMAIL PROTECTED],
delay=00:00:00, mailer=esmtp, pri=35209, dsn=4.4.3, stat=queued

I think that the problem is caused by amavisd-new. Infact, when I send an
email at command line with the same recipient and set the same source, the
message is delivered succesfully.

Anyone can justify this behaviour?

BR,

rocsca



----- Original Message ----- 
From: "Gary V" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, November 11, 2005 7:08 PM
Subject: Re: [AMaViS-user] Redirect all spam for one domain into a mailbox


> 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/



-------------------------------------------------------
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/

Reply via email to