# # Sample config for checking public messages. # loadplugin PublicCheck::To /path/to/file/PublicCheck/To.pm # NOTE: this file uses other modules, so, you may have to set PERL5LIB OR # look at PublicCheck/To.pm and uncomment/modify the 'use lib' # # You could also just combine them all into 1 file, but then the different storage # modules wouldn't work. # The storage implementation, this NEEDS to come before # any configuration directives targeted toward it. #public_store_module PublicCheck::FlatStore public_store_module PublicCheck::MidStoreSql public_sql_password mysql_pass public_sql_username mysql_user public_sql_dsn DBI:mysql:database=spamdatabase;host=mysql.example.com #public_sql_statement SELECT count(message_id) FROM mid_history WHERE message_id=? AND username=? #public_sql_strict_statement SELECT count(message_id) FROM mid_history WHERE message_id=? AND username=? AND email=? header PUBLIC_ADDRESS eval:public_check_to_address() describe PUBLIC_ADDRESS Email is to a known public address. score PUBLIC_ADDRESS 2 # Does it contain an In-Reply-To: that we recognize? header PUBLIC_REFERENCES eval:public_check_references() describe PUBLIC_REFERENCES Message could be in response to something we sent. score PUBLIC_REFERENCES -2