Re: Sendmail and system users
I thought about doing this, but then I thought there might be some
reason that a system might need to internally send emails to these
accounts, but perhaps not. These solution seems like an easy one. I
never check these emails so this probably is the best solution for me.
I also saw some suggestion to actually alias them to an account that
doesn't exist, so they get bounced.
eg.
alias file
bin: not-a-user
sys: not-a-user
--
Anthony Tippett - Sports-IT - 425-443-3152
On Thu, Mar 17, 2005 at 10:30:57AM +1300, Steven Jones wrote:
> Put them in aliases?
>
> Ie
>
> Bin: /dev/null
> Sys: /dev/null
> etc
> ?
>
> Regards
>
> Thing
>
> -----Original Message-----
> From: Anthony Tippett [mailto:atippett@sports-it.com]
> Sent: Thursday, 17 March 2005 10:11 a.m.
> To: debian-isp@lists.debian.org
> Subject: 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
>
>
> --
> To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
Reply to: