Skip to content

Commit e24dec5

Browse files
committed
[illumos-gate merge]
commit 1b8ff18 15914 August 2023 hwdata update commit 2844a23 15894 svc:/network/smtp:sendmail shouldn't use mediated link
2 parents 6f616d5 + 1b8ff18 commit e24dec5

File tree

5 files changed

+978
-481
lines changed

5 files changed

+978
-481
lines changed

usr/src/cmd/sendmail/lib/smtp-sendmail

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SERVER_PID_FILE="/var/run/sendmail.pid"
3131
ALIASES_FILE="/etc/mail/aliases"
3232
SENDMAIL_CF="/etc/mail/sendmail.cf"
3333

34-
case "$1" in
34+
case "$1" in
3535
'refresh')
3636
[ -f $SERVER_PID_FILE ] && kill -1 `head -1 $SERVER_PID_FILE`
3737
;;
@@ -44,7 +44,8 @@ case "$1" in
4444
fi
4545
if [ ! -f $ALIASES_FILE.db ] && [ ! -f $ALIASES_FILE.dir ] \
4646
&& [ ! -f $ALIASES_FILE.pag ]; then
47-
/usr/sbin/newaliases
47+
# Create the aliases database
48+
$SENDMAIL -bi
4849
fi
4950
MODE="-bd"
5051
[ -f $DEFAULT_FILE ] && . $DEFAULT_FILE

0 commit comments

Comments
 (0)