Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix + amavisd + spamassassin help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Thu May 24, 2012 7:10 am    Post subject: Postfix + amavisd + spamassassin help Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Thu May 24, 2012 1:49 pm    Post subject: Reply with quote

See the postfix link in my sig. cach0rr0 is very knowledgeable about such things. See also this thread: https://forums.gentoo.org/viewtopic-t-872027-highlight-.html?sid=82817b8a932f00e19fbebb1ab605496f
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri May 25, 2012 8:50 am    Post subject: Reply with quote

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
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Sun May 27, 2012 1:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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