Open cjpit opened 2 years ago
see https://github.com/grommunio/admin-api/pull/7
Let us know if you need anything, I'm using this at the moment and its working well.
@juliaschroeder any thoughts on this?
Thanks
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.
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.
@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'
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.
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