Computer Support.

Contact.

ECE Department
Duke University
Box 90291
Durham, NC 27708

(919)-660-5252
(919)-660-5293 FAX

ECE Computer Support.

SmartSieve

What is SmartSieve?

SmartSieve is a web-based tool for editing Sieve scripts. Sieve scripts are used by the ECE mail server to filter email before it reaches your mail folders. SmartSieve can be used to automatically generate scripts which take care of certain mail filtering tasks, such as vacation messages, spam filtering, and forwarding.

Logging in to SmartSieve: Spam Filtering

Spam filtering will allow you to take advantage of ECE's SpamAssassin software. All email passing through the ECE mail server is scanned by SpamAssassin and given a spam "score" based on SpamAssassin's knowledge of what spam messages look like. Messages with a spam score above a certain level are marked as spam in the message headers. You can configure SmartSieve to automatically send these messages to a special spam folder rather than your INBOX. Since it's possible that a few legitimate emails might be marked as spam, it's best to check your spam folder a few times a week. You can then delete all the spam messages at once.

To turn on spam filtering:

Vacation Message

What is a vacation message? It's a way to send an automatic reply to people who send you email. If you're going on a holiday or travelling to a conference and will be unable to check your email frequently (or at all), a vacation message is a way to let people know that their email was delivered, but that you won't be able to respond immediately.

To create a vacation message:

To disable a vacation message:

Email Fowarding

What is email forwarding? Like postal mail forwarding, email forwarding allows you to automatically send mail from one place to another. For example, if you prefer to use your Duke email account as your primary account, you can forward your ECE email to your Duke address and read all of your emails in one place.

To forward your ECE email to another address or change or remove an existing forward:

Advanced uses of Sieve

If you feel comfortable creating your own sieve scripts, you can do so via the SmartSieve interface. Writing your own sieve scripts gives you a great deal of control over how your email is handled. Note that it is possible to lose emails when writing your own scripts; be sure that you know what you're doing! Note also that custom sieve scripts cannot be edited automatically via the gui; for example, to create a vacation message in a custom script, you must add the vacation settings to the custom script manually, not by clicking on the "Vacation Settings" link. Only the default "smartsieve" script can have spam filtering and vacation messages added automatically.

Sieve script examples:

This Sieve script will file emails from personone@duke.edu into a mail folder called "PersonOne", file emails with the subject "Exciting Mailing List" into a mail folder called "Exciting", and banish spam emails to the "spam" mail folder. These mail folders should be created before the script is activated; otherwise, the emails will just go to the main Inbox folder.

require "fileinto";

if header :contains "from" "personone@duke.edu" {
fileinto "PersonOne";
}

elsif header :contains "subject" "Exciting Mailing List" {
fileinto "Exciting";
}

elsif header :contains ["X-Spam-Flag", "X-PMX-Spam-Level"] ["YES", "Black"] {
fileinto "spam";
}

This Sieve script will filter spam into the "spam" folder, and send a "vacation" message to anyone who sends mail to "user@ee.duke.edu" or "user@ece.duke.edu". The script will wait 7 days before sending another "vacation" message to someone who has already received one.

require "fileinto";
require "vacation";

if header :contains ["X-Spam-Flag", "X-PMX-Spam-Level"] ["YES", "Black"] {
fileinto "spam";
}

vacation :days 7 :addresses ["user@ee.duke.edu", "user@ece.duke.edu"]
"I will be away from my email until July 8th. If this is a matter
of urgent business, please contact Fred Smith (fsmith@ee.duke.edu).";