Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a checkbox to make rejecting all emails for a specific user easy #2846

Open
OdyX opened this issue Jun 3, 2023 · 8 comments
Open

Add a checkbox to make rejecting all emails for a specific user easy #2846

OdyX opened this issue Jun 3, 2023 · 8 comments
Labels
type/feature Introduces a new feature

Comments

@OdyX
Copy link
Contributor

OdyX commented Jun 3, 2023

Version

  • Version: 2.0

Description

In order to avoid copying the same password in multiple places, I've resorted to creating machine-specific users, to send emails from servers or laptops: let's say user@example.com is my main email, setup correctly in Mailu. I have setup a machines.example.com subdomain, with an ironfist@machines.example.com; I can setup a no-copy redirect for that email to user@example.com and allow ironfist@machines.example.com with the allow-spoofing setup, so that it can send emails From: user@example.com in my name. The usual case I have is my laptop's exim config.

So. It would be nice to avoid allowing that ironfist@machines.example.com user to be able to receive email at all. (One easy workaround is not setting up an MX record, but depending on the A/AAAA record, it could still happen).

Of course, another recourse would be to allow multiple passwords for a single user; such as device-specific passwords. GMail has some sort of setup for that; basically you can have (and generate) multiple independent addresses, limited to doing specific things: in the above scenario, if I could add a laptop-specific password for my user@example.com account, that would also work, of course.

@nextgens
Copy link
Contributor

nextgens commented Jun 3, 2023

We already have app-specific passwords, we call them tokens and you can configure them on /admin/token/list

There is no way to restrict their rights but by default they are not allowed to login on the web-interface.

@OdyX
Copy link
Contributor Author

OdyX commented Jun 4, 2023

Oh, indeed. That solves the "device-specific password" part. "send-only users" would still be useful (so not closing).

@nextgens
Copy link
Contributor

nextgens commented Jun 4, 2023

I am fairly sure that this can be achieved with the existing code and a sieve script.

That said, having the ability to limit some tokens to send-only/receive-only may be worth it

@Diman0
Copy link
Member

Diman0 commented Jun 5, 2023

You can simply disable pop3 & imap for the user access if the user may only send email. It is documented here:
https://mailu.io/2.0/webadministration.html#webadministration-add-user

@OdyX
Copy link
Contributor Author

OdyX commented Jun 5, 2023

@Diman0 sure, but an email sent to that email would still be either accepted or forwarded. I'd rather have them rejected.

@nextgens
Copy link
Contributor

nextgens commented Jun 5, 2023

Sounds like you haven't heard of rfc5429 :)

I still see some value in having permissions "per token" rather than "per user". in OAUTH2 parlance, that'd be "scope".

@Diman0 Diman0 added the type/enhancement Enhances existing functionality label Jun 5, 2023
@Diman0
Copy link
Member

Diman0 commented Jun 5, 2023

This can already be achieved via sieve script or rspamd multimap. But I can imagine some people would want to have a checkbox per user that enables/disables the ability to receive email for that account. No-reply email accounts are the primary example I can think off.

@nextgens nextgens changed the title Suggestion: allow 'send-only' users Add a checkbox to make rejecting all emails for a specific user easy Jun 5, 2023
@nextgens nextgens added type/feature Introduces a new feature and removed type/enhancement Enhances existing functionality labels Jun 5, 2023
@nextgens
Copy link
Contributor

nextgens commented Jun 8, 2023

I have implemnted the token part in #2852

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Introduces a new feature
Projects
None yet
Development

No branches or pull requests

3 participants