# ------------------------------------------------------------------
#
#    Copyright (C) 2002-2006 Novell/SUSE
#
#    This program is free software; you can redistribute it and/or
#    modify it under the terms of version 2 of the GNU General Public
#    License published by the Free Software Foundation.
#
# ------------------------------------------------------------------

#include <tunables/global>

profile postfix-local /usr/lib/postfix/{bin/,sbin/}local {
  #include <abstractions/base>
  #include <abstractions/bash>
  #include <abstractions/nameservice>
  #include <abstractions/user-mail>
  #include <abstractions/postfix-common>

  /usr/lib/postfix/{bin/,sbin/}local                     mr,

  /usr/bin/procmail                              Px,

  /etc/postfix/virtual.db                        r,
  /etc/postfix/lists.db                          r,

  /{usr/,}bin/bash                               mrix,
  /{usr/,}bin/date                               mrix,

  /dev/tty                                       rw,
  /etc/{postfix/,}aliases.db                     r,

  /var/spool/postfix/pid/unix.local              rwk,

  owner /var/spool/postfix/active/               r,
  owner /var/spool/postfix/active/*              rwk,
  owner /var/spool/postfix/private/{bounce,defer,flush,lmtp,rewrite} rw,
  owner /var/spool/postfix/public/{cleanup,flush} rw,

  owner /var/{,spool/}mail/* k,

  # Site-specific additions and overrides. See local/README for details.
  #include <local/postfix-local>
}
