[Mailman-Users] using procmail to filter and respond to members

Larry Guest larry at guestfamily.com
Fri Jun 21 01:01:12 CEST 2002


I have setup mailman to use procmail by using the very cool FAQ on it, it
works great.
I am filtering mail based on the domain in the "From" header.  If its the
right domain the mail may be posted to the list, if not it gets dumped into
/dev/null.

What I want to do is not have it go to /dev/null but to send a response back
to the originator saying that he does not have permission to post to the
xxxx list.  Mailman does a very nice job of this by itself, but I am using
procmail to check the mail first.

Does anyone know how to direct the mail from procmail back into mailman to
generate this mail and place the right list name and mailman sender into the
mail???


Here is the setting I have right now to get procmail to work.

/etc/aliases
 test-list:              "|/usr/bin/procmail -m MAILMAN=test-list
/home/mailman/procmailrc"
 test-list-admin:         "|/home/mailman/mail/wrapper mailowner test-list"
 test-list-request:       "|/home/mailman/mail/wrapper mailcmd test-list"
 test-list-owner:         test-list-admin



procmailrc file
 :0
 * !^From:.*@mydomain.net
 /dev/null

 #this rule will take anything that passes the above rule and pipe it
 #to the mailman program so it can be posted to the correct list.
 :0
 |/home/mailman/mail/wrapper post ${MAILMAN}


Thanks!!






More information about the Mailman-Users mailing list