# This is the Smail directors file, which deals with mail for
# local users (ie, mail which is destined for a user of this system).
# It was originally generated by `smailconfig', part of the Smail package
# distributed with Debian, but it may edited by the mail system administrator.
# It was originally generated by smailconfig at Thu Oct 22 11:42:38 UTC 1998
# Please modify the above line, if you change this file by hand.
# See smail-config (5) for details of the things that can be configured here.

# aliasinclude - expand ":include:filename" addresses produced by alias files
aliasinclude:
        driver=aliasinclude,            # use this special-case driver
        nobody;                         # associate nobody user with addresses
                                        #  when mild permission violations
                                        #  are encountered
        copysecure,                     # get permissions from alias director
        copyowners,                     # get owners from alias director

# forwardinclude - expand ":include:filename" addrs produced by forward files
forwardinclude:
        driver=forwardinclude,          # use this special-case driver
        nobody;
        copysecure,                     # get perms from forwarding director
        copyowners,                     # get owners from forwarding director

# aliases - search for alias expansions stored in a database
aliases:
        driver=aliasfile,               # general-purpose aliasing director
        -nobody,                        # all addresses are associated
                                        # with nobody by default, so setting
                                        # this is not useful.
        sender_okay,                    # don't remove sender from expansions
	owner=postmaster;		# problems going to postmaster
        file=/etc/aliases,              # default: sendmail compatible
	owners=root:mail:daemon, 	# A list of permissible owners/owning
	owngroups=root:mail:daemon,	# groups for the alias file.
        modemask=002,                   # should not be globally writable
        proto=lsearch,                  # unsorted ASCII file
	# if you ever change the line above, change /usr/sbin/mkaliases, too!!!

# dotforward - expand .forward files in user home directories
dotforward:
        driver=forwardfile,             # general-purpose forwarding director
        owner=real-$user,               # problems go to the user's mailbox
        nobody,                         # use nobody user, if unsecure
        sender_okay;                    # sender never removed from expansion
        file=~/.forward,                # .forward file in home directories
        checkowner,                     # the user can own this file
        owners=root,                    # or root can own the file
        modemask=002,                   # it should not be globally writable
        caution=0-10:uucp:daemon,       # don't run things as root or daemons
        # be extra carefull of remotely accessible home directories
	unsecure=0-99:~ftp:~uucp:/tmp:/var/tmp,


# user - match users on the local host with delivery to their mailboxes
user:
	driver=user;
	transport=local

# real_user - match usernames when prefixed with the string "real-"
#
# This is useful for allowing an address which explicitly delivers to a
# user's mailbox file.  For example, errors in a .forward file expansion
# can be delivered here, or forwarding loops between multiple machines
# can be resolved by using a real-username address.
# Caution, this is not sendmail compatible :-(
real_user:
	driver=user;
	transport=local,
	prefix="real-",

# lists - expand local mailing lists stored in a list directory.
#
# Mailing lists can be created simply by creating a file in the
# /etc/smail/lists directory.  To get local error bounces sent
# to the listowner put their name in /etc/smail/lists/owner-whatever.
lists:  driver=forwardfile,
        caution,                        # flag all addresses with caution
        nobody,                         # and then associate the nobody user
        -sender_okay,                   # do remove sender from list expansions
        owner=owner-$user;              # system V sites may wish to use
                                        # o-$user, as owner-$user may be
                                        # too long for a 14-char filename.
        # map the name of the mailing list to lower case
        file=lists/${lc:user},
