On Tue, December 26, 2006 07:55, Peter Matulis wrote: > I am trying to have my header show all countries my mail passes through > (I am successfully scoring by country using the relay-country plugin). > > I have put this line in my local.cf file: > > add_header all Relay-Country _RELAYCOUNTRY_ > > But this does not work. > > What configuration should I use and where do I find this information? > The man page for this plugin doesn't say anything.
perldoc Mail::SpamAssassin::Plugin::RelayCountry put the belov snippet in /etc/mail/spamassassin/00_plugins_RelayCountry.cf ifplugin Mail::SpamAssassin::Plugin::RelayCountry # put loadplugin Mail::SpamAssassin::Plugin::RelayCountry in init.pre header RELAY_CN X-Relay-Countries =~ /\bCN\b/ describe RELAY_CN Relayed through china score RELAY_CN 1.0 header RELAY_KR X-Relay-Countries =~ /\bKR\b/ describe RELAY_KR Relayed through Korea score RELAY_KR 1.0 endif # Mail::SpamAssassin::Plugin::RelayCountry put this snip into /etc/mail/spamassassin/00_add_headers.cf # # reset all headers # clear_headers # # default headers on no plugins # add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_ add_header spam Flag _YESNOCAPS_ add_header spam Level _STARS(*)_ add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_" add_header spam RBL _RBL_ add_header spam Spammy _SPAMMYTOKENS(2.long)_ # # plugins # ifplugin Mail::SpamAssassin::Plugin::DCC add_header spam DCC brand=_DCCB_, results=_DCCR_ endif # Mail::SpamAssassin::Plugin::DCC ifplugin Mail::SpamAssassin::Plugin::Pyzor add_header spam Pyzor _PYZOR_ endif # Mail::SpamAssassin::Plugin::Pyzor ifplugin Mail::SpamAssassin::Plugin::AWL add_header spam AWL _AWL_ add_header spam AWL_Mean _AWLMEAN_ add_header spam AWL_Count _AWLCOUNT_ add_header spam AWL_Pre_Score _AWLPRESCORE_ endif # Mail::SpamAssassin::Plugin::AWL ifplugin Mail::SpamAssassin::Plugin::RelayCountry add_header all Relay_Country _RELAYCOUNTRY_ endif # Mail::SpamAssassin::Plugin::RelayCountry bevare of space chars, with this config it does work here :-) -- This message was sent using 100% recycled spam mails.