Hi All,
I configured postfix , Dovecot with spammassassin. Everything is working fine.
I need all spam tagged mails has to move a particular mail id,,
Please give a idea, Anyone did before ?
Thanks in Advance
Sivakumar
Hi All,
I configured postfix , Dovecot with spammassassin. Everything is working fine.
I need all spam tagged mails has to move a particular mail id,,
Please give a idea, Anyone did before ?
Thanks in Advance
Sivakumar
Configure Sieve with dovecot, then make a file in users folder (depends on what folder format you are using e.g .Maildir etc)
touch /home/obama/.dovecot.sieve
vi /etc/obama/.dovecot.sieve and paste the following rule.
This rule will redirect all spams to barak Obama at white houseCode:if header :contains "Subject" "***SPAM***" { redirect "barakobama@whitehouse.com"; }
for more information about sieve visit http://tools.ietf.org/html/rfc3028
Thanks a lot
I will try & erply soon
Hi ,
Thanks for your reply. I make file .dovecot.sieve in /var/spool/mail directory. I made the following lines
if header :contains "Subject" "***SPAM***" {
redirect "siva@exam.com";
}
& added the lines in /etc/dovecot.com on LTA section
mail_plugins = cmusieve
log_path = /var/log/dovecot-local-deliver.log
auth_socket_path = /usr/local/var/run/dovecot-auth-master
I got succcessful restart for dovecot.
My problem is , when i sent a mail root@example.com containg the subject ****spam**** , it is working fine.
When i am sending to other users, the mail not is forwarding to siva@example.com
Please suggest any further steps required..
Thanks & Regards
Sivakumar E
can you paste the maillogs?
Bookmarks