MySQL Student wrote: > Hi, > > >> I don't know if it makes a difference, but I call it Relay-Countries to >> match the name of the pseudo-header used in the tests >> >> add_header all Relay-Countries _RELAYCOUNTRY_ >> > > It doesn't appear to make a difference. I must be doing something else > wrong. Using "spamassassin --lint -D 2>&1 | less" shows the > X-Relay-Countries header, but it's null: > > # spamassassin --lint -D 2>&1 | egrep -i 'relay|country|countries' > > > <snip> > [23760] dbg: metadata: X-Spam-Relays-Trusted: > [23760] dbg: metadata: X-Spam-Relays-Untrusted: > [23760] dbg: metadata: X-Spam-Relays-Internal: > [23760] dbg: metadata: X-Spam-Relays-External: > > <snip> > [23760] dbg: metadata: X-Relay-Countries: > The --lint test is *NOT* valid for this. --lint is *ONLY* to verify your config files are parseable.
The lint test uses a dummy message that has no Recived: headers in it. This prevents --lint from wasting time doing RBL lookups, etc, which speeds up the lint run. This is valid because --lint is not intended to be a comprehensive test of the system, it's intended to check if your rulefiles are readable. Since the lint dummy mode has no Received: headers, it hasn't been anywhere, so it's been in no countries. Try again with a real message with real headers, and try to remember that --lint is not a general-purpose test.