• Mail sent to users that don't read mail?

    From Knute Johnson@21:1/5 to All on Tue Dec 3 15:57:41 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?Q?Bj=C3=B8rn_Mork?=@21:1/5 to Knute Johnson on Wed Dec 4 12:33:33 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Knute Johnson on Wed Dec 4 11:29:11 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Knute Johnson@21:1/5 to Knute Johnson on Mon Dec 9 15:05:04 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)