Subject: misc/4896: /etc/aliases is broken
To: None <gnats-bugs@gnats.netbsd.org>
From: NAKAJIMA Yoshihiro <nakayosh@kcn.or.jp>
List: netbsd-bugs
Date: 01/28/1998 00:28:53
>Number:         4896
>Category:       misc
>Synopsis:       /etc/aliases is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 27 07:35:00 1998
>Last-Modified:
>Originator:     NAKAJIMA Yoshihiro
>Organization:
>Release:        NetBSD-current 98/01/26
>Environment:
System: NetBSD asura 1.3B NetBSD 1.3B (ASURA) #3: Tue Jan 27 21:23:46 JST 1998 nakayosh@asura:/usr/src/sys/arch/i386/compile/ASURA i386

>Description:
	In /etc/aliases, the only lines beginning with `#' are treated
	as the comments, so the following line has no comment.

abuse:          postmaster # address to report network abuse (like spam)

>How-To-Repeat:

	% echo "" | mail abuse
	postmaster # address to report network abuse (like spam)... User unknown
	/home/nakayosh/dead.letter... Saved message in /home/nakayosh/dead.letter

>Fix:
diff -c src/etc/aliases.orig src/etc/aliases
*** src/etc/aliases.orig	Sat Jan 24 21:20:32 1998
--- src/etc/aliases	Tue Jan 27 21:38:11 1998
***************
*** 28,43 ****
  # operator:
  
  # Standard aliases defined by rfc2142
! abuse:		postmaster # address to report network abuse (like spam)
! noc:		root	   # reports of network infrastructure difficulties
! security:	root	   # address to report security problems
! hostmaster:	root	   # DNS maintainer (DNS SOA records should use this)
! usenet:		root	   # Usenet news service maintainer
! news:		usenet	   # defined as an alias for "usenet"
! webmaster:	root	   # http/web service maintainer
! www:		webmaster  # defined as an alias for "webmaster"
! uucp:		root	   # uucp service maintainer
! ftp:		root	   # ftp maintainer (especially anonymous ftp)
  
  # don't enable this.
  # decode:	/dev/null
--- 28,53 ----
  # operator:
  
  # Standard aliases defined by rfc2142
! #  address to report network abuse (like spam)
! abuse:		postmaster
! #  reports of network infrastructure difficulties
! noc:		root
! #  address to report security problems
! security:	root
! #  DNS maintainer (DNS SOA records should use this)
! hostmaster:	root
! #  Usenet news service maintainer
! usenet:		root
! #  defined as an alias for "usenet"
! news:		usenet
! #  http/web service maintainer
! webmaster:	root
! #  defined as an alias for "webmaster"
! www:		webmaster
! #  uucp service maintainer
! uucp:		root
! #  ftp maintainer (especially anonymous ftp)
! ftp:		root
  
  # don't enable this.
  # decode:	/dev/null

or modify sendmail(8).

>Audit-Trail:
>Unformatted: