Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #354: Chewing gum on /dev/sd3c


comp / comp.mail.sendmail / Re: Mail sent to users that don't read mail?

SubjectAuthor
* Mail sent to users that don't read mail?Knute Johnson
+- Re: Mail sent to users that don't read mail?Bjørn Mork
+- Re: Mail sent to users that don't read mail?Claus Aßmann
`- Re: Mail sent to users that don't read mail?Knute Johnson

1
Subject: Mail sent to users that don't read mail?
From: Knute Johnson
Newsgroups: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Tue, 3 Dec 2024 21:57 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: knute2024@585ranch.com (Knute Johnson)
Newsgroups: comp.mail.sendmail
Subject: Mail sent to users that don't read mail?
Date: Tue, 3 Dec 2024 15:57:41 -0600
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <vinusl$c475$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 03 Dec 2024 22:57:42 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f04650709e0ebf9c86be92030eea63cd";
logging-data="397541"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+aBYmwXYZjTdxG+DPkPbx"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:uSZDNUtCVXpdx2Yfz/Byv6TR0hE=
Content-Language: en-US
View all headers

Virtual server running Debian 12

sendmail 8.17.1.9
dovecot 2.3.19.1

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?

--

Knute Johnson

Subject: Re: Mail sent to users that don't read mail?
From: Bjørn Mork
Newsgroups: comp.mail.sendmail
Organization: m
Date: Wed, 4 Dec 2024 11:33 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bjorn@mork.no (Bjørn Mork)
Newsgroups: comp.mail.sendmail
Subject: Re: Mail sent to users that don't read mail?
Date: Wed, 04 Dec 2024 12:33:33 +0100
Organization: m
Lines: 22
Message-ID: <87mshbd6nm.fsf@miraculix.mork.no>
References: <vinusl$c475$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 04 Dec 2024 12:33:33 +0100 (CET)
Injection-Info: dont-email.me; posting-host="82051d3aead61c64291b120b124aca86";
logging-data="893642"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IIpj1fgE/rj5I8NUsspf+"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:Qoj0Ga8Y1LUzxTfEr8QINL9tpBI=
sha1:5zU5SOZUVWo800xANd2moC+0Ozk=
View all headers

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

Subject: Re: Mail sent to users that don't read mail?
From: Claus Aßmann
Newsgroups: comp.mail.sendmail
Organization: MGT Consulting
Date: Wed, 4 Dec 2024 16:29 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.quux.org!weretis.net!feeder9.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: Mail sent to users that don't read mail?
Date: Wed, 4 Dec 2024 11:29:11 -0500 (EST)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <viq00n$kpi$1@news.misty.com>
References: <vinusl$c475$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 4 Dec 2024 16:29:11 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="21298"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
View all headers

Knute Johnson wrote:

> Is there a
> way to stop those users from accepting mail? Other than just listing

Many... aliases, virtusertable, MailboxDatabase, UserDatabaseSpec, ...

> 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?

You could write a script to generate that list.

Make sure you have exceptions for system accounts which are aliased
to actual users for various purposes.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Subject: Re: Mail sent to users that don't read mail?
From: Knute Johnson
Newsgroups: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Mon, 9 Dec 2024 21:05 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: knute2024@585ranch.com (Knute Johnson)
Newsgroups: comp.mail.sendmail
Subject: Re: Mail sent to users that don't read mail?
Date: Mon, 9 Dec 2024 15:05:04 -0600
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <vj7m20$iv4h$1@dont-email.me>
References: <vinusl$c475$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 09 Dec 2024 22:05:05 +0100 (CET)
Injection-Info: dont-email.me; posting-host="37d9492e5e63c4b42b9ed099b761c297";
logging-data="621713"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MT+E5IXIDodESYjftF9KK"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:m8kfFlzf4FG6Eis9it3iChCSqu8=
Content-Language: en-US
In-Reply-To: <vinusl$c475$1@dont-email.me>
View all headers

On 12/3/24 15:57, Knute Johnson wrote:
> Virtual server running Debian 12
>
> sendmail 8.17.1.9
> dovecot 2.3.19.1
>
> 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?
>

Thanks Bjorn an Claus for you answers! Some aliases are probably the
simplest answer for now.

--

Knute Johnson

1

rocksolid light 0.9.8
clearnet tor