# ------------------------------------------------------------------
#
#    Copyright (C) 2002-2005 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.
#
# ------------------------------------------------------------------
# Sendmail in Red Hat 7.3 got moved to /usr/sbin/sendmail.sendmail to
# support /etc/alternatives/ -- SuSE has no such mechanism. So, this
# file supports _BOTH_ sendmail's sendmail and postfix's sendmail.

abi <abi/4.0>,

include <tunables/global>

/usr/sbin/sendmail {
  include <abstractions/base>
  include <abstractions/consoles>
  include <abstractions/kerberosclient>
  include <abstractions/nameservice>
  include <abstractions/user-tmp>
  include <abstractions/postfix-common>
  include <abstractions/hosts_access>

  /usr/bin/procmail           Px,

  /etc/aliases.db             rw,
  /etc/aliases                rw,
  /etc/fstab                  r,
  /etc/ldap.conf              r,
  /etc/mail/*                 r,
  /etc/mail/statistics        rw,
  /etc/mtab                   r,
  /etc/postfix/aliases.db                  rw,
  /etc/postfix/aliases                     r,
  /etc/postfix/main.cf                     r,
  /etc/postfix/postfix-script              Px,
  /etc/postfix                             r,
  /etc/sendmail.cf            r,
  /etc/sendmail.cw            r,
  /etc/shells                 r,
  @{PROC}/loadavg             r,
  @{PROC}/net/if_inet6        r,
  /root/dead.letter           w,
  /root/.forward              rw,
  /usr/kerberos/lib/lib*.so*  mr,
  /usr/lib/postfix/{bin/,sbin/,}master     Px,
  /usr/lib/postfix/{bin/,sbin/,}smtpd      Px,
  /usr/lib/postfix            r,
  /usr/lib/postfix/{bin/,sbin/,}showq      Px,
  /usr/lib/sasl2              r,
  /usr/lib/sasl2/*            mr,
  /usr/lib/sasl               r,
  /usr/lib/sasl/*             mr,
  /usr/sbin/postfix           Px,
  /usr/sbin/postalias         Px,
  /usr/sbin/postdrop          Px,
  /usr/sbin/postqueue         Px,
  /usr/sbin/sendmail          rmix,
  /usr/sbin/sendmail.postfix  rmix,
  /usr/sbin/sendmail.sendmail rmix,
  /usr/share/icu/[0-9]*.[0-9]*/*.dat r,
  /var/lib/sendmail/statistics rwl,
  /{,var/}run/sendmail.pid       rwl,
  /{,var/}run/sendmail/control   rw,
  /{,var/}run/sm-client.pid      rwl,
  /{,var/}run/utmp               rw,
  /var/spool/clientmqueue     r,
  /var/spool/clientmqueue/*   rwl,
  /var/spool/mail             rwl,
  /var/spool/mail/*           rwl,
  /var/spool/mqueue           rwl,
  /var/spool/mqueue/*         rwl,
  /var/spool/postfix/active                r,
  /var/spool/postfix/bounce                r,
  /var/spool/postfix/corrupt               r,
  /var/spool/postfix/defer                 r,
  /var/spool/postfix/deferred              r,
  /var/spool/postfix/incoming              r,
  /var/spool/postfix/maildrop/*            lrw,
  /var/spool/postfix/maildrop              r,
  /var/spool/postfix/pid                   r,
  /var/spool/postfix/private               r,
  /var/spool/postfix/public/pickup         w,
  /var/spool/postfix/public/qmgr           w,
  /var/spool/postfix/public                r,
  /var/spool/postfix/public/showq          w,
  /var/spool/postfix                       r,
  /var/spool/postfix/saved                 r,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/usr.sbin.sendmail>
}
