Basics

Purpose

The email server receives email for @cacert.org and @lists.cacert.org addresses. It also provides users of @cacert.org with IMAPs and POP3s access to their accounts.

Physical Location

This system is located on a Debian Etch vserver on physical machine X.

Logical location

IP: 172.16.2.19

POP3/IMAP: via Tunix port forwarding associated with community.cacert.org

Applicable Documentation

  1. CommunityEmail

  2. PolicyDrafts/EmailHandling

  3. EmailAccountPolicy

  4. Communication Policy

Administration

Services

Listening services

DNS

Connected Systems

Outbound network connections

Security

Privileged Access: Daniel/Philipp Other Access: All @cacert.org users have POP3S/IMAPS/SMTP-TLS/SMTP-SSL access

Non-distribution packages

dkim-milter - installed from deb-src - copied from lists.cacert.org

Risk assessments on critical packages

Common Tasks

Adding Users

  1. Create the user in the database cacertusers - table users

  2. manually create the directory mkdir -p /home/user/Maildir

  3. chown -R user:user /home/user

Aliases

There are two types of aliases.

First type is ones that are never sent from. e.g. postmaster@cacert.org. All these aliases are in /etc/aliases. Don't forget to run postalias /etc/aliases after any changes.

For aliases for which email is sent, e.g. pr@cacert.org, the alias is recorded in the aliases table on the cacertusers database. This is so the designated person, and only the designated person can send email under this role.

Critical Configuration items

/etc/dovecot/dovecot.conf

Main dovecot configuration defining the authentication for IMAP/POP3 and SMTPS

Dovecot authentication

/etc/dovecot/dovecot.conf refers to pam mail.Pam mail is defined /etc/pam.d/mail. System users are defined by NSS which is a combination of /etc/password (for root and non-imap/pop users) and /etc/libnss-mysql*.

There is a special master password so webmail can do the authentication for dovecot using certificates (still in progress 20080713). This is defined in /etc/dovecot/dovecot-sql-masterpassword-webmail.conf. This special password is restricted to the IP of Community.

/etc/postfix/*

Postfix configuration

/etc/mysql/*cnf

Mysql passwords

/home/{username}/Maildir

Where email is stored.

Changes

Planned

main.cf is a mess

Probably because it was deployed against design. Needs a cleanup.

Blocking @cacert.org emails that come through the front door

This is going to be because of people not using the AUTH SMTP sending mechanism. A return path of returns@cacert.org will be allowed to correspond to other system generated email services. (sender_restrictions)

password brute force attempts

Something like fail2ban on the primary host.

Logging

Need to centralise this and put something like mailgraph on it

X509 Authentication

Daniel is working on dovecot patches.

postfix also needs work - cert authentication there is more server orientated rather than user submission. (unstarted - hope to reuse dovecot work).

Certificate based relay for community and lists

So system messages aren't lost. Community user emails are sent via authenticated 465 so this doesn't matter

Direct internet

Ready system for direct internet connection without Tunix. It only 1/2 done is due to rushed install without a clear final plan.

DKIM

Signing and verifying

There are two instances running so it needs a cleanout of /usr/local/

SPF

MANAGESIEVE

This isn't a standard debian package and requires hacks to work.

Changelog

2008-08-17 - Changed to use dovecot local delivery - mailbox_command=/usr/lib/dovecot/deliver in postfix's main.cf


CategorySystems

CAcert Wiki: SystemAdministration/Systems/Email (last edited 2008-08-19 14:50:59 by DanielBlack)