procmail
[Top] [All Lists]

user list

1999-07-11 22:03:17
ok.. I think I got it

I came up with the following

# No mail to IHS2000
:0 i
# Line below prevents loops
* !^From.*IHSusers
* !^FROM_DAEMON
* ^TO.*IHSusers
| (formail -r -t ; cat /usr/home/mailbot/noihs.message) | $SENDMAIL -oi -t

# Mail to mytest if from staff
:0 i
# Line below prevents loops
* !^From.*mytest
* !^FROM_DAEMON
* ^TO.*mytest
* ^FROM.*staff
| formail -I"To: IHS2000 Users:;" \
                -I"Bcc: mylist(_at_)ihs2000(_dot_)com" \
                | $SENDMAIL $SENDMAILFLAGS -t

any suggestions on cleaning this up, or possible things that may cause this not to hold true and allow email to pass along to users that shouldn't?

http://www.ihs2000.com
mailto:hensj(_at_)ihs2000(_dot_)com

Henry Smith


System Administrator