postfix.sh 290 B

123456789101112131415
  1. #!/bin/sh
  2. set -e
  3. echo "$POSTMAP_PATHS" | while IFS= read -r postmap_path; do
  4. [ -z "$postmap_path" ] || (set -x; postmap "$postmap_path")
  5. done
  6. set -x
  7. # http://www.postfix.org/postconf.5.html#alias_database
  8. # http://www.postfix.org/newaliases.1.html
  9. newaliases
  10. exec postfix start-fg