Add email address for all users on server
We recently upgraded one of our servers to Yosemite Server from Mavericks, while everything migrated over basically with out any problems for what ever reason it cleared out all the email address's for users in the open directory database.
Is there a way to quickly add back in the email address username@mydomain.com to each open directory account on the server, while it would be possible to do each one by hand we have over 4,000 users on the server and each needs to be getting mail on multiple domains on hosted by the server.