Because spam filtering is based on email classifications according to specific iterative attributes, SpamAssassin may not be able to correctly detect all spam and may even incorrectly tag ham emails as spam. To improve the filtering mechanism, you can configure mail servers to provide misclassified emails to SpamAssassin in the following mailboxes:
- SPAM – Contains spam that was delivered and not tagged.
- HAM – Contains mail that was incorrectly tagged as spam.
- FORGET – Contains mail that should not be tagged as spam or ham.
SpamAssassin regularly collects and processes the mail from these training mailboxes to improve its filter mechanisms.
After setting up the training environment, complete the followings steps to configure the training settings on the Barracuda CloudGen Firewall:
- Go to CONFIGURATION > Configuration Tree > Box > Virtual Servers > your virtual server > Assigned Services > SPAM-Filter > SPAM Filter Settings.
- Click Lock.
- Next to TRAININGS OPTION, click Set or Edit.
Select the Enable Training check box and configure the following settings:
Setting Description Mailserver (IMAP)
The IP address and name of the external mail server.
Account
The user name and account name for the external mail server.
Password
The password for the mail account.
Mailbox SPAM
The path to the mailbox that collects spam which was delivered and not tagged as such. Depending on the directory structure, it may be necessary to enter a name space (for example, ~/mail/SPAM). By default, if the folder name is simply specified as SPAM, the user’s home directory (/home/
) is queried. Mailbox HAM
The path to the mailbox that collects ham mail which was incorrectly tagged as spam. Depending on the directory structure, it may be necessary to enter a name space (for example, ~/mail/HAM). By default, if the folder name is simply specified as HAM, the user’s home directory (/home/
) is queried. Mailbox FORGET
The path to the mailbox that collects mail which should not be classified as spam or ham. Depending on the directory structure, it may be necessary to enter a name space (for example, ~/mail/FORGET). By default, if the folder name is simply specified as FORGET, the user’s home directory (/home/
) is queried. Keep Mails In Mailbox
To keep emails in the mailboxes for other servers to learn from (especially when using multiple spam filter servers), select this check box.
Time (h) |
Time (min)The time of day when the spam filter collects and processes mail from the SPAM, HAM, and FORGET mailboxes to improve its filtering mechanism. For example, if you want to set the time at 4:30 am, enter the following settings:
- Time (h): 4
- Time (min): 30
- Time (h): 4
- Click OK.
- Click Send Changes and Activate.