[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Sendmail and system users



I've been trying to figure out how to limit particular users from
getting non-local mail.  I'm not sure of some terminologies that I might
be trying to describe so please bare with me.

For example, users bin, sys, mail, sync, games are non-interactive user
accounts and I pretty sure I don't want them to get email from the
outside world (correct me if i'm wrong).  I'd like to some how restrict
these users.  I'm probably am not providing enough information but
here's my sendmail.mc file.

Thanks for anyone's help in advance.

define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
include(`/etc/mail/tls/starttls.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.12.3-4 2002-04-15 17:35:56 cowboy Exp
$')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
dnl #
dnl # General defines
dnl #
dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
dnl #   into this directory before writing files.
dnl #   If *all* your user accounts are under /home then use that
dnl #   instead - it will prevent any writes outside of /home !
dnl #   define(`confSAFE_FILE_ENV',             `')dnl
LOCAL_CONFIG
FEATURE(`always_add_domain')dnl
LOCAL_CONFIG
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`nouucp', `reject')dnl
MAILER_DEFINITIONS

LOCAL_CONFIG
MASQUERADE_AS()dnl
## Custom configurations below (will be preserved)
define(`ALIAS_FILE',`/etc/mail/aliases')
FEATURE(masquerade_envelope)dnl
FEATURE(virtusertable, hash -o `/etc/mail/virtusertable.db')dnl
FEATURE(genericstable, hash -o `/etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(/etc/mail/sendmail.cG)dnl
MAILER(local)dnl
MAILER(smtp)dnl
define(`confMAX_MESSAGE_SIZE', `12000000')

dnl # clamav
include(`/etc/mail/m4/clamav-milter.m4')dnl


-- 
Anthony Tippett - Sports-IT - 425-443-3152



Reply to: