Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Intercept and redirect email from a particular user

4 views
Skip to first unread message

Robin

unread,
Sep 14, 2016, 7:25:52 PM9/14/16
to
Realised I not only (partially) misread the original post but also made a
number of hidden assumptions that won't have helped!

The solution I'd use would be the "mimedefang" milter. Easy to install,
and by far the most powerful sendmail milter of all (Though I've never
actually used its mime-defanging capabilities!)

In the "sub filter_end" routine of the "mimedefang-filter" config file,
add something like:

if ($sender =~ /badboy's addy/i) {
delete_recipient('admin's addy');
add_recipient ('lawyer's addy');
add_recipient ('police addy');
... repeat for others as required, if any (yourself for testing?)
}

That's it, done and dusted!

Should all be very familiar if you're familiar with Perl, otherwise note
the slashes in the first line, they're literal as is the 'i' (ignore
case). The enclosing "'" in add_recipient() are also literal. Addies are
in the usual mail form, though probably best to leave out the usual
containing '<>'s unless/until you've got the hang of it.
0 new messages