#!/bin/bash
# Generated by igos-build/hookseal.py from the exim recipe's
# post_install() function at build time. Do not edit inside the archive —
# edit the recipe and rebuild.
# package: exim-4.99.1
set -e
    set -e
    install -v -d -m1777 /var/mail

    # Process this package's /usr/lib/sysusers.d/exim.conf entry now
    # so the exim user/group exist before the chowns below resolve.
    # The /usr/sbin/sendmail symlink picks up setuid via the target
    # binary.
    systemd-sysusers /usr/lib/sysusers.d/exim.conf
    chown -R exim:exim /var/spool/exim
    chown root:exim /usr/sbin/exim
    # The chown above clears the setuid+setgid bits on a regular file (kernel
    # behavior, even for root) — so this hook has been shipping exim INERT on
    # every install to date. Restore mode 6755 AFTER the chown. /usr/sbin/exim
    # is the symlink; chmod follows it to the versioned binary, matching
    # do_install. Package-local twin of the L29 staging-chokepoint strip.
    chmod 6755 /usr/sbin/exim

    # Aliases + PAM config moved to do_install (hook-contract wave):
    # exim owns /etc/aliases outright — sole writer in the corpus.
