Configuring Email Filter Rules in Virtualmin for Small Organizations

Learn how to set up advanced email filter rules with Virtualmin to block spam, prevent phishing, and enhance your organization's security.

Why are email filter rules important?

Emails are the heart of communication in small organizations. However, with the increasing flood of spam, phishing, and malware, effective email protection becomes essential. Virtualmin provides you with powerful tools to create advanced filter rules and keep your email communication secure.

Basics of email filters in Virtualmin

Before diving into complex rules, you should understand the basic filter options in Virtualmin. These can be found under Email → Email Filters for each domain. Here, you can define rules based on sender, recipient, subject, message body, and more.

Types of filter actions

  • Delete message: Immediately remove unwanted emails.
  • Move to folder: Sort emails into specific folders like "Spam" or "Important".
  • Forward: Send emails to another address.
  • Auto-reply: Send a predefined response (e.g., for out-of-office notices).

Creating advanced filter rules

For small organizations, simple rules are often not enough. With Virtualmin, you can combine complex conditions to specifically fend off threats.

Example 1: Block phishing emails with fake senders

Phishing attacks often use deceptively real sender addresses. Create a rule that moves emails with certain sender domains not belonging to your organization into quarantine.

  • Condition: "Sender does not contain @yourcompany.com" AND "Subject contains 'Invoice' or 'Urgent'"
  • Action: Move message to folder "Quarantine"

Example 2: Filter spam with specific keywords

Common spam terms like "win prize", "free", or "special offer" can be reliably sorted out.

  • Condition: "Subject or body contains any of the words: win prize, free, special offer"
  • Action: Delete message

Example 3: Prioritize emails from important contacts

To ensure important emails don't end up in the spam folder, you can create exception rules.

  • Condition: "Sender is in whitelist" (e.g., client@partner.com)
  • Action: Move to folder "Inbox" (if spam filter would have sorted them elsewhere)

Tips for small organizations

  • Regular review: Check quarantine folders to minimize false alarms.
  • Train employees: Sensitize your team to phishing attempts so they report suspicious emails.
  • Backups: Ensure important emails are not accidentally deleted – set up a backup rule that sends copies to an external address.

With Virtualmin, you have full control over your email filters. If you are not yet using a hosting package with Virtualmin, check out our Web Hosting Packages – they include Virtualmin and are ideal for small organizations.