Sujet : Re: Mail sent to users that don't read mail?
De : bjorn (at) *nospam* mork.no (Bjørn Mork)
Groupes : comp.mail.sendmailDate : 04. Dec 2024, 12:33:33
Autres entêtes
Organisation : m
Message-ID : <87mshbd6nm.fsf@miraculix.mork.no>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Knute Johnson <
knute2024@585ranch.com> writes:
I've gotten some email to some odd/system users on my server, dovecot,
smmsp, list, www-data and _apt for example. The emails are all
spam. The mail ends up creating a file in /var/mail for that user. Is
there a way to stop those users from accepting mail? Other than just
listing them in the /etc/mail/access file? All of the users have UIDs
less than mine which is 1000. Any way to restrict mail to users with
a UID less than 1000? Or any other suggestions?
I usually put system users into /etc/mail/aliases. Along with other
real/virtual accounts which aren't used for direct mailbox access.
Some of these aliases are forwarded to mail reading accounts. Others
are simply redirected to /dev/null. YMMV
You could obviously also do that with a ~/.forward file for the real
users, but my personal preference is to collect this into a single
alias db.
Bjørn