OS: UNIX in general
PACKAGE: procmail
Why
Some time ago I received a list of email addresses wich I needed to sent a bulk message to. Because I didn't had an easy solution like copy-paste and typing some easy comments, I started to look for a recipe with procmail. I found one here.
This recipe is just like so many UNIX recipes: nice, but it has to be tweaked before it's ready to serve.
dedicated user
First of all: assign this procmail rules to a dedicated UNIX user. It will prevent mixing up with procmail rules in your own account. Of course it is more professional this way :-)
Make sure that your MTA can deliver email to this user, also make sure this user can send email assigning a different user like the sendmail -f option. In sendmail, use the virtuserstable.
controling the mail list
I created three brands of procmail rules: open, semi-open and closed. Closed is a list to wich only the owner can send email to, and of course he is also the only one who can put or delete email addresses to the list.
Semi-open is a list to wich anyone on the list can send email to. But only the owner can put or delete email adresses to the list.
Open is a list to wich anyone on the list can send email to, and everyone can put or delete email adresses to the list.
easy multiplying by using $VARIABLES
Because I want to make many different lists with the same rules, I created general procmail.rc rules:
generalauto.rc for open lists;
generalmem.rc for semi-open lists;
generalman.rc for closed lists.
explaination of the $VARIABLES in mlexample.rc
The generalman.rc is controled by the mlexample.rc. Fill in the variables.
the actual list
An example can be found here
the perm list
Put on this list the owner of the emailaddress that can send messages to the list.
NB: USE OF CAPITALS IS OBLIGED BECAUSE GREP IS TESTING ONLY ON CAPITALS!
seperat directory's for each list
Every list has its own directory.
NB: The name of the directory must be exactly the same as the $LISTNAME.
HAVE FUN!
PACKAGE: procmail
Why
Some time ago I received a list of email addresses wich I needed to sent a bulk message to. Because I didn't had an easy solution like copy-paste and typing some easy comments, I started to look for a recipe with procmail. I found one here.
This recipe is just like so many UNIX recipes: nice, but it has to be tweaked before it's ready to serve.
dedicated user
First of all: assign this procmail rules to a dedicated UNIX user. It will prevent mixing up with procmail rules in your own account. Of course it is more professional this way :-)
Make sure that your MTA can deliver email to this user, also make sure this user can send email assigning a different user like the sendmail -f option. In sendmail, use the virtuserstable.
controling the mail list
I created three brands of procmail rules: open, semi-open and closed. Closed is a list to wich only the owner can send email to, and of course he is also the only one who can put or delete email addresses to the list.
Semi-open is a list to wich anyone on the list can send email to. But only the owner can put or delete email adresses to the list.
Open is a list to wich anyone on the list can send email to, and everyone can put or delete email adresses to the list.
easy multiplying by using $VARIABLES
Because I want to make many different lists with the same rules, I created general procmail.rc rules:
generalauto.rc for open lists;
generalmem.rc for semi-open lists;
generalman.rc for closed lists.
explaination of the $VARIABLES in mlexample.rc
The generalman.rc is controled by the mlexample.rc. Fill in the variables.
the actual list
An example can be found here
the perm list
Put on this list the owner of the emailaddress that can send messages to the list.
NB: USE OF CAPITALS IS OBLIGED BECAUSE GREP IS TESTING ONLY ON CAPITALS!
seperat directory's for each list
Every list has its own directory.
NB: The name of the directory must be exactly the same as the $LISTNAME.
HAVE FUN!
Reacties