small help :)
how to give any user his own procmail which is separated from other users?
eg: user A save his spam in /home/A/mail/spam user B save his spam in /home/B/mail/sapm user C save messages filtered as virus in /home/C/mail/virus |
Taken from http://userpages.umbc.edu/~ian/procmail.html
Code:
Currently, these UMBC systems are already running Procmail. |
not sufficient!
|
Quote:
|
is there a way to automate all the work, it's too time consuming to write .procmailrc for every user, suppose I have 2000 user what o do?
|
You only have to write it once, and copy it to the home directories
Since you can use Code:
MAILDIR=$HOME/mail |
then the procmail use the specified procmailrc in order to the user name which has received the message, am I right?
|
yep
|
Quote:
|
Last reply on this thread. Statements like "Not enough". "will need you in further steps" are so ... Guys like you really strat to piss me off!
Add the .procmail file to the /etc/skel directory and it while magicly be copy to every new user dir. And if you ever happen to have 2000 users think about using a simple bash script with a for loop. |
Quote:
second, am too weak in shell scripting, do I need To add .procmail file in /etc/skel and write a shell script "both of them", or just do one of them? thanks in advance:) |
am still needing help
|
Quote:
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 09:41 PM. |