
54 Chapter 1 Mail Service Setup
Things to note:
• Cyradm is a limited shell: It supports shell-style redirection, but does not understand
pipes.
• Cyradm can be used interactively or be scripted, but Perl scripting with
Cyrus::IMAP::Admin will be more flexible.
• All spaces in file or directory names must be escaped with a “\” just as you would in a
shell.
For a complete list of commands for cyradm, consult its man page via the Terminal by
entering:
man cyradm
Sieve Scripting Support
Mac OS X Server supports Sieve scripting for mail processing. Sieve is an Internet
standard mail filtering language for server side filtering. Sieve scripts interact with
incoming mail before final delivery.
Sieve acts much like the “rules” in various email programs to sort or process mail based
on user-defined criteria. In fact, some email clients use Sieve for client-side email
processing. Sieve can provide such functions as vacation notifications, message sorting,
mail forwarding, among other things.
Sieve scripts are kept for each user on the mail server at:
/usr/sieve/<first letter of username>/<user>
The directory is owned by the mail service, so users normally don’t have access to it,
and can’t put their scripts there for mail processing. For security purposes, users and
administrators upload their scripts to a Sieve process (timsieved) which transports the
scripts to the mail process for use. There are various ways of getting the scripts to
timsieved: Perl shell scripts (“sieveshell”), web mail plugins (“avelsieve”), and even some
email clients.
Enabling Sieve Support
In order for Sieve to function, you must enable its communications port. Sieve has the
vacation extension added by default. All scripts must be placed in the central script
repository at /usr/sieve/, and Sieve scripts cannot be used to process mail for email
aliases set up in Workgroup Manager; you must use Postfix-style aliases.
To enable Sieve support:
1 Add the following entry in /etc/services/
sieve 2000/tcp #Sieve mail filtering
2 Reload the mail service.
Comentários a estes Manuais