#2863 [RFE] add mailAlternateAddress attribute for email differentiation
Opened 11 years ago by sbingram. Modified 7 years ago

Although the mail attribute in the standard IPA set of user attributes is multi-valued, it is sometimes useful to differentiate between a primary email address and aliases for external queries to the directory (e.g. Postfix MTA queries the directory to determine which address to use for policy application). As such, we've added the mailAlternateAddress attribute by doing the following:

  1. Add the mailRecipient objectclass (50ns-mail.ldif) to the user (per-user or default)
  2. Add the option to the CLI (user.py.patch for /usr/lib/python2.x/site-packages/ipalib/plugins/user.py) (patch included below)
  3. Recompile user.py for user.pyo and user.pyc
  4. Add an entry to the UI (user.js.patch for /usr/share/ipa/ui/user.js) (patch included below)

The patches are based on 2.1.4 as we have not yet upgraded to 2.2.


Releasing tickets from distant milestones.

In case someone comes looking for this functionality, I've been using mailAlternateAddress via a plugin for the last couple of years:

https://github.com/pdf/freeipa-user-mailalternateaddress

I published it a few months ago in response to a query on the mailing list, but forgot to update this ticket until another user contacted me about it privately.

I don't know if there's a more optimal way of distributing plugins, but posting in case it helps someone.

Metadata Update from @sbingram:
- Issue assigned to someone
- Issue set to the milestone: Future Releases

7 years ago

Login to comment on this ticket.

Metadata