Thanks for that Mark, but I'm having some difficulty in getting it to
work.

I have:

---/etc/postfix/virtual---- 

/^(.*)\+spam@([.*])\.commarc\.co\nz$/ [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]

---eof---

...and email to the second two gets redirected as it should. Top line
should be catching and re-directing email sent to addresses like
[EMAIL PROTECTED] - but isn't.

I suspect some problem with the regex in that first line, but it's based
closely on your example, and my attempts at "improving" it haven't
helped, so I'm somewhat at a loss...

(I have been doing a "postmap /etc/virtual && /etc/init.dpostfix
restart" after editing)

Can you spot my mistake, or should I take this to a Postfix list?

 - steve
 
-----Original Message-----
From: Mark Martinec [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 15 November 2005 1:16 p.m.
To: [email protected]
Subject: Re: [AMaViS-user] Two-level quarantine in gateway config?


Steve,

> About to upgrade Amavisd-new and SpamAssassin in a number of gateways
> which I administer, and I was expecting to be able to configure to 
> send "ordinary" spam (say 5.0 to 15) to one quarantine (an email 
> address on the main mail server), and Really Bad spam (15+) to a local

> address on my gateway/spamfiltering box. I had thought that there were

> features in v2.3.3 which would allow me to do this, but now that I
> come to do it I can't see how to. Of course, 
> "sa_quarantine_cutoff_level" *will* allow me to completely discard 
> high-scoring spam, but I'm reluctant to go that far. Any easy way to 
> achieve what I'm after?

1. set kill level at 15, which will quarantine mail with core above 15
to the 'really bad spam' quarantine, configurable with
$spam_quarantine_to (can be a mail address).

2. set tag2_level at 5, which will tag spam with score above 5. Rewrite
recipient address for mail above (possibly per-recipient) tag2_level by
appending address extension, e.g. '+spam':
  $recipient_delimiter = '+';
  @addr_extension_spam_maps = ('spam');

3. use Postfix virtual maps (e.g. pcre-based) to rewrite addresses of
the form
[EMAIL PROTECTED] to any address you like, e.g.:

/^(.*)\+spam@([EMAIL PROTECTED])\.example\.com$/   [EMAIL PROTECTED]

See:
  http://www.ijs.si/software/amavisd/amavisd-new-docs.html#addrext

Mark


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam for All
Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
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/
=========================================================


This e-mail has been scanned for Viruses and Content and cleared by
CommArc Cube Server


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
_______________________________________________
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/
=========================================================


This e-mail has been scanned for Viruses and Content and cleared by CommArc 
Cube Server


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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