'mail1_config.inc.php', // 'mail2.domain.tld' => 'mail2_config.inc.php', // ); $config['markasjunk_host_config'] = null; // cmd_learn Driver options // ------------------------ // The command used to learn that a message is spam // The command can contain the following macros that will be expanded as follows: // %u is replaced with the username (from the session info) // %l is replaced with the local part of the username (if the username is an email address) // %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) // %i is replaced with the email address from the user's default identity // %s is replaced with the email address the message is from // %f is replaced with the path to the message file // %h:
is replaced with the content of that header from the message (lower case) eg: %h:x-dspam-signature // If you do not want to run the command set this to null $config['markasjunk_spam_cmd'] = null; // The command used to learn that a message is ham // The command can contain the following macros that will be expanded as follows: // %u is replaced with the username (from the session info) // %l is replaced with the local part of the username (if the username is an email address) // %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) // %i is replaced with the email address from the user's default identity // %s is replaced with the email address the message is from // %f is replaced with the path to the message file // %h:
is replaced with the content of that header from the message (lower case) eg: %h:x-dspam-signature // If you do not want to run the command set this to null $config['markasjunk_ham_cmd'] = null; // dir_learn Driver options // ------------------------ // The full path of the directory used to store spam (must be writable by webserver) $config['markasjunk_spam_dir'] = null; // The full path of the directory used to store ham (must be writable by webserver) $config['markasjunk_ham_dir'] = null; // The filename prefix // The filename can contain the following macros that will be expanded as follows: // %u is replaced with the username (from the session info) // %l is replaced with the local part of the username (if the username is an email address) // %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) // %t is replaced with the type of message (spam/ham) $config['markasjunk_filename'] = null; // email_learn Driver options // -------------------------- // The email address that spam messages will be sent to // The address can contain the following macros that will be expanded as follows: // %u is replaced with the username (from the session info) // %l is replaced with the local part of the username (if the username is an email address) // %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) // %i is replaced with the email address from the user's default identity // If you do not want to send an email set this to null $config['markasjunk_email_spam'] = null; // The email address that ham messages will be sent to // The address can contain the following macros that will be expanded as follows: // %u is replaced with the username (from the session info) // %l is replaced with the local part of the username (if the username is an email address) // %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) // %i is replaced with the email address from the user's default identity // If you do not want to send an email set this to null $config['markasjunk_email_ham'] = null; // Should the spam/ham message be sent as an attachment $config['markasjunk_email_attach'] = true; // The email subject (when sending as attachment) // The subject can contain the following macros that will be expanded as follows: // %u is replaced with the username (from the session info) // %l is replaced with the local part of the username (if the username is an email address) // %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not) // %t is replaced with the type of message (spam/ham) $config['markasjunk_email_subject'] = 'learn this message as %t'; // sa_blacklist Driver options // --------------------------- // Path to SAUserPrefs config file $config['markasjunk_sauserprefs_config'] = '../sauserprefs/config.inc.php'; // amavis_blacklist Driver options // --------------------------- // Path to amacube config file $config['markasjunk_amacube_config'] = '../amacube/config.inc.php'; // edit_headers Driver options // --------------------------- // Patterns to match and replace headers for spam messages // Replacement method uses preg_replace - http://www.php.net/manual/function.preg-replace.php // WARNING: Be sure to match the entire header line, including the name of the header, also use ^ and $ and the 'm' flag // see the README for an example // TEST CAREFULLY BEFORE USE ON REAL MESSAGES $config['markasjunk_spam_patterns'] = array( 'patterns' => array(), 'replacements' => array() ); // Patterns to match and replace headers for spam messages // Replacement method uses preg_replace - http://www.php.net/manual/function.preg-replace.php // WARNING: Be sure to match the entire header line, including the name of the header, also use ^ and $ and the 'm' flag // see the README for an example // TEST CAREFULLY BEFORE USE ON REAL MESSAGES $config['markasjunk_ham_patterns'] = array( 'patterns' => array(), 'replacements' => array() );