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

catchall usage via email aliases #6

Open
cjpit opened this issue Aug 22, 2022 · 6 comments
Open

catchall usage via email aliases #6

cjpit opened this issue Aug 22, 2022 · 6 comments
Assignees

Comments

@cjpit
Copy link

cjpit commented Aug 22, 2022

Hi there, I had a need to allow postfix catch all alias to be used, so that any unknown email addresses are sent to a particular user. The api didn't like this so I've just done up a little PR if that would be helpful?

Thanks

@cjpit
Copy link
Author

cjpit commented Aug 22, 2022

see #7

Let us know if you need anything, I'm using this at the moment and its working well.

@cjpit
Copy link
Author

cjpit commented Sep 5, 2022

@juliaschroeder any thoughts on this?

Thanks

@juliaschroeder
Copy link
Member

Sorry for the delay.
Unfortunately these kind of aliases are currently not supported by gromox, so allowing them in the api doesn't make much sense at the moment.
I will get back once the functionality is present in the core.

@cjpit
Copy link
Author

cjpit commented Nov 18, 2022

Hmm I'm not sure what you are meaning by it not being present in core, as it's a postfix alias -> it just forwards to a standard gromox mailbox. I've been using it for the last couple of months, and it works perfectly.

@cjpit
Copy link
Author

cjpit commented Nov 18, 2022

@juliaschroeder the reason that it "just works" is because grommunio just piggy backs off postfix aliases, as in the main.cf link to virtual aliases.

 cat /etc/postfix/main.cf | grep virtual_alias
#   /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
# - destinations that match $virtual_alias_domains,
#virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/grommunio-virtual-mailbox-alias-maps.cf

cat /etc/postfix/grommunio-virtual-mailbox-alias-maps.cf
user = xxxxx
password = xxxx
hosts = localhost
dbname = grommunio
query = SELECT mainname FROM aliases WHERE aliasname='%s'

@robert-scheck
Copy link
Contributor

I like the approach of adding @example.net as alias using Admin Web/API as suggested by @cjpit, because it nicely aligns with the Postfix configuration, and historically the same worked also for me in the past in Zarafa/Kopano setups even with LDAP. But whether catchalls are reflected into the web client (as from/sender addresses/identities) is another topic (but it could be helpful, too), I guesss.

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

3 participants