conf/86252: [PATCH] /etc/rc.d/sendmail wants to build aliases.db even if not possible

Andre Albsmeier Andre.Albsmeier at
Sat Sep 17 02:20:08 PDT 2005

>Number:         86252
>Category:       conf
>Synopsis:       [PATCH] /etc/rc.d/sendmail wants to build aliases.db even if not possible
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 17 09:20:07 GMT 2005
>Originator:     Andre Albsmeier
>Release:        FreeBSD 5.4-STABLE i386

System: FreeBSD 5.4-STABLE #0: Thu Sep 15 15:59:28 CEST 2005


sendmail tries to rebuild the aliases.db on startup even if
you don't use an alias file in your config (e.g. by using
the sendmail nullclient feature). In this case you will see
a confusing message

/etc/mail/aliases.db not present, generating

on each startup.


Build a without alias support and reboot (or
run /etc/rc.d/sendmail).


This is what I use now:

--- /etc/rc.d/sendmail.OLD	Mon Sep  5 08:31:56 2005
+++ /etc/rc.d/sendmail	Sat Sep 17 10:45:37 2005
@@ -64,7 +64,7 @@
 	    "${name}: /etc/mail/aliases newer than /etc/mail/aliases.db, regenerating"
-	else
+	elif ! egrep -q '#[[:space:]]*O[[:space:]]+AliasFile' "${required_files:-/etc/mail/}"; then
 		echo \
 	    "${name}: /etc/mail/aliases.db not present, generating"


More information about the freebsd-bugs mailing list