Learning Spam With SpamAssassin And All Of Your ISPConfig Clients [ISPConfig 3]
|
Submitted by bswinnerton (Contact Author) (Forums) on Thu, 2010-03-25 12:22. :: Anti-Spam/Virus | Debian | ISPConfig | Ubuntu
Learning Spam With SpamAssassin And All Of Your ISPConfig Clients [ISPConfig 3]This is a quick way of learning spam from all of your ISPConfig clients by running a quick and simple command. Please note that this is for ISPConfig 3, not 2. You can start out by creating a new file in /bin. For example sa_learn. nano /bin/sa_learn Now once you are in that file you can paste the following: #!/bin/bash /usr/bin/sa-learn --spam /var/vmail/*/*/.Junk/*/* The first part to this code is the directory of the SpamAssassin learning script, when putting in the --spam it learns it as spam, and --ham learns it has "good" messages. The second part to this code is the directory to your clients' spam folders. So once this is all done, you can learn all spam in your customers' spam folders. After you have saved that file by clicking ctrl x, you will want to make it executable by doing the following command: chmod o+x /bin/sa_learn And then now from the command prompt you can simply type sa_learn and it will learn spam and ham!
|



Recent comments
22 hours 32 min ago
1 day 3 hours ago
1 day 4 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 15 hours ago
2 days 4 hours ago
2 days 5 hours ago