Linux Email Configuration
From Provider Notes
This article give specific recipes for configuring Linux email at Penn, plus links to general configuration information given elsewhere.
Contents |
[edit]
Penn-specific Configuration
[edit]
Kerberos
The mail.med server (and probably other ISC run mail servers) needs to authenticate Linux mail agents with Kerberos/GSSAPI. Before configuring a mail agent, first setup Kerberos.
- Install the basic Kerberos tools. (kinit, klist, and kdestroy)
- Debian package: krb5-user
- RedHat package: krb5-workstation
- Set the /etc/krb5.conf with the Penn kerberos info (in box below)
- run
kiniteach morning to refresh your ticket.
/etc/krb5.conf
[libdefaults]
default_realm = UPENN.EDU
default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc
default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc
[realms]
UPENN.EDU = {
kdc = kerberos1.upenn.edu
kdc = kerberos2.upenn.edu
kdc = kerberos3.upenn.edu
admin_server = kerberos1.upenn.edu
}
[domain_realm]
.med.upenn.edu = UPENN.EDU
# Other domain -> realm translations omitted
[edit]
Fetchmail
The following appears to work for configuring a Redhat Enterprise Linux 4.0 system to use fetchmail to get mail from the mail.med.upenn.edu server using Keberos authentication.
- Config Kerberos. (see above)
- Add the following lines to the user's .fetchmailrc file (see box below)
- Use the "kinit" command each morning to get a ticket-granting ticket from the KDC. If you fail to do this before starting up fetchmail, you will get a polite email from fetchmail itself complaining that authentication has failed and you ought to check your configuration.
- Run the "fetchmail" command each morning to start fetchmail as a daemon which checks for mail periodically. For unkown reasons, the fetchmail log contains a spurious SIGPIPE error when fetchmail runs but mail.med has no mail for it, but this does not seem to affect any actual mail.
- Run "kdestroy" and "fetchmail -q" at the end of each day to destroy any kerberos tickets and shut down the fetchmail daemon. This can usually go into .bash_logout file to happen automatically at logout.
.fetchmailrc
set daemon 900 poll mail.med.upenn.edu with proto imap auth gssapi
[edit]
Thunderbird
Thunderbird (a.k.a. Icedove) needs Kerberos to work with ISC's mail servers.
- Server Settings
- Server: mail.med.upenn.edu (or what ever yours is)
- Security Settings:
- Use secure connection: TLS
- use secure authentication: yes
[edit]
General Information
If you know any useful sites, add them here.
[edit]
See also
- Using Mozilla Thunderbird with Kerberos - Windows and Mac instructions.
