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

qmail-migration: Clarification on 'Workaround to keep “-” delimiter catchall' #569

Open
rrrnld opened this issue Sep 4, 2024 · 1 comment

Comments

@rrrnld
Copy link

rrrnld commented Sep 4, 2024

I just received a mail regarding my qmail setup, that includes two different dash-delimited catchall mails. uberspace migration qmail check helpfully pointed me to those, and very soon I found https://manual.uberspace.de/migration/qmail/reports/config-is-catchall/#workaround-to-keep-delimiter-catchall, which was really nice.

I have several questions and remarks about the suggested workaround.

First, there seems to be an error in the suggested script, in that reject; is not valid (the webmailer raised the issue when i was copy-and-pasting it there). It looks like reject needs some argument detailing the rejection reason.

Second, say I have a .qmail-someaddress-default (containing only the line ./users/someaddress/), whouldn't the closer sieve script contain redirect "someaddress@whateverdomain"; when matching the catchall address? The way I understand it the current workaround sets up a new address that will have to be set up separately in the e-mail address.

This is the script I came up with (for two addresses):

# cat users/catchall-mailbox/sieve/forward-catchall.sieve 
reject require ["fileinto", "reject"];
if address :matches "to" "address1-*@*" {
  redirect "[email protected]";
  stop;
} 
if address :matches "to" "address2-*@*" {
  redirect "[email protected]";
  stop;
}

reject "User email address rejected";

Does that make sense? Should I open a PR to update the script (and description) accordingly?

@rrrnld
Copy link
Author

rrrnld commented Sep 5, 2024

Related PR: #555

@rrrnld rrrnld changed the title Clarification on 'Workaround to keep “-” delimiter catchall' qmail-migration: Clarification on 'Workaround to keep “-” delimiter catchall' Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant