View previous topic :: View next topic |
Author |
Message |
petrjanda Veteran
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Thu May 24, 2012 7:10 am Post subject: Postfix + amavisd + spamassassin help |
|
|
Hi,
Ive got virtual users in ldap and use the above mentioned combo to filter spam, and it works fine. I just need to move spam marked SPAM into a folder called Junk.
My current config does this:
1) Postfix receives mail
2) Postfix sends to to amavis on port 10024
3) Amavis returns mail to Postfix on port 10025
4) And Postfix delivers it to /usr/local/virtual/user@domain.com/Maildir
I need every email that has a header: X-Spam-Flag: YES
to go to a Junk folder instead of the Maildir/new _________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Fri May 25, 2012 8:50 am Post subject: |
|
|
have you considered setting up sieve rules within your IMAP server? (if it supports sieve?)
Probably the best route; set up a global set of sieve rules that move the message automagically. I use Cyrus, which does support sieve without issue - whether this is simple for you to do depends on the server you chose.
You may also be able to do something like this via procmail, though i dont and havent used it in...god, enough years that I feel old.
Doing this with amavisd-new is possible, but a bit kludgy
http://www.ijs.si/software/amavisd/amavisd-new-docs.html#quarantine
*normally* with amavis, one has a shared quarantine folder for every user, but with a bit of trickery you can provide per-user quarantine.
It's really a bit "cleaner" to do it on the IMAP side - so to that end, it'd be useful to know what IMAP server you've chosen _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
petrjanda Veteran
Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Sun May 27, 2012 1:11 am Post subject: |
|
|
Yes I managed to set it up. Changed to Dovecot-LDA (was using just virtual postfix local delivery agent) an setup global sieve rules. _________________ There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|