post-install: | echo "===> Creating users and/or groups." if ! /usr/sbin/pw groupshow mail >/dev/null 2>&1; then echo "Creating group 'mail' with gid '6'."; /usr/sbin/pw groupadd mail -g 6; else echo "Using existing group 'mail'."; fi if ! /usr/sbin/pw groupshow maildrop >/dev/null 2>&1; then echo "Creating group 'maildrop' with gid '126'."; /usr/sbin/pw groupadd maildrop -g 126; else echo "Using existing group 'maildrop'."; fi if ! /usr/sbin/pw groupshow postfix >/dev/null 2>&1; then echo "Creating group 'postfix' with gid '125'."; /usr/sbin/pw groupadd postfix -g 125; else echo "Using existing group 'postfix'."; fi if ! /usr/sbin/pw usershow postfix >/dev/null 2>&1; then echo "Creating user 'postfix' with uid '125'."; /usr/sbin/pw useradd postfix -u 125 -g 125 -c "Postfix Mail System" -d /var/spool/postfix -s /usr/sbin/nologin; else echo "Using existing user 'postfix'."; fi install -d -g 125 -o 125 /var/spool/postfix if ! /usr/sbin/pw groupshow mail | /usr/bin/grep -qw postfix; then echo "Adding user 'postfix' to group 'mail'."; /usr/sbin/pw groupmod mail -m postfix; fi