[Mimedefang] Question about modifying headers in filter_end
David F. Skoll
dfs at roaringpenguin.com
Tue Jul 15 20:44:00 EDT 2003
On Tue, 15 Jul 2003 jbird at micron.com wrote:
> foreach $addr ( @Recipients )
> {
> if ( $addr eq '<bogus at micron.com>' )
> {
> delete_recipient('<bogus at micron.com>');
> action_notify_sender("bogus\@micron.com was not allow to receive
> this message.\n");
> }
> }
Please don't do it this way. Instead, do the rejection in filter_recipient.
That way, you fail with a 5xx code instead of generating another mail
messages.
> This will indeed not deliver the message to bogus at micron.com. But it
> does leave that address in the To: (or Cc:) header line.
I suggest you revisit the policy. What you are trying to do sounds
unreasonable. But if you insist on doing it, you need to call
action_change_header to change the To: header (which you can read
by opening ./HEADERS)
Regards,
David.
More information about the MIMEDefang
mailing list