Postfix Documentation for kerouac

This document covers the Postfix configuration for kerouac. If you're looking for something that's not covered here then please consult generic Postfix documentation which may be found on the Postfix web site. A subset of this may be found in /usr/share/doc/postfix.

SMTP AUTH

Postfix on kerouac supports SMTP AUTH on encrypted connections. To use this feature use saslpasswd to add an account for yourself to sasldb with the domain set to kerouac.projectcolo.org.uk then copy /etc/sasldb to /var/spool/postfix/etc.

Virtual domains

Virtual domains hosted by Postfix must be listed in /etc/postfix/alias_domains or one of the transport maps. For domains hosted using UUCP please see the UUCP documentation. In all cases please use smtp.projectcolo.org.uk as the primary MX unless otherwise instructed.

Virtual domains may be configured in one of two ways: either using the standard Postfix virtual table or by using a PCRE based map. The PCRE based map is most useful when you wish to rewrite one domain to another without reference to the local part of the address. To do that add a line to /etc/postfix/virtual_pcre saying:

/^(.*)@<from>/     ${1}@<to>
      

where <from> is the domain to rewrite and <to> is the rewritten domain. After editing this file run /etc/init.d/postfix reload. Otherwise entries should be added to /etc/postfix/virtual for the domain. Entries in the form:

user@domain            destination@example.com
      

rewrite mail for an individual user while entries in the form:

@domain                destination@example.com
      

will rewrite all otherwise unknown addresses in the domain to the given destination address. If no such catchall rule is provided then mail for unknown addresses will be bounced by Postfix.

After editing /etc/postfix/virtual run postmap /etc/postfix/virtual to make Postfix aware of the changes.

Backup MX services

Postfix will accept and attempt to forward mail for all domains listed in /etc/postfix/relay-domains. As with virtual domains please use smtp.projectcolo.org.uk as the MX host for the domain. After editing this file run /etc/init.d/postfix reload.


postmaster@projectcolo.org.uk