blob: d86bb26627e982c9c69f15b147594a4189a20c1b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
PKGNAME=$1
TARGET=$2
if [ "$TARGET" = POST-INSTALL -a -z "%%MAILERCONF%%" ]; then
sed -e '/^[^#]/s/^/### smtpd: /g' -i '' /etc/mail/mailer.conf
cat >>/etc/mail/mailer.conf <<EOF
sendmail %%PREFIX%%/sbin/smtpctl
send-mail %%PREFIX%%/sbin/smtpctl
mailq %%PREFIX%%/sbin/smtpctl
makemap %%PREFIX%%/libexec/opensmtpd/makemap
newaliases %%PREFIX%%/libexec/opensmtpd/makemap
EOF
fi
exit 0
|