Version 3 (modified by Jamie McClelland, 20 months ago) (diff)


Filter check

The filter-check program sends email via our servers to various corporate providers and checks to see if they land in the inbox or the spam box.

Current providers checked: Gmail, Yahoo and

Basic usage:

0  gil:~# filter-check --help
usage: filter-check [-h] [--sendvia SENDVIA] [--sendto SENDTO] [--quiet]
                    [--gtube] [--headers] [--sleep SLEEP]
                    [--emailfrom EMAILFROM] [--subject SUBJECT] [--msg MSG]

Check deliverability to various mail providers. Configuration file is in

optional arguments:
  -h, --help            show this help message and exit
  --sendvia SENDVIA     the host to relay the email
  --sendto SENDTO       the host to send the email
  --quiet               surpress all output, use exit codes only
  --gtube               use spamassassin code to identify the message as spam
                        (for debugging)
  --headers             output full headers, instead of brief headers
  --sleep SLEEP         number of seconds to wait between sending and checking
  --emailfrom EMAILFROM
                        send the test message from this email
  --subject SUBJECT     specify the subject for the test message
  --msg MSG             specify the body of the test message

Exit codes: 0 if message is found in Inbox, 1 if found in spam box, 3 if not
delivered, 255 if error.
0 gil:~# 

Code is available via git clone git://

It is installed and configured on

In addition, gil has a bash script called: mf-check-filters - which runs through filter checks for both and