On 6/9/2004 1:07 PM, Bill Shupp wrote:
Eric Noel wrote:
On 6/9/2004 10:38 AM, Júlio Manuel Olivares wrote:
but wouldnt require the user to shell inside the server? what if a
user (e.g. corporate secretary) just wants to sends an email to
everyone in the company? also, i just thought just now that i create
an alias e.g. .qmail-employee, then inside it are the email addresses
of each employee but how can i prevent outside from sending to
[EMAIL PROTECTED] to prevent spam. Also, is there a way of
putting a script to populate automatically the alias so i dont have to
insert the email each time a new user is added?
I recommend you use ezmlm. Just setup a moderated list, where
moderators are the only ones that can post. Make your secretary a
moderator, and then tell her that after sending the email, she'll have
to acknowledge it to go through. It's 2 steps, but allows you to limit
who can send to the list. Also, if you use qmailadmin, the new user
screen will allow you to optionally add a new user to that list.
Regards,
Bill
Kewl, thats the best and simplest idea :)
Anyway, i was just playing around with some script using another method.
Help is accepted :)
I create an alias file
e.g
#/home/vpopmail/domains/mydomain.com/.qmail-allemail
#!/bin/bash
# begin script
# File : .qmail-allemail
# Check if coming from local domain, no script yet
# please help out hehehe
# List all emails
vpath=/home/vpopmail
usrs=`$vpath/bin/vpopbull -n -V`
for user in $usrs
do
echo -e &"${user}"
# would "Maildir/cur" make it faster?
done
# end of script