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
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.
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.
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.
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/
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. There is a script, which I have not tested yet: split amavis's quarantine folder per domain PHP: #!/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 [ ! -e "${PER_USER_QUARANTINE_PATH}${DOMAIN}" ]; then mkdir ${PER_USER_QUARANTINE_PATH}${DOMAIN} fi if [ ! -e "${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/roundcube-amavis-spam-setting-plugin