HOME cs.uu.nl home education contact library calendar search UU.NL
about us research people archive services jobs

Using E-mail

How to use
Electronic Mail

at the Dept. of Computer Science


Table of contents:

IMAP and Mail Folders

Our mailservers are only reachable by the way of the IMAP protocol. IMAP enables the creation of mailboxes on the server. So the email client need not save sent, received, draft etc. emails on itself - but can use the server. Information about IMAP and our mailserver setup can be found on Our E-mail Architecture webpage.

The important thing from the user perspective to know about using IMAP is the concept of IMAP folders. All your mail is organised in folders and those folders can be located on our mailserver but also anywhere else. In the last case we speak about local folders. In local folders you can archive your mail and order it on topic, sender, etc. Local folders can be located in your homedirectory or on your local machine. On the mailserver there are a few default folders like 'INBOX', 'Sent , 'SPAM', 'Drafts', 'Templates' and 'Trash' but you can create additional ones. The folder 'INBOX' is the default location where the mailserver drops incoming new mail.

Whether to use mailfolders on the server or local folders is up to the user. Using local folders gives more freedom to spend lots of disk space (and is therefore preferred for archives) and the ability to reach the mail with other tools than IMAP. The benefit of storing mail in folders on the server is that those folders can be reached from anywhere in the world and not just via your local desktop machine at the department.

Mail Password

Note that some people are puzzled by password problems. This page is about the departments mail facility, not about Solis-mail (see below) or other stuff. At the department, accounts have a Unix password and a Windows password which are initially the same. However, if you change one of thoose the other won't go along. The importing thing to notice regarding to mail is that for using mail you need your Unix password (which can only be changed on our Unix systems (Sun/Linux)).

E-Mail Servers and Services Naming Scheme

STAFF network STUDENTS network
Q:
What is the name of the SMTP server? 1
A:
smtp.cs.uu.nl

Q:
What is the name of the IMAP(-SSL) server?
A:
imaps.cs.uu.nl (port 993)

Q:
What is my e-mail address?
A:
your-login-name@cs.uu.nl

Q:
What is my e-mail domain?
A:
cs.uu.nl
Q:
What is the name of the SMTP server? 1
A:
smtp.students.cs.uu.nl

Q:
What is the name of the IMAP-SSL server?
A:
imaps.students.cs.uu.nl (port 993)

Q:
What is my e-mail address?
A:
your-login-name@students.cs.uu.nl

Q:
What is my e-mail domain?
A:
students.cs.uu.nl
1 The SMTP server can only be used if you are directly connected to our network(s). If you are using e-mail at home and you are not using Authenticated mail (see below), you should use the SMTP server(s) of your Internet Service Provider (ISP).

Authenticated mail

In order to use Authenticated mail (see our E-mail Architecture doc for info about Authenticated mail and our setup.) in your mailclient, you should look for the place where you have configured an outgoing SMTP server to use. Besides the server to use, in programs like Thunderbird you can also specify whether you want to use a username and password for that server. Choose yes, and specify that you want to use TLS, if available. You can use authenticated mail both on the standard port (25) as on the so called delivery port (587).

You mailclient probably complains about a certificate, the first time. You can accept that certificate permanently.

Mail Clients: Using Webmail (SquirrelMail)

Webmail is the most easy way to start using mail. You don't have to configure a mailclient on a specific client machine. All you need is a webbrowser. We installed SquirrelMail for this. That's a standards-based open-source webmail package written in PHP4. You can find it at: https://mail.cs.uu.nl/webmail/ (staff) or https://mail.students.cs.uu.nl/webmail/ (students). The webserver is using SSL (https) using a certificate signed by the Utrecht University Certification Authority (CA). Your browser will probably warn you about this. You can simply ignore the browserwarnings and accept the certificate or you can add the needed root certificates to your browser. The last option is the best when your browser is on your own client machine.

More about SSL certificates and how to tell your browser about them can be found on our UU SSL certificate installation page.

Mail Clients: Using Netscape

Netscape 4.x is showing pretty bad behaviour in relation with IMAP and your saved mailbox-folders in your $HOME directory. I suggest that you DO NOT USE netscape 4.x
Have a look here to see how to configure Netscape 6.x.

Mail Clients: Using Mozilla

Mozilla is an open-source web browser, designed for standards compliance, performance and portability. It also comes with a mailclient.
Configuring Mozilla is more or less the same as how you should configure Netscape 6. So have a look here.
If you are migrating from Eudora to Mozilla, you might want to take a look at our conversion doc.

Mail Clients: Using Pine 4.x

Pine is a populair mailclient on Unix and Linux systems. Configuration is done by the way of a .pinerc file in your homedirectory. Important lines for this file in our IMAP-SSL setup are:
inbox-path={imaps.cs.uu.nl/ssl/novalidate-cert}INBOX
user-domain=cs.uu.nl
smtp-server=smtp.cs.uu.nl, smtp1.cs.uu.nl, smtp2.cs.uu.nl
nntp-server=news.cs.uu.nl
Many things in Pine can be personalized. The easiest way is to use Pine's configuration screen: from the message index screen type msc (Main Menu -> Setup -> Config).

To make starting easy, we have some pre-configured .pinerc available. Pick one of the following .pinerc files and save it to $HOME/.pinerc
STAFF network STUDENTS network
  • pinerc that uses vim for editing messages
  • pinerc that uses emacs for editing messages
  • pinerc that uses pico for editing messages, but invokes vim as the alternate editor on demand.
  • pinerc that uses vim for editing messages
  • pinerc that uses emacs for editing messages
  • pinerc that uses pico for editing messages, but invokes vim as the alternate editor on demand.

Mail Clients: Using Mutt

Note: the settings described here only work if you have Mutt 1.4i. On our Sun systems, you have. On Linux systems, mutt is probably older. I have made an rpm for RedHat 7.x systems.
Mutt is another, very advanced and configurable, mailclient for UNIX-like systems. Using it is easy: the installed system-wide defaults seem to have very reasonable settings. However, you want to define your personal IMAP identity in your $HOME/.muttrc file:

STAFF STUDENTS

using imap-ssl:

set imap_user="your_login_name_here"
set hostname=cs.uu.nl set spoolfile=imaps://imaps.cs.uu.nl/INBOX set folder="~/Mail" set certificate_file=~/.mutt.certificates

using imap-ssl:

set imap_user="your_login_name_here"
set hostname=students.cs.uu.nl set spoolfile=imaps://imaps.students.cs.uu.nl/INBOX set folder="~/Mail" set certificate_file=~/.mutt.certificates

Refer to the Mutt documentation for more detailed information on using and configuring Mutt.

Mail Clients: Using Eudora

Note: We are not completely satisfied with the stability of Eudora in combination with IMAP-SSL. Therefore we are reducing our Eudora support. Users are advised to look for something else.

If you are migrating to Mozilla, take a look at our conversion doc.

If you want to use Eudora in order tot receive and send e-mail (at the department as well as at home), make sure you have installed at least Eudora version 5.1, which is necessary for SSL. It can be found in our software depot. If you don't know how to do this, ask our helpdesk.

A detailed guide for our IMAP-SSL setup

Mail Clients: Using Outlook

Note: If you use Outlook stuff please consider OE-QuoteFix or Outlook-QuoteFix as well.

We do not support Microsoft Outlook and Outlook Express. On student machines, we don't even promise the package to be available. There are email solutions that are far less dangerous regarding virusses, worms, trojan horses, etc.

However, that doesn't mean that we just ignore Outlook. Our mailservers will always provide solutions which are compatible with recent Outlook versions. After all, Outlook is in widely use in the outside world and staff users are free to use whatever they like as a mailclient. Staff use Outlook at their own risk. They should carefully configure each version of the application, and pay extra attention to their anti virus setup and maintenance. We have checked that both Outlook and Outlook Express support our IMAP-SSL implementation. Use Google and you will find a wealth of information.

Quota (students)

Our mailserver in the students network uses diskquota. The diskquota are implemented using filesystem quota. You can inspect your quota with the quota command (see example below). You can also inspect disk usage via your emailclient. Advanced clients let you order your messages by size, to get a quick impression where your megabytes are hanging out. For webmail users, the folder size plugin is installed.

Filesystem quota systems use a soft limit and a hard limit. At the moment, the soft limit is 125 MB, the hard limit 150 MB. When you're over your soft quota limit, incoming mail will bounce. When you're over your hard quota limit or when the 'grace' period is exceeded (30 days), you can't use additional disk blocks. As a result, managing mail will become hard if you use preferences like 'move deleted mail to trash'.

As a result of the (default) 'move deleted mail to trash' setting, when a user is over quota deleting mail will fail. To solve this, one has to disable the use of the Trash folder. With SquirrelMail (webmail) do:

People where (usage > soft limit * 0.9) receive an email every night explaining their situation and disk usage. This mail arrives even when they exceeded there hard limit and all other mail is failing.

On our linux platform server, the mail disk is nfs-mounted. For most users this is not relevant but for some it may come handy, for example when they are doing filtering tricks and want to see what's going on. However, this gives also another way to inspect your disk usage, as is illustrated by the following example ( The mailpartition is mounted under /var/spool/mail/<username> ):


bellatrix:/users/hgklinge 519% ssh pclown@tux
pclown@tux's password:
eos:/users/pclown-> quota
Disk quotas for user pclown (uid 2107):
     Filesystem  blocks   quota   limit   grace   files   quota   limit grace
home.students.cs.uu.nl:/export/students
                   7498  210000  240000             717       0       0
mail.students.cs.uu.nl:/export/mail
                    264  128000  153600              64       0       0
eos:/users/pclown-> du -ks /var/spool/mail/pclown/*
4       /var/spool/mail/pclown/courierimapkeywords
4       /var/spool/mail/pclown/courierimapsubscribed
4       /var/spool/mail/pclown/courierimapuiddb
32      /var/spool/mail/pclown/cur
8       /var/spool/mail/pclown/new
4       /var/spool/mail/pclown/tmp
eos:/users/pclown-> du -ks /var/spool/mail/pclown/.??*
20      /var/spool/mail/pclown/.Drafts
24      /var/spool/mail/pclown/.Sent
16      /var/spool/mail/pclown/.SPAM
16      /var/spool/mail/pclown/.Templates
24      /var/spool/mail/pclown/.Trash
eos:/users/pclown-> exit
logout
 
Connection to tux closed.
bellatrix:/users/hgklinge 520%

Forwarding E-mail

Forwarding incoming E-mail to other addresses can be done in various ways. A simple and wide-spread method is using a .forward file. A better way is to incorporate this job in your filtering methods, for example in your .mailfilter file. That way you don't forward SPAM (see next section, and note the Wordpad warning there).

We recommend using the .mailfilter file (see also below) for mail-forwarding. At the end of your .mailfilter file, add a line like

  to "!user@some.other.domain"
To copy all your mail to user@some.other.domain, add a line like
  cc "!user@some.other.domain"
If you must, create a .forward file in your homedirectory containing one or more e-mail addresses, either seperated by comma's or by new-lines. If you want to leave a local copy of the message too, use something like this:
    your-login-name
    metoo@some.where.else
This will cause the message to be delivered to the mailbox of user your-login-name and forwarded to the address <metoo@some.where.else> as well.

Windows explorer can't rename a file to .forward. Proceed as follows :

On Unix/Linux simply type :
  echo your-login-name > .forward
  echo metoo@some.where.else >> .forward

Filtering E-mail, Vacation, Spam

For local delivery (the delivery of new mail in users' mailboxes), our mailserver uses (by default) maildrop. The actions of maildrop are guided by a $HOME/.mailfilter file. If the file does not exist, new mail is delivered in your default inbox.

There is a standard .mailfilter file (the contents is shown below in the yellow box). This file realises three features:

  1. It delivers mail identified as SPAM in an inbox called SPAM (everybody has one). Your SPAM inbox is cleaned up automagically. Spam messages older that 42 days are removed. If you have more than 3000 spam messages in your SPAM inbox, the oldest messages will be removed, unless they are younger than 7 days (the parameters may change in the future).
  2. If you want to send auto-replies (vacation messages), simply create a file
       $HOME/vacation.txt
    If this file exists, it is sent as auto-reply in response to non-spam, non-maillist messages. When you rename or remove the file, auto-replying stops.

    The old mechanism still works : .mailfilter has a switch that enables auto-replies (vacation messages).
    To enable the switch, change

       VACATION_AUTO_REPLY=0
    into
       VACATION_AUTO_REPLY=1
    and provide a auto-reply message body in
       $HOME/.vacation.msg
  3. It allows you to auto-reply to HTML mail (I am not a browser).
You can install this file either by This is the contents of the standard .mailfilter file.

# to send a vacation message in reply to mail that is not spam or bulk mail,
# simply create a file $HOME/vacation.txt (H:vacation.txt) ;
# this file is sent as the /body/ of the vacation auto reply

# To sent a message in reply to html-mail (Content-Type: text/html)
# set HTML_AUTO_REPLY=1
# Html-mail is diverted to folder 'HTML'. It requires a file
# $HOME/htmlmail.msg containing something like "I'm not a browser".
# Note: This only drops HTML-only messages, so the multipart ones are O.K.

HTML_AUTO_REPLY=0

#-----------------------------------------------------------------------

if (/^X-Spam-Flag: YES/)
{
    to "$DEFAULT/.SPAM"
}

if ( $HTML_AUTO_REPLY )
{
  if (/^Content-Type:.*text\/html/ && !/^Precedence: (bulk|list|junk)/)
  {   cc "$DEFAULT/.HTML"
      xfilter "reformail -r -t"
      to "| ( cat - htmlmail.msg) | $SENDMAIL -t"
  }
}

# the next line sends a vacation message, if applicable ;
# the contents of this file can be found here:
# http://www.cs.uu.nl/technical/services/email/using.php#filter

include "/etc/maildroprc.vacation"

# processing of .mailfilter goes on after the previous include, so
# you can put your own stuff below...

And this is the contents of the included maildroprc.vacation file which lives on the mailserver.

#
# maildroprc.vacation
#
# To be included from ~/.mailfilter via: include "/etc/maildroprc.vacation"
# NB:  We enforce spamchecking, here we don't respond to spam tagged msgs.
#      If you use our default ~/.mailfilter, spam msgs won't reach this point
#      anyway.
#
# NB csg: src in the linux sw dept stuff...

if ( !/^Precedence: (bulk|list|junk)/:h && !/^X-Spam-Flag: YES/:h )
{
    VAC_TXT=`sh -c 'test -f "$HOME/vacation.txt" && echo 1 '`

        if ( $VACATION_AUTO_REPLY || $VAC_TXT )
          exception {
            cc "|reformail -r -t | /local/src/vacation/vacation"
          }
}

Note:

Spam filtering (identifying spam) is done with spamassassin; see the documentation. Spamassassin inspects all new, incoming mail and given bonus/malus points, depending on headers, content, sender etc. An email is marked as 'spam' if the sum total exceeds a certain required_hits threshhold. In the configuration file
   $HOME/.spamassassin/user_prefs
you can set your prefered value for required_hits
   required_hits           4
or blacklist annoying spam that gets periodically
    blacklist_from *@verba-volant.net
    blacklist_from mailman-owner@milkrecords.net
If you find false negatives (spam messages not marked as spam) you can use sa-learn to teach spamassassin. Save the false negatives in a file X, and when you collected some stuff, login on the linux platform server and run sa-learn:
   sa-learn --spam --showdots --mbox X
Sa-learn now updates spamassassin's Baysian filters. There is no harm in presenting a message more than once because sa-learn remembers which messages it has seen. So if you present the same message twice, spamassassin will ignore it the second time.

Access to your maildirectory

On our Linux platform servers (i.e. tux.cs.uu.nl and tux.students.cs.uu.nl), it is possible to access your maildirectory. For most users this is not relevant but for some it may come handy, for example when they are doing filtering tricks and want to see what's going on. The mailpartition is mounted on these servers and accessable under /var/spool/mail/<username>. Students can also use this feature to check their diskusage/diskquota (see above).

Make sure not to break your local delivery.

Solis Mail

Solis Mail is the central mail service of Utrecht University.

More info about Solis Mail can be found in the cs.uu.nl page and the UU pages on Solis Mail.


valid-html401 postmaster@cs.uu.nl, $Id: using.php,v 1.36 2008/09/05 14:55:00 koos Exp $ ← Departement Informatica, Universiteit Utrecht