[Mimedefang] Filtering Local Submission
David F. Skoll
dfs at roaringpenguin.com
Thu Feb 20 11:48:00 EST 2003
On Thu, 20 Feb 2003, Stefano McGhee wrote:
> It seems then that the thing to do is to add
> add_ip_validation_header(); to filter_end
You don't need to; stream_by_recipient() takes care of this.
> and perhaps
> delete_ip_validation_header(); to filter begin.
Yes, that would be a good idea.
> Also, I would need to
> reconfigure MD with the --with-ipheader argument to get that to work.
Right.
> Finally I would add code similar to
> if ($WasResent) {
> if ($RealRelayAddr ne "ip.of.secondary.mx" and
> $RealRelayAddr ne "ip.of.tertiary.mx") {
> $RelayAddr = $RealRelayAddr;
> $RelayHostname = $RealRelayHostname;
> }
> }
No; you want:
if ($WasResent) {
if ($RealRelayAddr ne "127.0.0.1") {
$RelayAddr = $RealRelayAddr;
$RelayHostname = $RealRelayHostname;
}
}
because you're only resending from localhost (in stream_by_recipient) and
not from some secondary MX host.
--
David.
More information about the MIMEDefang
mailing list