Configure mailreaders on Linux

These instructions are explaining how to access your mailbox on the GSI MS Exchange server. Actually they are not specific to Exchange and should work with any IMAP mail server. Make sure you use encryption via SSL/TLS whenever it is available.


There are a lot of mailreaders available on Linux:

After you have successfully setup your mail reader, you may want to use it with encryption. Have a look for it here.

For the impatient

Receiving mail

  • You may access your mailbox on the MS Exchange server using the IMAP protocol.
  • The hostname of the incoming mailserver is email.gsi.de.
  • Use your Windows account and password to login. You may but do not have to prefix the user id with the Windows domain name (i.e. campus\).
  • From outside GSI you have to switch on SSL encryption (Port 993) to access your mailbox (recommended also inside GSI).

Sending mail

  • Use email.gsi.de for sending mails via SMTP: You have to enable TLS encryption (TCP port 587) and Authentication using the same credentials as for IMAP.
    info Use your Windows account and password to login. You do not have to prefix the user id with the Windows domain name (i.e. campus\)
  • You can also use smtp.gsi.de (Port 25) as your outgoing (SMTP) mail server without authentication from inside GSI.
    info smtp.gsi.de does not accept mails with @gsi.de sender addresses from outside.
  • Most of the Linux mail readers will also support sending via localhost (so called sendmail transport).

General hints

  • Alternative to external IMAP access: login to GSI with ssh and read your mail e.g. with mutt
  • Use of encryption (SSL) is also recommended for GSI internal access, otherwise your Windows password will be transmitted unencrypted!
  • The initial password you receive upon account registration will not work! You'll have to login to Windows first and change the password (e.g. use the Windows terminal servers).
  • alert If you accidently mistype your password, your account will be locked after ten login attempts.
  • Use your official GSI mail address (defaults to: Inital dot Surname @gsi.de) only. Otherwise replies won't get back to you.
  • Import the GSI SSL root certificate for email.gsi.de.

Application specific instructions

Mozilla (Thunderbird/Icedove)

The configuration of Mozilla Thunderbird and Debian Icedove mail reader are mostly identical.

If you start the mail reader for the first time, a wizard window will open. It asks you about name, e-mail address, login name and password and tries to guess the mail servers and settings automatically (click to enlarge).
Thunderbird Account Wizard

After clicking Continue you may use the button Manual config to edit the entries (e.g. setting the name of the outgoing mail server to email.gsi.de) (click to enlarge).
Thunderbird Account Wizard Manual

And there is a button for Advanced config. The latter leads to the same window you get by clicking Edit - Account Settings... in the main window (click to enlarge).
Thunderbird Account Wizard Manual

Click Ok to proceed with the setup. You should then have a new subtree in the mail reader window containing you Exchange mailfolders.

KMail

How to import the GSI Certificate:
Download the GSI Certificate from the GSI-Website: Secured Access to the GSI Webserver
Start the KDE Control Center. Under Security & Privacy select Crypto and the register SSL Signers.
Import the Certificate and activate Accept for site singning and Accept for email signing.

Evolution

There are two different methods to connect evolution with a MS Exchange Server:
  1. Since Version 2 evolution proviodes a plugin for native communication (formerly known as Ximian Connector). Unfortunately this version is not yet available for the LinuxFarm.
  2. Standard IMAP/SMTP access may be configured as well

Additional Documentation on the setup is available from Novell.

Native communication

The exchange plugin solely relies on WebDAV communication with Exchange's Outlook Web Access module and therefore works through a firewall without problems.

Configuration: Add a new mail account under Tools -> Settings... -> Mail accounts and fill out the tabs with the appropriate settings as shown here.

Additional config

To teach evolution to open URLs in Firefox, Mozilla or Konqueror you'll have change the default handlers by issuing the following commands:
gconftool-2 --set --type=string /desktop/gnome/url-handlers/http/command 'firefox %s'
gconftool-2 --set --type=string /desktop/gnome/url-handlers/https/command 'firefox %s'

You may verify this setting with this command: gnome-open https://wiki.gsi.de/view/Linux/WebHome

For Mozilla simply replace firefox with mozilla. For Konqueror use kfmclient newTab %s, which will open the link in a new tab.

This may be configured in the Gnome Control Center as well if Gnome is fully installed.

Mutt

mutt is certainly the most advanced text-mode mail reader. It was derived from elm but has much more features, especially IMAP support. For more information read the Manual.

The IMAP specific configuration is quite easy: You'll have to add the following two lines to ~/.muttrc;

set folder=imaps://userid@imap2010.gsi.de
set spoolfile=+inbox
set move=no
set imap_authenticators="LOGIN"

Additionally you may add set imap_pass...= to your .muttrc. It's understood that this is not at all recommened, anyhow if you choose to do so make sure your .muttrc is not readable to anyone but yourself.

To Access the GSI LDAP Address Book you can use lbdb. Install it and write the following into ~/.lbdb/lbdb_ldap.rc:

%ldap_server_db = (
    'gsi' => [
        'ldaps://ldap.hpc.gsi.de',
        'ou=users,ou=weblogin,ou=identities,dc=gsi,dc=de',
        'mail cn givenname sn', 
        'mail cn givenname sn',
        '${mail}',
        '${givenname} ${sn}',
        'GSI-LDAP', # Can be any comment
    ]
);

In ~/.lbdbrc you have to list m_ldap and which nicks (keys in %ldap_server_db) should be used:

METHODS='m_ldap'
LDAP_NICKS='gsi'

In ~/.muttrc" you then just have to set =set query_command="lbdbq %s".

Reading pure html mails with mutt is not an easy task because they are shown as plain text by default. To automatically view html-mails in a console browser inside mutt you have to create the file .mailcap and insert

text/html;                      lynx %s; nametemplate=%s.html
text/html;                      lynx -dump %s; nametemplate=%s.html; copiousoutput

Additionally you have to add

auto_view text/html

in your .muttrc file. Thats it! smile

Pine / Alpine

The IMAP configuration of Pine is split in two parts:

  1. Make Pine use the IMAP server for its inbox.
  2. Enable Pine to browse the mailfolders on Exchange.

Setting Pine's inbox to be the IMAP inbox

In the main menu open Setup [s] then Config [c]. Change inbox-path:
Name of Inbox server : email.gsi.de/ssl [Enter]
Folder on "email.gsi.de/ssl" to use for INBOX [inbox] : [Enter].

Turning off Kerberos Authentication for Exchange 2010

(Al)pine tries to connect to the new Exchange server using Kerberos credentials. This is not supported by the server and has to be turned off. This cannot be done via the Config dialog for now (Feb. 2012) but ~/.pinerc has to be edited directly. Locate the line disable-these-authenticators and change it to

disable-these-authenticators=GSSAPI

Configure the mailfolders on the IMAP server

Enter Setup again, then go to collectionList [l] and there choose Add Cltn [a] to add a new collection. You should fill in something like this:
Nickname  : Mailfolders on Exchange
Server    : email.de/ssl
Path      : 
View      : 

Select eXit/Save [Ctrl-x] to save your changes.

Helpful settings

Further down the SETUP CONFIGURATION page you may choose these:
  [ Folder Preferences ]
            [ ]  combined-subdirectory-display
            [ ]  combined-folder-display
            [ ]  enable-dot-folders
            [ ]  enable-incoming-folders
            [X]  enable-lame-list-mode
            [ ]  expanded-view-of-folders
            [X]  quell-empty-directories
            [X]  separate-folder-and-directory-entries
            [ ]  single-column-folder-list
            [ ]  vertical-folder-list

Pine knows folders (something that contains messages) and directories (something that contains folders). With separate-folder-and-directory-entries enabled Pine will recognize mailfolders that contain both subfolders and messages: They will appear two times in the folder list - as a folder and as a directory suffixed with a /.

Also it should be handy to check quell-empty-directories to hide all directories that contain no further folders (These are only displayed once then).

To make sure your official mail address is used you may set
customized-hdrs = From: My real name <P.Surname@gsi.de>
further down the page.

You should then also add the given email address to the alt-addresses option still further down that page.
alt-addresses = P.Surname@gsi.de
Otherwise pine will list the sender (you) instead if the recipient when displaying the Sent folder.

Using the LDAP address book

To get access to the GSI address book via LDAP you'll have to set the proper configuration. See the example for Icedove, the Debian version of Thunderbird (click to enlarge):
LDAP im Eisdoof

-- Christo - 2004 - 2021
I Attachment Action Size Date Who Comment
Thunderbird_AccountSettings.pngpng Thunderbird_AccountSettings.png manage 59 K 2011-11-04 - 16:58 ThomasRoth Thunderbird Account Settings
Thunderbird_AccountWizard.pngpng Thunderbird_AccountWizard.png manage 32 K 2011-11-04 - 17:02 ThomasRoth Thunderbird Account Wizard
Thunderbird_AccountWizard_manual.pngpng Thunderbird_AccountWizard_manual.png manage 43 K 2011-11-04 - 17:25 ThomasRoth Thunderbird Account Wizard Manual
mozilla_config.jpgjpg mozilla_config.jpg manage 68 K 2009-04-29 - 15:14 UnknownUser Mozilla Config
thunderbird_1.pngpng thunderbird_1.png manage 14 K 2016-04-11 - 12:55 StefanHaller Thunderbird Account Wizard
thunderbird_3.pngpng thunderbird_3.png manage 39 K 2018-11-08 - 11:41 StefanHaller Thunderbird Manual Settings
thunderbird_4.pngpng thunderbird_4.png manage 85 K 2018-11-08 - 11:51 StefanHaller Thunderbird Account Settings
Topic revision: r56 - 2021-06-25, AndreKerkhoff - This page was cached on 2024-11-20 - 13:20.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Legal notice | Privacy Policy (german)