From 2216e2a2cd732aab7c810e0e7dbd7099ddd4e1e6 Mon Sep 17 00:00:00 2001 From: Gregory Neil Shapiro Date: Sun, 13 Aug 2000 18:38:58 +0000 Subject: [PATCH] Complete migration of aliases file to /etc/mail/aliases. The maintainers of share/examples/diskless/README.TEMPLATING and mergemaster have been contacted so those may be updated as well. --- etc/Makefile | 2 +- etc/aliases | 64 --------------------------- etc/periodic/daily/210.backup-aliases | 10 ++--- share/man/man5/periodic.conf.5 | 2 +- share/man/man8/adding_user.8 | 2 +- usr.bin/mail/mail.1 | 2 +- usr.bin/msgs/msgs.1 | 2 +- usr.sbin/adduser/adduser.8 | 2 +- usr.sbin/ctm/ctm_rmail/ctm_rmail.1 | 2 +- 9 files changed, 12 insertions(+), 76 deletions(-) delete mode 100644 etc/aliases diff --git a/etc/Makefile b/etc/Makefile index 495df28c3a63..1fdaa282aa0a 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -3,7 +3,7 @@ SUBDIR= sendmail -BIN1= aliases amd.map apmd.conf auth.conf \ +BIN1= amd.map apmd.conf auth.conf \ crontab csh.cshrc csh.login csh.logout \ dhclient.conf dm.conf fbtab ftpusers gettytab group \ hosts hosts.allow host.conf hosts.equiv hosts.lpd \ diff --git a/etc/aliases b/etc/aliases deleted file mode 100644 index 3ecde877d1dc..000000000000 --- a/etc/aliases +++ /dev/null @@ -1,64 +0,0 @@ -# $FreeBSD$ -# @(#)aliases 5.3 (Berkeley) 5/24/90 -# -# Aliases in this file will NOT be expanded in the header from -# Mail, but WILL be visible over networks. -# -# >>>>>>>>>> The program "newaliases" must be run after -# >> NOTE >> this file is updated for any changes to -# >>>>>>>>>> show through to sendmail. -# -# -# See also RFC 2142, `MAILBOX NAMES FOR COMMON SERVICES, ROLES -# AND FUNCTIONS', May 1997 - -# Pretty much everything else in this file points to "root", so -# you would do well in either reading roots mailbox or forwarding -# roots email from here. - -# root: me@my.domain - -# Basic system aliases -- these MUST be present -MAILER-DAEMON: postmaster -postmaster: root - -# General redirections for pseudo accounts -bin: root -daemon: root -games: root -man: root -news: root -nobody: root -operator: root -pop: root -system: root -toor: root -usenet: news -uucp: root -xten: root - -# Well-known aliases -- these should be filled in! -# manager: -# dumper: - -# BUSINESS-RELATED MAILBOX NAMES -# info: -# marketing: -# sales: -# support: - -# NETWORK OPERATIONS MAILBOX NAMES -abuse: root -# noc: root -security: root - -# SUPPORT MAILBOX NAMES FOR SPECIFIC INTERNET SERVICES -ftp: root -ftp-bugs: ftp -# hostmaster: root -# webmaster: root -# www: webmaster - -# msgs: "| /usr/bin/msgs -s" -# bit-bucket: /dev/null -# dev-null: bit-bucket diff --git a/etc/periodic/daily/210.backup-aliases b/etc/periodic/daily/210.backup-aliases index 8122b4c3f40f..0b5206eb9456 100755 --- a/etc/periodic/daily/210.backup-aliases +++ b/etc/periodic/daily/210.backup-aliases @@ -13,7 +13,7 @@ fi case "$daily_backup_aliases_enable" in [Yy][Ee][Ss]) - if [ -f /etc/aliases ] + if [ -f /etc/mail/aliases ] then bak=/var/backups @@ -23,15 +23,15 @@ case "$daily_backup_aliases_enable" in if [ ! -f $bak/aliases.bak ] then echo "no $bak/aliases.bak" - cp -p /etc/aliases $bak/aliases.bak + cp -p /etc/mail/aliases $bak/aliases.bak fi - if ! cmp -s $bak/aliases.bak /etc/aliases + if ! cmp -s $bak/aliases.bak /etc/mail/aliases then echo "$host aliases diffs:" - diff -u $bak/aliases.bak /etc/aliases + diff -u $bak/aliases.bak /etc/mail/aliases mv $bak/aliases.bak $bak/aliases.bak2 - cp -p /etc/aliases $bak/aliases.bak + cp -p /etc/mail/aliases $bak/aliases.bak fi fi;; esac diff --git a/share/man/man5/periodic.conf.5 b/share/man/man5/periodic.conf.5 index 6e4b6c2a1904..3b3219d9d293 100644 --- a/share/man/man5/periodic.conf.5 +++ b/share/man/man5/periodic.conf.5 @@ -170,7 +170,7 @@ file. (bool) Set to .Dq YES if you want the -.Pa /etc/aliases +.Pa /etc/mail/aliases file backed up and modifications to be displayed in your daily output. .It Ar daily_backup_distfile_enable (bool) Set to diff --git a/share/man/man8/adding_user.8 b/share/man/man8/adding_user.8 index d52f385bc88d..eed945bf8d4b 100644 --- a/share/man/man8/adding_user.8 +++ b/share/man/man8/adding_user.8 @@ -42,7 +42,7 @@ A new user must choose a login name, which must not already appear in .Pa /etc/passwd or -.Pa /etc/aliases . +.Pa /etc/mail/aliases . It must also not begin with the hyphen .Ql Fl character. diff --git a/usr.bin/mail/mail.1 b/usr.bin/mail/mail.1 index 57684560200b..cefda61d09f2 100644 --- a/usr.bin/mail/mail.1 +++ b/usr.bin/mail/mail.1 @@ -270,7 +270,7 @@ The current list of such aliases can be displayed with the command in .Nm mail . System wide distribution lists can be created by editing -.Pa /etc/aliases , +.Pa /etc/mail/aliases , see .Xr aliases 5 and diff --git a/usr.bin/msgs/msgs.1 b/usr.bin/msgs/msgs.1 index eea9e20d5a6e..4a1adb51947c 100644 --- a/usr.bin/msgs/msgs.1 +++ b/usr.bin/msgs/msgs.1 @@ -137,7 +137,7 @@ option is used for setting up the posting of messages. The line .Dl msgs: \&"\&| /usr/bin/msgs \-s\&" .Pp should be included in -.Pa /etc/aliases +.Pa /etc/mail/aliases (see .Xr newaliases 1 ) to enable posting of messages. diff --git a/usr.sbin/adduser/adduser.8 b/usr.sbin/adduser/adduser.8 index 758c5b89407b..5911aa2a26c3 100644 --- a/usr.sbin/adduser/adduser.8 +++ b/usr.sbin/adduser/adduser.8 @@ -89,7 +89,7 @@ name limit and NIS. The NIS protocol mandates an 8-character username. If you need a longer login name for e-mail addresses, you can define an alias in -.Pa /etc/aliases . +.Pa /etc/mail/aliases . .It Sy fullname Firstname and surname. The diff --git a/usr.sbin/ctm/ctm_rmail/ctm_rmail.1 b/usr.sbin/ctm/ctm_rmail/ctm_rmail.1 index df50f30d4f41..db892db81cdc 100644 --- a/usr.sbin/ctm/ctm_rmail/ctm_rmail.1 +++ b/usr.sbin/ctm/ctm_rmail/ctm_rmail.1 @@ -301,7 +301,7 @@ To create a mail alias called .Em receiver-dude that will automatically decode and assemble deltas, but not apply them, you could put the following lines in your -.Pa /etc/aliases +.Pa /etc/mail/aliases file (assuming the .Pa /ctm/tmp and