#!/bin/sh # Generate virtual mappings from user password file # Incoming mail: "user@domain domain/user/" >vmailbox # (The trailing slash indicates the directory is a maildir.) sed 's/:.*$//g' /etc/postfix/vmailbox # Outgoing mail: "user@domain user@domain" >vaddress sed 's/:.*$//g' /etc/postfix/vaddress # Generate Berkeley DB files postmap /etc/postfix/vaddress postmap /etc/postfix/vmailbox postmap /etc/userconfig/aliases exec /usr/sbin/postfix start-fg