An open API service indexing awesome lists of open source software.

https://github.com/filosottile/alum

A forwarding mail server inspired by @alum.mit.edu
https://github.com/filosottile/alum

Last synced: 7 months ago
JSON representation

A forwarding mail server inspired by @alum.mit.edu

Awesome Lists containing this project

README

          

alum
====

A forwarding mail server inspired by @alum.mit.edu

## What's in the package

* A secure Postfix instance that will ONLY forward mail, according to the aliases file
* Full opportunistic TLS support
* Automatic security updates, with reboot, and emails on error to `postmaster@alum.example.com`
* Daily Tarsnap backups of the aliases file
* A Ansible playbook to setup all of this

## Usage

* Create a Tarsnap key and put it in `tarsnap.key`
* Generate a self-signed key+certificate and put it in smtpd.pem
* Start a Ubuntu 14.04 LTS machine
* Make sure you can ssh into the machine, and that sudo is passwordless
* Create a `inventory.ini` file like this
```
[alum]
98.25.536.22
```
* Run
```
ansible-playbook -i inventory.ini \
-e domain=alum.example.com \
playbook.yml
```
Include `-e mirror=alum.example.org` if you want to support multiple domains.
* Set the DNS A record for `alum.example.com` to point to the machine, and the MX record of `alum.example.com` to `alum.example.com`

## Adding aliases

Add them like this

```
postmaster@alum.example.com me@example.com
joe@alum.example.com joe@gmail.com

```

to `/etc/postfix/virtual` and then run

```sh
# postmap /etc/postfix/virtual
# postfix reload
```