How to configure electronic mail

Table of Contents

Email setup

If you have not configured anything (none or an empty .forward file in your home directory), then all your e-mails will be delivered in the Maildir folder in your local home directory. This folder will be automatically created if it is not existent.

If you do have this file, consider deleting it, replacing your filters with sieve scripts (see below).

Web

A web mail client is available at https://www.physik.uni-leipzig.de/mail.

Proposed setup

Receiving e-mails

A proper default setup for your e-mail client is to receive your e-mail via IMAP. In this case all your e-mail stays on the server and every change will appear on any e-mail clients you have configured. Use the following settings:

IMAP server mail.physik.uni-leipzig.de
IMAP port 143
Security TLS (STARTTLS)
Authentication Normal password (PLAIN)
Username your username
Password your password

Sending e-mails

Use the following SMTP settings:

server mail.physik.uni-leipzig.de
port 587
Security TLS (STARTTLS)
Authentication Normal password (PLAIN)
Username your username
Password your password

Example Configurations

Alpine

Once in the main menu, press S, then C to enter configuration. Change the following settings to use alpine from ITP workstation (make sure to replace username with your user name):

user domain itp.uni-leipzig.de
smtp server <Empty Value>
inbox path {mail/novalidate-cert/tls/user=username}inbox

Or use these settings to use alpine from any computer (make sure to replace username with your user name):

user domain itp.uni-leipzig.de
smtp server "mail.physik.uni-leipzig.de:587/user=username/tls"
inbox path {mail/novalidate-cert/ssl/user=username}inbox

Please consult the alpine manual and specifically the setup page for further reference

Mutt

# set inbox with optional password
set spoolfile="imaps://username[/password]@mail..physik.uni-leipzig.de/"                                                                                                     

# Define the = shortcut, and the entry point for the folder browser (c?)                                        
set folder="imaps://nagel@mail.physik.uni-leipzig.de/"                                        
set record="=Sent"
set postponed="=Drafts"
set trash="=Trash"

# identity
set from="firstname.lastname@itp.uni-leipzig.de"
set realname="Firstname Lastname"

# setup sending mail from ITP workstations
set smtp_url="smtp://mail.physik.uni-leipzig.de:25"

# setup sending mail from any computer
set smtp_url="smtp://username@mail.physik.uni-leipzig.de:587"
set smtp_pass="password"

When storing your password in the configurating, make sure it is appropriate to do so. Check that the file is not readable by other users on the system.

Also check the Mutt manual for further reference.

Mail filtering

Use Sieve scripts to filter email. For some documentation and examples of sieve script check http://wiki.dovecot.org/LDA/Sieve.

The web based mail client supports editing filters. Go to Settings, open the Filter tab and add new filters by clicking on the + icons in the filter lists.

Your mail client may also support editing of filter scripts (for example Thunderbird with Sieve Extension). To do this, it has to connect to the sieve server (Host mail.physik.uni-leipzig.de, Port 4190).

An example sieve script to filter out spam mails:

require "fileinto";
if header :contains "X-Spam-Flag" "YES" {
  fileinto "Spam";
}

The following example discards SpamAssassin-tagged mails with level higher than or equal to 10:

if header :contains "X-Spam-Level" "**********" {
  discard;
  stop;
}

Sieve scripts can also be edited directly by editing the file ~/.sieve/default.sieve. You will however not get very much feedback on errors in your script. Use a mail client to edit the scripts, such as the web mailer (see above) or the Sieve plugin for Thunderbird.

Please do not use the .forward file to filter email (or do anything else really) anymore. Although this still works, it is bound to mess up email delivery at some point (it can cause skipping of the normal delivery).

Alternative e-mail setup

POP3 access

The POP3 protocol can be used to retrieve mail to your Email client. However, understand that your email will NOT remain available for other access methods, specifically the webmail frontend.

POP3 server mail.physik.uni-leipzig.de
POP3 port 110
Security TLS (STARTTLS)
Authentication Normal password (PLAIN)
Username your username
Password your password

Created: 2017-02-15 Wed 16:30

Emacs 24.4.1 (Org mode 8.2.10)

Validate