Here is the shell script that I use for this. I have put the script in
/etc/cron.hourly/ so that it runs each hour. That might be over-kill - once
a day would probably work. I call it "list-create":
#!/bin/sh
# 06/15/2010 - Scott Hughes <[email protected]>
# Initial creation of script to create an import text file of all
# users on system and then import it into an already created
# ezmlm mailing list.
echo "All user mailing list generation..."
# Generate mailing list import file
#/home/vpopmail/bin/vpopbull -n -V > ~/alluserslist.txt
# Import List into ezmlm mailing list
~vpopmail/bin/vpopbull -n -V | ezmlm-sub ~vpopmail/domains/<domain
name here>/<mailing list name here$>
exit 0
I haven't found a way (yet) to delete the mailing list.
Thanks,
Scott
-----Original Message-----
From: Michael J. Colvin [mailto:[email protected]]
Sent: Friday, April 15, 2011 3:23 PM
To: [email protected]
Subject: RE: [qmailtoaster] Re: Mailing List Question
Why can't you have your script "Rebuild" the mailing list everytime it runs.
That way, it adds new accounts and purges old ones..??? There's got to be a
way to delete all of the address on the list, and then you can use your
script to repopulate it.
Mike
-----Original Message-----
From: Scott Hughes [mailto:[email protected]]
Sent: Friday, April 15, 2011 1:18 PM
To: [email protected]
Subject: RE: [qmailtoaster] Re: Mailing List Question
Eric,
I looked at and tried the 'built-in' function and it was horrible. It didn't
work correctly at all. I cannot currently find any documentation on it
(looking in the wiki). If you (or anyone) happens to know the name and
location of said function, I'll gladly take a look at it.
Thanks,
Scott
-----Original Message-----
From: Eric Shubert [mailto:[email protected]]
Sent: Friday, April 15, 2011 3:10 PM
To: [email protected]
Subject: [qmailtoaster] Re: Mailing List Question
On 04/15/2011 12:58 PM, Scott Hughes wrote:
> Is it possible to have the mailing list software that comes with QMT to
> automatically remove a subscriber if the email bounces back to the server?
>
> Example: I have created a script that runs once a day and gathers all of
> the email addresses of my domains and if they aren't already, subscribes
> them to a mailing list. This way if I need to email all users because
> of, say, a planned outage, all the email addresses are there. However,
> as people leave the company I delete their email account but they remain
> on the mailing list.
>
> Any suggestions?
>
> Thanks,
>
> Scott
>
There's a function built in to send an email to everyone in a domain. I
don't know how well that works or not though.
I think I'd look at modifying that capability to do it for all domains
on the server. That way you shouldn't need to mess with ezmlm or
subscriptions.
--
-Eric 'shubes'
----------------------------------------------------------------------------
-----
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
If you need professional help with your setup, contact them today!
----------------------------------------------------------------------------
-----
Please visit qmailtoaster.com for the latest news, updates, and
packages.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail:
[email protected]
----------------------------------------------------------------------------
-----
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
If you need professional help with your setup, contact them today!
----------------------------------------------------------------------------
-----
Please visit qmailtoaster.com for the latest news, updates, and
packages.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail:
[email protected]
----------------------------------------------------------------------------
-----
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
If you need professional help with your setup, contact them today!
----------------------------------------------------------------------------
-----
Please visit qmailtoaster.com for the latest news, updates, and
packages.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail:
[email protected]
---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]