Allow SendAs with an alias in Zimbra

Allowing an account to use an email address of a delegate is a very straightforward and simple process in Zimbra, but what if you want to allow an account to use the alias of a delegate as the "from" address?

Allow SendAs with an alias in Zimbra

This is nothing special and it's described in the Zimbra wiki, but for some reason, I keep failing to find this information so I wanted to add it in a place where I could find it and maybe it can help others as well.

Setup

First, let's create the test data, I will assume that you have something like this

Account Alias
cristian@example.com
accounting@example.com finance@example.com

Here I have cristian@example.com and accounting@example.com as separate accounts where 'cristian' would be my account and I want to be able to send as accounting@example.com and finance@example.com. To allow 'cristian' to send as 'accounting' all you need is to add 'cristian' as a delegate from the accounting account.

adding delegate to a zimbra account

After this step, the account cristian will be able to send as accounting but not as finance@example.com

Defining the allowed sending addresses

Zimbra has a special setting for this case called zimbraPrefAllowAddressForDelegatedSender. Let's look at how it looks in the initial setup:

zmprov ga accounting@example.com zimbraPrefAllowAddressForDelegatedSender
# name accounting@example.com

as you can see it's empty. You now need to add both addresses to the delegate setting, the account email as well as all aliases that you want to use for sending.

zmprov ma accounting@example.com +zimbraPrefAllowAddressForDelegatedSender accounting@example.com
zmprov ma finance@example.com +zimbraPrefAllowAddressForDelegatedSender finance@example.com

Checking the settings again

zmprov ga accounting@example.com zimbraPrefAllowAddressForDelegatedSender
# name accounting@example.com
zimbraPrefAllowAddressForDelegatedSender: accounting@example.com
zimbraPrefAllowAddressForDelegatedSender: finance@example.com

This now shows you which emails are valid for the use as the sender for delegates. It will appear in Zimbra Webmail (after a reload) and can also be set up as Persona in Outlook.

That’s it, you are done. You can now send as both accounting and finance from all accounts you have delegated access to. The only thing that remains is getting the mails in the appropriate "sent" folder as the outlook connector does not respect the "Delegate send settings" but this is a topic for a new post.