[Mimedefang] disable spamcheck for localhost and stream_by_domain problem

David F. Skoll dfs at roaringpenguin.com
Tue Feb 16 07:00:36 EST 2010


Marcus wrote:

> I'd like to disable spamassassin checks for all emails sent from the
> host mimedefang is running on (= localhost). But how can I distinguish
> between an email sent by localhost and an email which is resubmitted via
> localhost because of mimedefang's stream_by_domain function. Checking
> $RelayAddr for 127.0.0.1 doesn't help here.


  man mimedefang-filter

Search for PRESERVING RELAY INFORMATION

Although that man page talks about secondary MX hosts, the technique
can work for detecting locally-submitted vs. resent mail as well
if you consider 127.0.0.1 as a secondary MX.

Regards,

David.



More information about the MIMEDefang mailing list