How do I move spam mail to spam folder?
Q. I want to move all mails tagged as spam to "spam" folder. How do I configure procmail to move spam mail to spam folder?
A. If you have Procmail and Spamassassin installed, then you can move mails using Procmail. It is a mail delivery agent (MDA) or mail filter, a program to process incoming emails on a computer, widely used on Unix systems
Configuration: PROCMAIL MOVE SPAM TO SPAM FOLDER
First, open ~/.procmail file (/home/you/.procmail):
$ vi ~/.procmail
Next append the following config code:
# All mail tagged as spam is moved to "spam" folder.
:0:
* ^X-Spam-Status: Yes
spam
Save and close the file.
Now all email tagged as spam will move to "spam" folder.
See also:
- For more information, see Timo's procmail tips and recipes.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Configure Postfix for DNS Blackhole Lists such as dsbl.org / spamhaus.org database
- Sendmail blocking spam email id, ips with access database
- How do I find out my mail server blacklisted?
- How do I backup Thunderbird mail and profile under Linux?
- Postfix blacklist or reject an email address
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!



Recent Comments
Today ~ 32 Comments
Yesterday ~ 1 Comment
Yesterday ~ 3 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments