Updating announcement distribution List to all users

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
jafeha
Posts: 3
Joined: Sat Sep 13, 2014 3:32 am

Updating announcement distribution List to all users

Postby jafeha » Wed Feb 19, 2014 11:13 am

Hi everybody,
recently i had to set up a Distribution List for my Zimbra Server for an announcemnt list. The Idea was to be able to inform all our users about our maintenance plans etc. When i wanted to send another email, i already got annoyed updating this list manually and i really did not want to do this every single time again.
So i decided to write a little zmprov script to update the list and after years of beneft from the Zimbra Community i thought it would be nice to give something back. I placed it on github and here is my first draft and dirty hack of zannounce:
I">https://github.com/jafeha/zimbra_scripts
I
know there might be better way to do this or smarter code to write, but it works for me for the moment and i hope someone else finds it useful.
Tested on Zimbra FOSS 8.0.6


oczek
Posts: 7
Joined: Sat Sep 13, 2014 2:21 am

Updating announcement distribution List to all users

Postby oczek » Mon Feb 24, 2014 4:37 pm

Great :)

But rly, isnt better add to cron just one line?

for x in `/opt/zimbra/bin/zmaccts | grep domain.com | grep -v galsync | grep active | awk '{print $1}'`; do /opt/zimbra/bin/zmprov adlm all@domain.com $x; done

and always will be add only new account to the list

Return to “Administrators”

Who is online

Users browsing this forum: MSN [Bot] and 24 guests