#----------------------------------------------------------------------------- # /etc/check.d/antispam.exp - expressions for check table of configuration params # # Copyright (c) 2001-2023 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2003-11-14 jed # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #----------------------------------------------------------------------------- ANTISPAM_CHILDREN = '[0-9]|[1-9][0-9]' : 'value not range, only 0 - 99 are allowed' ANTISPAM_DNS = '(RE:YESNO)|test|test( *):( *)(RE:FQDN)((( +)(RE:FQDN))+)?' : 'no valid dns type, should be yes, no or test[:FQDN1 FQDN2] (FQDN - fully qualified domain name)' ANTISPAM_EIPADDR = '()|all|(RE:IPADDR)' : 'no valid address entry, should be an empty string, "all" or one ip address' ANTISPAM_EIPADDRNET = '()|(RE:IPADDR_NETWORK)((,(RE:IPADDR_NETWORK))+)?' : 'no valid address entry, should be an empty string, or one or more ip addresses or networks separated by commata' ANTISPAM_EMBOX = '()|(RE:REL_PATH)|(RE:ABS_PATH)' : 'no valid mailbox, should be an empty string, or a mailbox name with or without a path' ANTISPAM_REL_PATH = '(([[:alnum:]]|[-_.])+)(/([[:alnum:]]|[-_.*])+)*/?' : 'no valid relative path, only numbers, letters, "-" and "_" divided by "/" are allowed' ANTISPAM_ABS_PATH = '/(RE:ANTISPAM_REL_PATH)?' : 'no valid absolute path (must start with a slash and only numbers, letters, "-" and "_" divided by "/" are allowed)' ANTISPAM_HAMSPAMBOX = '()|(RE:ANTISPAM_REL_PATH)|(RE:ANTISPAM_ABS_PATH)' : 'no valid mailbox, should be an empty string, or a mailbox name with or without a path' ANTISPAM_CHANNEL = '[[:alnum:]]([-[:alnum:]_])*(\.[[:alnum:]](-?[[:alnum:]])*)*' : 'not a valid channel name.' ANTISPAM_ECHANNEL = '()|(RE:ANTISPAM_CHANNEL)' : 'not empty nor a valid channel name.' ANTISPAM_KEY_URL = 'http(s)?://[[:alnum:]/~.-]+(:(RE:NUMERIC)(/[[:alnum:]/~.-]*)?)?' : 'no valid key URL given.' ANTISPAM_EKEY_URL = '()|(RE:ANTISPAM_KEY_URL)' : 'not empty nor a valid key URL given.' ANTISPAM_KEY_ID = '[[:xdigit:]]+' : 'not a valid hehexadecimal value' ANTISPAM_EKEY_ID = '()|(RE:ANTISPAM_KEY_ID)' : 'not empty nor a valid hehexadecimal value.'