[Mimedefang] getting relay info in all functions?

James Ralston qralston+ml.mimedefang at andrew.cmu.edu
Sun Jul 13 03:38:01 EDT 2003

Is there a specific reason why $RelayHostname and $RelayAddr are only
available in the filter_{relay,sender,recipient} functions?

This is problematic, because I wish to configure our external mail
server as follows:

    DO virus-check mail coming in from the Internet.
    DO run spamassassin on mail coming in from the Internet.

    DO virus-check mail going out to the Internet.
    DON'T run spamassassin on mail going out to the Internet.

In order to be able to make these decisions in the (filter_begin,
filter, filter_multipart, filter_end) functions, I need access to the
relay information.

If the only reason is "because it wasn't expected that people would
want relay information in any other functions", would a patch that
made $RelayHostname and $RelayAddr available in all functions be


James Ralston, Information Technology
Software Engineering Institute
Carnegie Mellon University, Pittsburgh, PA, USA

More information about the MIMEDefang mailing list