# ------------------------------------------------------------------
#
#    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.lmdb                              rlk,
  /etc/postfix/lists.lmdb                                rlk,

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

  /dev/tty                                               rw,
  /etc/{postfix/,}aliases.lmdb                           rlk,

  /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>
}
