Script .sh to extract mailing lists

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
vsparacio
Posts: 3
Joined: Mon Jan 24, 2022 3:22 pm

Script .sh to extract mailing lists

Post by vsparacio »

Hi, i tried to wrote a script to send via mail every mailing list with each member.

#!/bin/bash
/opt/zimbra/bin/zmprov gdlm malilinglist1@mymailserver.com > /tmp/list
/usr/sbin/sendmail -f "zimbra@eurosanita.it" -t "mymail@mymailserver.com" < /tmp/list

i also have the following problem. I can't send the object in the email to the recipient. Can you give me some suggestions to work on it?

Thank you very much.
Post Reply