1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/mail/exim/pkg-install
Sheldon Hearn 70b4918cf0 1) Update exiscan-acl patch to -09:
Improved clamd support.
   New FAQ/example documentation.

2) Enable wildlsearch lookups by default and add new
   WITHOUT_WILDLSEARCH knob for disabling them.

3) Issue a fat warning if 127.0.0.1 is found in the relay_from_hosts
   hostlist of an existing configure file on upgrade.  This is important
   for IPv6 users and doesn't hurt IPv4-only users.

4) Attempt local deliveries as the owner of the mailbox (still group
   mail) and don't fail if the existing mailbox permissions are narrower
   than those with which we would have created it.  This works around
   pw(8) creating mailboxes with 0600 permission (instead of 0660).

Don't advertise Exim's configuration syntax as simple any more.  This
implies that you could leverage Exim's power with just a little reading,
which is not the case.

Bump PORTREVISION accordingly.

Submitted by:	Oliver Eikemeier <eikemeier@fillmore-labs.com> (1)
PR:		ports/52952 (2)
Submitted by:	Tim Bishop <tim@bishnet.net> (2)
Reported by:	Yann Golanski <yann@kierun.org> (3)
Reported by:	"Simon L. Nielsen" <simon@nitro.dk> (4)
2003-06-13 13:20:56 +00:00

58 lines
1.8 KiB
Bash

#!/bin/sh
#
# Since FreeBSD does not supply a user for running an MTA in a sandbox
# by default, use user 'exim', adding it if it does not exist. Even
# if FreeBSD supplied an MTA user, it's neglected to do so for so long
# that every sandboxed MTA under the sun uses its own user, so user
# 'exim' should probably be used forever.
#
# Modern FreeBSD systems already have a group mail.
#
# $FreeBSD$
#
PKG_PREFIX=${PKG_PREFIX:=/usr/local}
user=mailnull
group=mail
if [ "$2" = "PRE-INSTALL" ]; then
if ! /usr/bin/id ${user} > /dev/null; then
echo "Exim requires user ${user}. Please update your system." 1>&2
exit 1
fi
if ! /usr/bin/grep -q "^${group}:" < /etc/group; then
echo "Exim requires group ${group}. Please update your system." 1>&2
exit 1
fi
fi
if [ "$2" = "POST-INSTALL" ]; then
cf=$PKG_PREFIX/etc/exim/configure
if [ -e $cf ]; then
if grep -q '^[^#]*hostlist.*relay_from_hosts.*=.*127.0.0.1' $cf
then
echo
echo "============================================================"
echo " !!! WARNING !!! "
echo "============================================================"
echo
echo "Existing configure file $cf"
echo "contains 127.0.0.1 in relay_from_hosts hostlist!"
echo "Use of localhost instead of 127.0.0.1 is highly recommended."
echo
echo "============================================================"
echo " !!! WARNING !!! "
echo "============================================================"
fi
fi
fi
# This is naughty, since the directory we create won't be removed along
# with Exim. However, logfiles should probably stick around after Exim
# is removed, until the administrator is sure he doesn't want them
# any more.
#
mkdir -p /var/log/exim
chown ${user}:${group} /var/log/exim