Get list of users with no forwarding address


I’m moving all my users to a new email server (company mandated move to Google). Is there a way for me to get a list of users that do not have a forwarding address?

My issue is that my list of moved users is wrong. I’ve had two users come up to me and say they haven’t been moved yet, when my spreadsheet says that they have. So I need to get a list of all users that do not have a forwarding address to find out who I missed.


Hey Gerald,

unfortunately I was not able to gather a list via udm (the opposite can be achieved quite easily with udm users/user list --filter mailForwardAddress=*) but with an ldapsearch its possible:

univention-ldapsearch "(&(!(mailForwardAddress=*))(objectClass=person))" dn

Best regards

This is awesome! Thank you so much!


1 Like