set default dkim-path during update / install and corrected mail_domain_dkim_create
| | |
| | | enable_custom_login=n |
| | | mailboxlist_webmail_link=y |
| | | webmail_url=/webmail |
| | | dkim_path=/var/lib/amavis/dkim |
| | | |
| | | [monitor] |
| | | |
| | |
| | | |
| | | function validate_domain($domain) { |
| | | $regex = '/^[\w\.\-]{2,255}\.[a-zA-Z0-9\-]{2,30}$/'; |
| | | return preg_match($regex, $domain); |
| | | if ( preg_match($regex, $domain) === 1 ) return true; else return false; |
| | | } |
| | | |
| | | function validate_selector($selector) { |
| | | $regex = '/^[a-z0-9]{0,63}$/'; |
| | | return preg_match($regex, $selector); |
| | | if ( preg_match($regex, $selector) === 1 ) return true; else return false; |
| | | } |
| | | |
| | | /** |