Virtual mail domains and users in plain files

Table of Contents

Introduction
Configuration
Usage

Usage

by ross at 11:33:16 on April 27, 2017

Installation of eximpw

Now, with Exim and Dovecot installed and configured, all you need is an utility to manage the configuration files.

Download  eximpw:

# cd /usr/local/bin
# fetch https://daemon-notes.com/downloads/assets/scripts/eximpw
# chmod a+x eximpw

Using eximpw

Run eximpw without arguments to get the list of commands.

Typical usage:

# eximpw example.com domainadd
# eximpw example.com useradd ross
# eximpw example.com userpass ross

The configuration

Refer to the first page for the list of files. Here are some examples:

— Make Exim advertize itself as mx.example.com when receiving mail for example.com (add to exim.domain2mx):

example.com: mx.example.com

— We have ip 1.2.3.4 on our network interface, make Exim send outgoing mail for example.com throug it (add to exim.domain2ip):

example.com: 1.2.3.4

— Make Exim advertize itself as mx.example.com when talked to on 1.2.3.4 (add to exim.ip2mx):

1.2.3.4: mx.example.com

— Make [email protected] an alias for [email protected] (add to example.com/aliases):

root: [email protected]

— Set ross' quota to 2 gigabytes (add to example.com/quota):

ross: 2G
Comments