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

catch all email #687

Closed
cdiaz1971 opened this issue Apr 23, 2017 · 3 comments
Closed

catch all email #687

cdiaz1971 opened this issue Apr 23, 2017 · 3 comments

Comments

@cdiaz1971
Copy link

I've see how to add new mailboxes as well as virtual aliases to point to other mailboxes. Is there a way to create a catch-all alias so anything@domain goes to one user or anythingnotmatchingexistingalias@domain goes to a user?

Thanks,

C

@dragonmantank
Copy link

dragonmantank commented May 7, 2017

I'd be interested in this as well. From what I've gathered it should be just adding a bare alias for @domain.com to a virtual user, but the SQL gets screwy.

I tried modifying the install as suggested at https://workaround.org/ispmail/wheezy/connecting-postfix-to-the-database , but then postfix started rejecting all my e-mail addresses for some reason.

EDIT

Turns out the above does work, I was just testing from outlook.com which postgrey currently is greylisting, making me think it doesn't work.

I set up aliases in group_vars/sovereign for the catchall @domain.com, and for each of my real addresses, create a new roles/mailserver/templates/etc_postfix_pgsql-email2email.cf.j2, modified roles/mailserver/tasks/postfix.yml to copy that new file up, and modified roles/mailserver/templates/etc_postfix_main.cf.j2 to match how the workaround.org site set theirs up.

Re-deployed, and the catchalls works great.

@neuhaus
Copy link
Member

neuhaus commented May 15, 2017

You may also be interested in the recipient_delimiter option of dovecot.
That way you can use something like
user+1@example.com or
user+abc@example.com or
user+microsoft@example.com

and once you start receiving spam on one particular address you know who leaked it and you can block mail sent to that address using SIEVE.

@neuhaus
Copy link
Member

neuhaus commented Sep 3, 2017

@dragonmantank if you could contribute some documentation to the Wiki here at github that'd be very helpful!

Other than that I'm closing this issue. There is nothing that's Sovereign specific with regards to catch-all.

@neuhaus neuhaus closed this as completed Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants