#1  
Old 25th June 2009, 10:46
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 152
Thanks: 13
Thanked 14 Times in 9 Posts
Default SPAM folder

Some of the emails that were sent to me are marked as spam and not delivered. How can I tel spamassasin to put the mails on SPAM folder or to automatically create the spam folder if it does not exist?

TNX
Reply With Quote
Sponsored Links
  #2  
Old 25th June 2009, 13:35
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,494
Thanks: 813
Thanked 5,261 Times in 4,125 Posts
Default

ISPConfig uses amavisd as daemon and not spamassassin directly to scan for spam. If you want to filter emails, use the server side filters of the mail accounts.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 26th June 2009, 21:07
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 152
Thanks: 13
Thanked 14 Times in 9 Posts
Default

Tnx for the reply.

I noticed virus and spam mails get quarantined in /var/lib/amavis/virusmails

My question was regarding the quarantine emails. Does amavis support user level quarantine folders? So that each user has it's own virusmail folder.
Reply With Quote
  #4  
Old 27th June 2009, 11:11
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,494
Thanks: 813
Thanked 5,261 Times in 4,125 Posts
Default

Amavis supports also user level quarantining. For details please atke a look at the amavisd documentation, you find it inside the amavisd-new tar.gz that you can download from the website of the amavisd-new project.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 2nd July 2009, 19:54
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 152
Thanks: 13
Thanked 14 Times in 9 Posts
Default

Having trouble finding a howto on user level quarantining, can you provide with some links?
Reply With Quote
  #6  
Old 3rd July 2009, 08:19
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

i was also looking for something like that, but haven't found a thing.
i did however found a web based tool to read the quarantine folder, pretty neat ..

http://sourceforge.net/projects/mailzu/
Reply With Quote
  #7  
Old 3rd July 2009, 08:50
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 152
Thanks: 13
Thanked 14 Times in 9 Posts
Default

I found a way for mails not to be stored in the quarantine folder but to be sent to a email per domain, which is not useful in my case but it is something.

Quote:
If one is considering using a quarantine mechanism but wants a per-user (or perhaps per-subdomain) quarantines, this is not such a good idea, because quarantined files are not supposed to be directly visible or handled by recipients: to protect the privacy of the sender, some header pre-processing must be performed on a quarantined file before handing it over to a recipient.

The cleanest way to achieve per-user quarantine which may be directly accessible and/or manipulated by recipients is to turn on adding address extensions, and configure MTA and/or LDA to store such mail wherever necessary, either to a user's dedicated subfolder, or perhaps to some centralized dedicated set of malware mailboxes (per-user or perhaps per-subdomain).

If it is desired to reroute extension-tagged mail to some mailbox away from the usual LDA, the virtual alias mapping by MTA is the tool for the job. With Postfix, a pcre-based virtual map can specify for example:

/^(.*)\+spam@([^@]*)\.example\.com$/ spam-$2-box@example.com

which will collect all spam into one mailbox for each subdomain.

For the Postfix local(8) LDA, a presence of a file $HOME/.forward+spam can redirect mail for user+spam to some dedicated file. For the Postfix virtual(8) LDA, a virtual_mailbox_maps may contain entries like:

user1 mbxfile1
user1+spam mbxspamfile1
user2 mbxfile2
user2+spam mbxspamfile2

There is a script, which I have not tested yet:

split amavis's quarantine folder per domain

PHP Code:
#!/bin/sh
QUARANTINE_PATH="/var/amavis/quarantine"
LOG_FILE="/var/log/spam-mapping.log"
PER_USER_QUARANTINE_PATH="/var/amavis/per-domain-quarantine/"

for i in `find $QUARANTINE_PATH -type f | grep "spam-"`
do
    
ENVELOPE_TO=`zcat "$i" | awk '/^X-Envelope-To: .*/ {print $2}' | head -1`
    
DOMAIN=`echo $ENVELOPE_TO | awk -F @ '{sub(/</,"")};{sub(/>/,"")};{sub(/,/,"")};{print $2}'`
    
FILE=`basename $i`
    if [ ! -
"${PER_USER_QUARANTINE_PATH}${DOMAIN}" ]; then
        mkdir 
${PER_USER_QUARANTINE_PATH}${DOMAIN}
    
fi
    
if [ ! -"${PER_USER_QUARANTINE_PATH}${DOMAIN}/${FILE}" ]; then
        mv 
${i} ${PER_USER_QUARANTINE_PATH}${DOMAIN}/${FILE}
    
fi
done 
http://cms.jezek.ch/blog/archive/2009/01/


This is a cool plugin -Roundcube Amavis Spam Setting Plugin

http://www.chemlab.org/2009/04/22/ro...setting-plugin


Last edited by grungy; 3rd July 2009 at 08:52.
Reply With Quote
  #8  
Old 3rd July 2009, 09:04
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 152
Thanks: 13
Thanked 14 Times in 9 Posts
Default

Quote:
Originally Posted by Mark_NL View Post
i was also looking for something like that, but haven't found a thing.
i did however found a web based tool to read the quarantine folder, pretty neat ..

http://sourceforge.net/projects/mailzu/
Oh man this program is really cool. Will try it out.

Quote:
MailZu is a quarantine management interface for amavisd-new
( http://www.ijs.si/software/amavisd/ ).

It provides users and administrators access to email that is suspected to be
spam or contain banned contents and gives users the ability to release, request,
or delete these messages from their quarantine.

Users can access their personal quarantine by authenticating to various
pre-existent backends such as LDAP ( or Active Directory ) or any PHP PEAR
supported database.
Reply With Quote
  #9  
Old 3rd July 2009, 09:24
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

thanks for the update, i'll have a look into it as well
Reply With Quote
  #10  
Old 9th February 2010, 13:17
Nicke Nicke is offline
Member
 
Join Date: Jun 2009
Posts: 44
Thanks: 8
Thanked 14 Times in 9 Posts
 
Default

Please tell me how to configure MailZu with ispconfig 3. I cant get it to work.

Thanks!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail doesn't end up i Spam folder marra87 Server Operation 7 14th January 2009 23:43
How to deliver tagged message into SPAM folder mumblee HOWTO-Related Questions 5 9th September 2008 09:16
Ubuntu 8.04 Spamsnake - all SA scores 0.00 Thomas_Powers HOWTO-Related Questions 23 24th June 2008 17:37
Spam Folder plucchetti General 1 18th October 2006 10:55
Howto let procmail move spam to folder? oversight HOWTO-Related Questions 9 1st May 2006 15:39


All times are GMT +2. The time now is 09:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.