Re: Admin notifications
Dan O'Neill <[email protected]>
| Newsgroups | gmane.mail.ezmlm |
|---|---|
| Message-ID | <[email protected]> |
Here is my ugly, yet pretty effective solution. This is for a moderated
list. I looked at the -u option only allowing members to post, but
there seems to be a collision between the -u and -m (moderate) behaviors
so I modified the list/editor file.
|/var/qmail/bin/bouncesaying '5813 rejected' /var/qmail/bin/except
/bin/grep -qE '^From: .*@domain.com.*'
|/var/qmail/bin/bouncesaying '5813 rejected' /var/qmail/bin/except
/bin/grep -qE '^Return-Path: .*@domain.com.*'
These are not the best ways of accomplishing the filtering and are
subject to the following bugs:
1. grep will get confused if the email is a different encoding
(courtesy of Rick van der Zwet)
2. If the From: or Return-Path: items appear anywhere in the
body of the message and match the regex, the message will
bounce.
I'm sure there are other problems with the above as well, but they work
for me and might work for you.
dano