recreate
This commit is contained in:
@@ -0,0 +1,663 @@
|
||||
use strict;
|
||||
|
||||
# controls running of anti-virus/spam code: 0 -> enabled, 1 -> disabled.
|
||||
@bypass_virus_checks_maps = (0);
|
||||
@bypass_spam_checks_maps = (0);
|
||||
# $bypass_decode_parts = 1; # controls running of decoders&dearchivers
|
||||
|
||||
$daemon_user = 'PH_SYS_USER_AMAVISD';
|
||||
$daemon_group = 'PH_SYS_GROUP_AMAVISD';
|
||||
|
||||
# Set hostname.
|
||||
$myhostname = 'PH_HOSTNAME';
|
||||
$mydomain = $myhostname;
|
||||
$localhost_name = $myhostname;
|
||||
|
||||
#
|
||||
# NOTE: $MYHOME/{tmp,var,db} must be created manually
|
||||
#
|
||||
$MYHOME = 'PH_AMAVISD_SPOOL_DIR';
|
||||
$TEMPBASE = 'PH_AMAVISD_TEMP_DIR'; # working directory, needs to exist, -T
|
||||
$ENV{TMPDIR} = $TEMPBASE; # environment variable TMPDIR, used by SA, etc.
|
||||
$db_home = 'PH_AMAVISD_DB_DIR'; # dir for bdb nanny/cache/snmp databases, -D
|
||||
$QUARANTINEDIR = 'PH_AMAVISD_QUARANTINE_DIR'; # -Q
|
||||
$quarantine_subdir_levels = 2; # add level of subdirs to disperse quarantine
|
||||
# $release_format = 'resend'; # 'attach', 'plain', 'resend'
|
||||
# $report_format = 'arf'; # 'attach', 'plain', 'resend', 'arf'
|
||||
# $daemon_chroot_dir = $MYHOME; # chroot directory or undef, -R
|
||||
# $helpers_home = "$MYHOME/var"; # working directory for SpamAssassin, -S
|
||||
|
||||
$lock_file = 'PH_AMAVISD_LOCK_FILE'; # -L
|
||||
$pid_file = 'PH_AMAVISD_PID_FILE'; # -P
|
||||
|
||||
@local_domains_maps = 1;
|
||||
@mynetworks = qw( 127.0.0.0/8 [::1] PH_LOCAL_ADDRESS );
|
||||
|
||||
# Socket file, used by amavisd-release or amavis-milter.
|
||||
$unix_socketname = 'PH_AMAVISD_SOCKET_FILE';
|
||||
|
||||
#
|
||||
# BDB
|
||||
#
|
||||
$enable_db = 0; # enable use of BerkeleyDB/libdb (SNMP and nanny)
|
||||
$nanny_details_level = 2; # nanny verbosity: 1: traditional, 2: detailed
|
||||
|
||||
$inet_socket_port = [PH_AMAVISD_SMTP_PORT, PH_AMAVISD_ORIGINATING_PORT, PH_AMAVISD_MLMMJ_PORT, PH_AMAVISD_QUARANTINE_PORT];
|
||||
|
||||
$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
|
||||
originating => 1, # is true in MYNETS by default, but let's make it explicit
|
||||
os_fingerprint_method => undef, # don't query p0f for internal clients
|
||||
allow_disclaimers => 1, # enables disclaimer insertion if available
|
||||
enable_dkim_signing => 1,
|
||||
};
|
||||
|
||||
# Postfix will re-route mail from authenticated users to this port.
|
||||
$interface_policy{'PH_AMAVISD_ORIGINATING_PORT'} = 'ORIGINATING';
|
||||
$policy_bank{'ORIGINATING'} = {
|
||||
originating => 1, # declare that mail was submitted by our smtp client
|
||||
allow_disclaimers => 1, # enables disclaimer insertion if available
|
||||
enable_dkim_signing => 1,
|
||||
|
||||
# notify administrator of locally originating malware
|
||||
spam_admin_maps => ["root\@$mydomain"],
|
||||
# notify administrator of locally originating malware
|
||||
virus_admin_maps => ["root\@$mydomain"],
|
||||
spam_admin_maps => ["root\@$mydomain"],
|
||||
bad_header_admin_maps => ["root\@$mydomain"],
|
||||
banned_admin_maps => ["root\@$mydomain"],
|
||||
warnbadhsender => 0,
|
||||
warnbannedsender => 0,
|
||||
|
||||
# force MTA conversion to 7-bit (e.g. before DKIM signing)
|
||||
smtpd_discard_ehlo_keywords => ['8BITMIME'],
|
||||
terminate_dsn_on_notify_success => 0, # don't remove NOTIFY=SUCCESS option
|
||||
|
||||
# Bypass checks
|
||||
#bypass_spam_checks_maps => [1], # don't check spam
|
||||
#bypass_virus_checks_maps => [1], # don't check virus
|
||||
#bypass_banned_checks_maps => [1], # don't check banned file names and types
|
||||
#bypass_header_checks_maps => [1], # don't check bad header
|
||||
};
|
||||
|
||||
$interface_policy{'PH_AMAVISD_MLMMJ_PORT'} = 'MLMMJ';
|
||||
$policy_bank{'MLMMJ'} = {
|
||||
originating => 1, # declare that mail was submitted by our smtp client
|
||||
allow_disclaimers => 0, # we use 'mlmmj-amime-receive' program to handle disclaimer/footer
|
||||
enable_dkim_signing => 1, # enable DKIM signing for outbound
|
||||
virus_admin_maps => ["root\@$mydomain"],
|
||||
spam_admin_maps => ["root\@$mydomain"],
|
||||
smtpd_discard_ehlo_keywords => ['8BITMIME'],
|
||||
terminate_dsn_on_notify_success => 0, # don't remove NOTIFY=SUCCESS option
|
||||
# re-inject processed email to Postfix, with address mapping enabled.
|
||||
forward_method => 'smtp:[PH_LOCAL_ADDRESS]:PH_POSTFIX_MLMMJ_REINJECT_PORT',
|
||||
# Amavisd performs the checks for email sent to mailing list, so no need to
|
||||
# check again for outbound.
|
||||
bypass_spam_checks_maps => [1], # don't check spam
|
||||
bypass_virus_checks_maps => [1], # don't check virus
|
||||
bypass_banned_checks_maps => [1], # don't check banned file names and types
|
||||
bypass_header_checks_maps => [1], # don't check bad header
|
||||
};
|
||||
|
||||
$interface_policy{'SOCK'} = 'AM.PDP-SOCK'; # only applies with $unix_socketname
|
||||
|
||||
# Use with amavis-release over a socket or with Petr Rehor's amavis-milter.c
|
||||
# (with amavis-milter.c from this package or old amavis.c client use 'AM.CL'):
|
||||
$policy_bank{'AM.PDP-SOCK'} = {
|
||||
protocol => 'AM.PDP',
|
||||
auth_required_release => 0, # do not require secret_id for amavisd-release
|
||||
};
|
||||
|
||||
$sa_tag_level_deflt = 2.0; # add spam info headers if at, or above that level
|
||||
$sa_tag2_level_deflt = 6.2; # add 'spam detected' headers at that level
|
||||
$sa_kill_level_deflt = 6.9; # triggers spam evasive actions (e.g. blocks mail)
|
||||
$sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent
|
||||
$sa_crediblefrom_dsn_cutoff_level = 18; # likewise, but for a likely valid From
|
||||
#$sa_quarantine_cutoff_level = 25; # spam level beyond which quarantine is off
|
||||
|
||||
$sa_mail_body_size_limit = 400*1024; # don't waste time on SA if mail is larger
|
||||
$sa_local_tests_only = 0; # only tests which do not require internet access?
|
||||
|
||||
$virus_admin = undef; # notifications recip.
|
||||
|
||||
$mailfrom_notify_admin = undef; # notifications sender
|
||||
$mailfrom_notify_recip = undef; # notifications sender
|
||||
$mailfrom_notify_spamadmin = undef; # notifications sender
|
||||
$mailfrom_to_quarantine = ''; # null return path; uses original sender if undef
|
||||
|
||||
@addr_extension_virus_maps = ('virus');
|
||||
@addr_extension_banned_maps = ('banned');
|
||||
@addr_extension_spam_maps = ('spam');
|
||||
@addr_extension_bad_header_maps = ('badh');
|
||||
# $recipient_delimiter = '+'; # undef disables address extensions altogether
|
||||
# when enabling addr extensions do also Postfix/main.cf: recipient_delimiter=+
|
||||
|
||||
$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';
|
||||
# $dspam = 'dspam';
|
||||
|
||||
$MAXLEVELS = 14;
|
||||
$MAXFILES = 3000;
|
||||
$MIN_EXPANSION_QUOTA = 100*1024; # bytes (default undef, not enforced)
|
||||
$MAX_EXPANSION_QUOTA = 500*1024*1024; # bytes (default undef, not enforced)
|
||||
|
||||
# Prepend '[SPAM] ' to subject of spam message.
|
||||
$sa_spam_modifies_subj = 1;
|
||||
$sa_spam_subject_tag = '[SPAM] ';
|
||||
|
||||
$defang_virus = 1; # MIME-wrap passed infected mail
|
||||
$defang_banned = 0; # MIME-wrap passed mail containing banned name
|
||||
# for defanging bad headers only turn on certain minor contents categories:
|
||||
$defang_by_ccat{CC_BADH.",3"} = 1; # NUL or CR character in header
|
||||
$defang_by_ccat{CC_BADH.",5"} = 1; # header line longer than 998 characters
|
||||
$defang_by_ccat{CC_BADH.",6"} = 1; # header field syntax error
|
||||
|
||||
@keep_decoded_original_maps = (new_RE(
|
||||
# let virus scanner (clamav) see full original message (can be slow)
|
||||
# this setting is required if we're going to use third-party clamav
|
||||
# signatures. for example, Sanesecurity signatures.
|
||||
# FYI: http://sanesecurity.com/support/signature-testing/
|
||||
#qr'^MAIL$',
|
||||
|
||||
qr'^MAIL-UNDECIPHERABLE$', # same as ^MAIL$ if mail is undecipherable
|
||||
qr'^(ASCII(?! cpio)|text|uuencoded|xxencoded|binhex)'i,
|
||||
#qr'^Zip archive data', # don't trust Archive::Zip
|
||||
));
|
||||
|
||||
$banned_filename_re = new_RE(
|
||||
|
||||
### BLOCKED ANYWHERE
|
||||
# qr'^UNDECIPHERABLE$', # is or contains any undecipherable components
|
||||
qr'^\.(exe-ms|dll)$', # banned file(1) types, rudimentary
|
||||
# qr'^\.(exe|lha|cab|dll)$', # banned file(1) types
|
||||
|
||||
### BLOCK THE FOLLOWING, EXCEPT WITHIN UNIX ARCHIVES:
|
||||
# [ qr'^\.(gz|bz2)$' => 0 ], # allow any in gzip or bzip2
|
||||
[ qr'^\.(rpm|cpio|tar)$' => 0 ], # allow any in Unix-type archives
|
||||
|
||||
qr'.\.(pif|scr)$'i, # banned extensions - rudimentary
|
||||
# qr'^\.zip$', # block zip type
|
||||
|
||||
### BLOCK THE FOLLOWING, EXCEPT WITHIN ARCHIVES:
|
||||
# [ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ], # allow any within these archives
|
||||
|
||||
qr'^application/x-msdownload$'i, # block these MIME types
|
||||
qr'^application/x-msdos-program$'i,
|
||||
qr'^application/hta$'i,
|
||||
|
||||
# qr'^message/partial$'i, # rfc2046 MIME type
|
||||
# qr'^message/external-body$'i, # rfc2046 MIME type
|
||||
|
||||
# qr'^(application/x-msmetafile|image/x-wmf)$'i, # Windows Metafile MIME type
|
||||
# qr'^\.wmf$', # Windows Metafile file(1) type
|
||||
|
||||
# block certain double extensions in filenames
|
||||
qr'^(?!cid:).*\.[^./]*[A-Za-z][^./]*\.\s*(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)[.\s]*$'i,
|
||||
|
||||
# qr'\{[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\}?'i, # Class ID CLSID, strict
|
||||
# qr'\{[0-9a-z]{4,}(-[0-9a-z]{4,}){0,7}\}?'i, # Class ID extension CLSID, loose
|
||||
|
||||
qr'.\.(exe|vbs|pif|scr|cpl)$'i, # banned extension - basic
|
||||
# qr'.\.(exe|vbs|pif|scr|cpl|bat|cmd|com)$'i, # banned extension - basic+cmd
|
||||
# qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta|
|
||||
# inf|ini|ins|isp|js|jse|lib|lnk|mda|mdb|mde|mdt|mdw|mdz|msc|msi|
|
||||
# msp|mst|ocx|ops|pcd|pif|prg|reg|scr|sct|shb|shs|sys|vb|vbe|vbs|vxd|
|
||||
# wmf|wsc|wsf|wsh)$'ix, # banned extensions - long
|
||||
# qr'.\.(asd|asf|asx|url|vcs|wmd|wmz)$'i, # consider also
|
||||
# qr'.\.(ani|cur|ico)$'i, # banned cursors and icons filename
|
||||
# qr'^\.ani$', # banned animated cursor file(1) type
|
||||
# qr'.\.(mim|b64|bhx|hqx|xxe|uu|uue)$'i, # banned extension - WinZip vulnerab.
|
||||
);
|
||||
# See http://support.microsoft.com/default.aspx?scid=kb;EN-US;q262631
|
||||
# and http://www.cknow.com/vtutor/vtextensions.htm
|
||||
|
||||
|
||||
# ENVELOPE SENDER SOFT-WHITELISTING / SOFT-BLACKLISTING
|
||||
|
||||
@score_sender_maps = ({ # a by-recipient hash lookup table,
|
||||
# results from all matching recipient tables are summed
|
||||
|
||||
# ## per-recipient personal tables (NOTE: positive: black, negative: white)
|
||||
# 'user1@example.com' => [{'bla-mobile.press@example.com' => 10.0}],
|
||||
# 'user3@example.com' => [{'.ebay.com' => -3.0}],
|
||||
# 'user4@example.com' => [{'cleargreen@cleargreen.com' => -7.0,
|
||||
# '.cleargreen.com' => -5.0}],
|
||||
|
||||
## site-wide opinions about senders (the '.' matches any recipient)
|
||||
'.' => [ # the _first_ matching sender determines the score boost
|
||||
|
||||
new_RE( # regexp-type lookup table, just happens to be all soft-blacklist
|
||||
[qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou)@'i => 5.0],
|
||||
[qr'^(greatcasino|investments|lose_weight_today|market\.alert)@'i=> 5.0],
|
||||
[qr'^(money2you|MyGreenCard|new\.tld\.registry|opt-out|opt-in)@'i=> 5.0],
|
||||
[qr'^(optin|saveonlsmoking2002k|specialoffer|specialoffers)@'i => 5.0],
|
||||
[qr'^(stockalert|stopsnoring|wantsome|workathome|yesitsfree)@'i => 5.0],
|
||||
[qr'^(your_friend|greatoffers)@'i => 5.0],
|
||||
[qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i => 5.0],
|
||||
),
|
||||
|
||||
#read_hash("/var/amavis/sender_scores_sitewide"),
|
||||
|
||||
{ # a hash-type lookup table (associative array)
|
||||
'nobody@cert.org' => -3.0,
|
||||
'cert-advisory@us-cert.gov' => -3.0,
|
||||
'owner-alert@iss.net' => -3.0,
|
||||
'slashdot@slashdot.org' => -3.0,
|
||||
'securityfocus.com' => -3.0,
|
||||
'ntbugtraq@listserv.ntbugtraq.com' => -3.0,
|
||||
'security-alerts@linuxsecurity.com' => -3.0,
|
||||
'mailman-announce-admin@python.org' => -3.0,
|
||||
'amavis-user-admin@lists.sourceforge.net'=> -3.0,
|
||||
'amavis-user-bounces@lists.sourceforge.net' => -3.0,
|
||||
'spamassassin.apache.org' => -3.0,
|
||||
'notification-return@lists.sophos.com' => -3.0,
|
||||
'owner-postfix-users@postfix.org' => -3.0,
|
||||
'owner-postfix-announce@postfix.org' => -3.0,
|
||||
'owner-sendmail-announce@lists.sendmail.org' => -3.0,
|
||||
'sendmail-announce-request@lists.sendmail.org' => -3.0,
|
||||
'donotreply@sendmail.org' => -3.0,
|
||||
'ca+envelope@sendmail.org' => -3.0,
|
||||
'noreply@freshmeat.net' => -3.0,
|
||||
'owner-technews@postel.acm.org' => -3.0,
|
||||
'ietf-123-owner@loki.ietf.org' => -3.0,
|
||||
'cvs-commits-list-admin@gnome.org' => -3.0,
|
||||
'rt-users-admin@lists.fsck.com' => -3.0,
|
||||
'clp-request@comp.nus.edu.sg' => -3.0,
|
||||
'surveys-errors@lists.nua.ie' => -3.0,
|
||||
'emailnews@genomeweb.com' => -5.0,
|
||||
'yahoo-dev-null@yahoo-inc.com' => -3.0,
|
||||
'returns.groups.yahoo.com' => -3.0,
|
||||
'clusternews@linuxnetworx.com' => -3.0,
|
||||
lc('lvs-users-admin@LinuxVirtualServer.org') => -3.0,
|
||||
lc('owner-textbreakingnews@CNNIMAIL12.CNN.COM') => -5.0,
|
||||
|
||||
# soft-blacklisting (positive score)
|
||||
'sender@example.net' => 3.0,
|
||||
'.example.net' => 1.0,
|
||||
|
||||
},
|
||||
], # end of site-wide tables
|
||||
});
|
||||
|
||||
|
||||
@decoders = (
|
||||
['mail', \&do_mime_decode],
|
||||
# [[qw(asc uue hqx ync)], \&do_ascii], # not safe
|
||||
['F', \&do_uncompress, ['unfreeze', 'freeze -d', 'melt', 'fcat'] ],
|
||||
['Z', \&do_uncompress, ['uncompress', 'gzip -d', 'zcat'] ],
|
||||
['gz', \&do_uncompress, 'gzip -d'],
|
||||
['gz', \&do_gunzip],
|
||||
['bz2', \&do_uncompress, 'bzip2 -d'],
|
||||
['xz', \&do_uncompress,
|
||||
['xzdec', 'xz -dc', 'unxz -c', 'xzcat'] ],
|
||||
['lzma', \&do_uncompress,
|
||||
['lzmadec', 'xz -dc --format=lzma',
|
||||
'lzma -dc', 'unlzma -c', 'lzcat', 'lzmadec'] ],
|
||||
['lrz', \&do_uncompress,
|
||||
['lrzip -q -k -d -o -', 'lrzcat -q -k'] ],
|
||||
['lzo', \&do_uncompress, 'lzop -d'],
|
||||
['lz4', \&do_uncompress, ['lz4c -d'] ],
|
||||
['rpm', \&do_uncompress, ['rpm2cpio.pl', 'rpm2cpio'] ],
|
||||
[['cpio','tar'], \&do_pax_cpio, ['pax', 'gcpio', 'cpio'] ],
|
||||
# ['/usr/local/heirloom/usr/5bin/pax', 'pax', 'gcpio', 'cpio']
|
||||
['deb', \&do_ar, 'ar'],
|
||||
# ['a', \&do_ar, 'ar'], # unpacking .a seems an overkill
|
||||
['rar', \&do_unrar, ['unrar', 'rar'] ],
|
||||
['arj', \&do_unarj, ['unarj', 'arj'] ],
|
||||
['arc', \&do_arc, ['nomarch', 'arc'] ],
|
||||
['zoo', \&do_zoo, ['zoo', 'unzoo'] ],
|
||||
# ['doc', \&do_ole, 'ripole'], # no ripole package so far
|
||||
['cab', \&do_cabextract, 'cabextract'],
|
||||
# ['tnef', \&do_tnef_ext, 'tnef'], # use internal do_tnef() instead
|
||||
['tnef', \&do_tnef],
|
||||
# ['lha', \&do_lha, 'lha'], # not safe, use 7z instead
|
||||
# ['sit', \&do_unstuff, 'unstuff'], # not safe
|
||||
[['zip','kmz'], \&do_7zip, ['7za', '7z'] ],
|
||||
[['zip','kmz'], \&do_unzip],
|
||||
['7z', \&do_7zip, ['7zr', '7za', '7z'] ],
|
||||
[[qw(gz bz2 Z tar)],
|
||||
\&do_7zip, ['7za', '7z'] ],
|
||||
[[qw(xz lzma jar cpio arj rar swf lha iso cab deb rpm)],
|
||||
\&do_7zip, '7z' ],
|
||||
['exe', \&do_executable, ['unrar','rar'], 'lha', ['unarj','arj'] ],
|
||||
);
|
||||
|
||||
$notify_method = 'smtp:[PH_LOCAL_ADDRESS]:PH_POSTFIX_MAIL_REINJECT_PORT';
|
||||
$forward_method = 'smtp:[PH_LOCAL_ADDRESS]:PH_POSTFIX_MAIL_REINJECT_PORT';
|
||||
|
||||
# Mark Spam/Virus with third-party clamav signatures: SaneSecurity.
|
||||
# *) The order matters, first match wins. Set to 'undef' to keep as infected
|
||||
# *) Anything declared as undefined will be marked as a virus
|
||||
@virus_name_to_spam_score_maps =(new_RE(
|
||||
# SaneSecurity + Foxhole
|
||||
[ qr'^Sanesecurity\.(Malware|Badmacro|Foxhole|Rogue|Trojan)\.' => undef ],
|
||||
[ qr'^Sanesecurity\.MalwareHash\.' => undef ],
|
||||
[ qr'^Sanesecurity.TestSig_' => undef ],
|
||||
[ qr'^Sanesecurity\.' => 0.1 ],
|
||||
|
||||
# winnow
|
||||
[ qr'^winnow\.(Exploit|Trojan|malware)\.' => undef ],
|
||||
[ qr'^winnow\.(botnet|compromised|trojan)' => undef ],
|
||||
[ qr'^winnow\.(exe|ms|JS)\.' => undef ],
|
||||
[ qr'^winnow\.phish\.' => 3.0 ],
|
||||
[ qr'^winnow\.' => 0.1 ],
|
||||
|
||||
# bofhland
|
||||
[ qr'^Bofhland\.Malware\.' => undef ],
|
||||
[ qr'^BofhlandMWFile' => undef ],
|
||||
[ qr'^Bofhland\.Phishing\.' => 3.0 ],
|
||||
[ qr'^Bofhland\.' => 0.1 ],
|
||||
|
||||
# porcupine.ndb
|
||||
[ qr'^Porcupine\.(Malware|Trojan)\.' => undef ],
|
||||
[ qr'^Porcupine\.(Junk|Spammer)\.' => 3.0 ],
|
||||
[ qr'^Porcupine\.Phishing\.' => 3.0 ],
|
||||
[ qr'^Porcupine\.' => 0.01 ],
|
||||
|
||||
# phishtank.ndb
|
||||
[ qr'^PhishTank\.Phishing\.' => 3.0 ],
|
||||
|
||||
# SecuriteInfo
|
||||
[ qr'^SecuriteInfo\.com\.Spammer\.' => 3.0 ],
|
||||
|
||||
# Others
|
||||
[ qr'^Structured\.(SSN|CreditCardNumber)\b' => 0.1 ],
|
||||
[ qr'^(Heuristics\.)?Phishing\.' => 0.1 ],
|
||||
[ qr'^(Email|HTML)\.Phishing\.(?!.*Sanesecurity)' => 0.1 ],
|
||||
[ qr'^Email\.Spam\.Bounce(\.[^., ]*)*\.Sanesecurity\.' => 0 ],
|
||||
[ qr'^Email\.Spammail\b' => 0.1 ],
|
||||
[ qr'^MSRBL-(Images|SPAM)\b' => 0.1 ],
|
||||
[ qr'^VX\.Honeypot-SecuriteInfo\.com\.Joke' => 0.1 ],
|
||||
[ qr'^VX\.not-virus_(Hoax|Joke)\..*-SecuriteInfo\.com(\.|\z)' => 0.1 ],
|
||||
[ qr'^Email\.Spam.*-SecuriteInfo\.com(\.|\z)' => 0.1 ],
|
||||
[ qr'^Safebrowsing\.' => 0.1 ],
|
||||
[ qr'^INetMsg\.SpamDomain' => 0.1 ],
|
||||
[ qr'^Doppelstern\.(Spam|Scam|Phishing|Junk|Lott|Loan)'=> 0.1 ],
|
||||
[ qr'^ScamNailer\.' => 0.1 ],
|
||||
[ qr'^HTML/Bankish' => 0.1 ],
|
||||
[ qr'(-)?SecuriteInfo\.com(\.|\z)' => undef ],
|
||||
[ qr'^MBL_NA\.UNOFFICIAL' => 0.1 ],
|
||||
[ qr'^MBL_' => undef ],
|
||||
));
|
||||
|
||||
@av_scanners = (
|
||||
['clamav-socket',
|
||||
\&ask_daemon, ["CONTSCAN {}\n", 'PH_CLAMD_LOCAL_SOCKET'],
|
||||
qr/\bOK$/, qr/\bFOUND$/,
|
||||
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
|
||||
);
|
||||
|
||||
@av_scanners_backup = (
|
||||
['clamav-clamscan', 'clamscan',
|
||||
"--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
|
||||
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
|
||||
);
|
||||
|
||||
#
|
||||
# Port used to release quarantined mails.
|
||||
#
|
||||
$interface_policy{'PH_AMAVISD_QUARANTINE_PORT'} = 'AM.PDP-INET';
|
||||
$policy_bank{'AM.PDP-INET'} = {
|
||||
protocol => 'AM.PDP', # select Amavis policy delegation protocol
|
||||
auth_required_release => 1, # 0 - don't require secret_id for amavisd-release
|
||||
#log_level => 4,
|
||||
#always_bcc_by_ccat => {CC_CLEAN, 'admin@example.com'},
|
||||
};
|
||||
|
||||
#########################
|
||||
# Default action applied to detected spam/virus/banned/bad-header, and how to
|
||||
# quarantine them
|
||||
#
|
||||
# Available actions:
|
||||
#
|
||||
# - D_PASS: Mail will pass to recipients, regardless of bad contents.
|
||||
# If a quarantine is configured, a copy of the mail will go there.
|
||||
# Note that including a recipient in a @*_lovers_maps is
|
||||
# functionally equivalent to setting '*_destiny = D_PASS;'
|
||||
# for that recipient.
|
||||
#
|
||||
# - D_BOUNCE: Mail will not be delivered to its recipients. A non-delivery
|
||||
# notification (bounce) will be created and sent to the sender.
|
||||
#
|
||||
# - D_REJECT: Mail will not be delivered to its recipients. Amavisd will
|
||||
# send the typical 55x reject response to the upstream MTA and
|
||||
# that MTA may create a reject notice (bounce) and return it to
|
||||
# the sender.
|
||||
# This notice is not as informative as the one created using
|
||||
# D_BOUNCE, so usually D_BOUNCE is preferred over D_REJECT.
|
||||
# If a quarantine is configured, a copy of the mail will go
|
||||
# there, if not mail message will be lost, but the sender should
|
||||
# be notified their message was rejected.
|
||||
#
|
||||
# - D_DISCARD: Mail will not be delivered to its recipients and the sender
|
||||
# normally will NOT be notified.
|
||||
# If a quarantine is configured, a copy of the mail will go
|
||||
# there, if not mail message will be lost. Note that there are
|
||||
# additional settings available that can send notifications to
|
||||
# persons that normally may not be notified when an undesirable
|
||||
# message is found, so it is possible to notify the sender even
|
||||
# when using D_DISCARD.
|
||||
#
|
||||
# Where to store quarantined mail message:
|
||||
#
|
||||
# - 'local:spam-%i-%m', quarantine mail on local file system.
|
||||
# - 'sql:', quarantine mail in SQL server specified in @storage_sql_dsn.
|
||||
# - undef, do not quarantine mail.
|
||||
|
||||
# SPAM.
|
||||
$final_spam_destiny = D_DISCARD;
|
||||
$spam_quarantine_method = 'sql:';
|
||||
$spam_quarantine_to = 'spam-quarantine';
|
||||
|
||||
# Virus
|
||||
$final_virus_destiny = D_DISCARD;
|
||||
$virus_quarantine_method = 'sql:';
|
||||
$virus_quarantine_to = 'virus-quarantine';
|
||||
|
||||
# Banned
|
||||
$final_banned_destiny = D_DISCARD;
|
||||
$banned_files_quarantine_method = 'sql:';
|
||||
$banned_quarantine_to = 'banned-quarantine';
|
||||
|
||||
# Bad header.
|
||||
$final_bad_header_destiny = D_DISCARD;
|
||||
$bad_header_quarantine_method = 'sql:';
|
||||
$bad_header_quarantine_to = 'bad-header-quarantine';
|
||||
|
||||
#########################
|
||||
# Quarantine CLEAN mails.
|
||||
# Don't forget to enable clean quarantine in policy bank 'MYUSERS'.
|
||||
#
|
||||
#$clean_quarantine_method = 'sql:';
|
||||
#$clean_quarantine_to = 'clean-quarantine';
|
||||
|
||||
# a string to prepend to Subject (for local recipients only) if mail could
|
||||
# not be decoded or checked entirely, e.g. due to password-protected archives
|
||||
#$undecipherable_subject_tag = '***UNCHECKED*** '; # undef disables it
|
||||
$undecipherable_subject_tag = undef;
|
||||
|
||||
# Hope to fix 'nested MAIL command' issue on high load server.
|
||||
$smtp_connection_cache_enable = 0;
|
||||
|
||||
# The default set of header fields to be signed can be controlled
|
||||
# by setting %signed_header_fields elements to true (to sign) or
|
||||
# to false (not to sign). Keys must be in lowercase, e.g.:
|
||||
# 0 -> off
|
||||
# 1 -> on
|
||||
$signed_header_fields{'received'} = 0;
|
||||
$signed_header_fields{'to'} = 1;
|
||||
$signed_header_fields{'from'} = 1;
|
||||
$signed_header_fields{'subject'} = 1;
|
||||
$signed_header_fields{'message-id'} = 1;
|
||||
$signed_header_fields{'content-type'} = 1;
|
||||
$signed_header_fields{'date'} = 1;
|
||||
$signed_header_fields{'mime-version'} = 1;
|
||||
|
||||
#
|
||||
# DKIM
|
||||
#
|
||||
# Enable DKIM verification globally.
|
||||
$enable_dkim_verification = 1;
|
||||
|
||||
# Disable DKIM signing globally, because it's controlled per policy bank.
|
||||
#$enable_dkim_signing = 1;
|
||||
|
||||
# Add dkim_key here.
|
||||
dkim_key('PH_FIRST_DOMAIN', 'dkim', 'PH_AMAVISD_FIRST_DOMAIN_DKIM_KEY');
|
||||
|
||||
@dkim_signature_options_bysender_maps = ({
|
||||
# 'd' defaults to a domain of an author/sender address,
|
||||
# 's' defaults to whatever selector is offered by a matching key
|
||||
|
||||
# Per-domain dkim key
|
||||
#"domain.com" => { d => "domain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
|
||||
|
||||
# catch-all (one dkim key for all domains)
|
||||
'.' => {d => 'PH_FIRST_DOMAIN',
|
||||
a => 'rsa-sha256',
|
||||
c => 'relaxed/simple',
|
||||
ttl => 30*24*3600 },
|
||||
});
|
||||
|
||||
#
|
||||
# Disclaimer settings
|
||||
#
|
||||
# Uncomment below line to enable singing disclaimer in outgoing mails.
|
||||
#$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];
|
||||
|
||||
# Program used to signing disclaimer in outgoing mails.
|
||||
$altermime = 'PH_CMD_ALTERMIME';
|
||||
|
||||
# Disclaimer in plain text formart.
|
||||
@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt --disclaimer-html=/etc/postfix/disclaimer/_OPTION_.txt --force-for-bad-html);
|
||||
|
||||
@disclaimer_options_bysender_maps = ({
|
||||
# Per-domain, per-user disclaimer setting:
|
||||
# '<domain>' => /path/to/disclaimer.txt,
|
||||
# '<email>' => /path/to/disclaimer.txt,
|
||||
|
||||
# Catch-all disclaimer setting: /etc/postfix/disclaimer/default.txt
|
||||
'.' => 'default',
|
||||
},);
|
||||
|
||||
$sql_allow_8bit_address = 1;
|
||||
$timestamp_fmt_mysql = 1; # if using MySQL *and* msgs.time_iso is TIMESTAMP;
|
||||
|
||||
# Reporting and quarantining.
|
||||
@storage_sql_dsn = (['DBI:PH_AMAVISD_PERL_SQL_DBI:database=PH_AMAVISD_DB_NAME;host=PH_SQL_SERVER_ADDRESS;port=PH_SQL_SERVER_PORT', 'PH_AMAVISD_DB_USER', 'PH_AMAVISD_DB_PASSWD']);
|
||||
|
||||
# Lookup for per-recipient, per-domain and global policy.
|
||||
@lookup_sql_dsn = @storage_sql_dsn;
|
||||
|
||||
# Don't send email with subject "UNCHECKED contents in mail FROM xxx".
|
||||
delete $admin_maps_by_ccat{&CC_UNCHECKED};
|
||||
|
||||
# Do not notify administrator about SPAM/VIRUS from remote servers.
|
||||
$virus_admin = undef;
|
||||
$spam_admin = undef;
|
||||
$banned_admin = undef;
|
||||
$bad_header_admin = undef;
|
||||
|
||||
#
|
||||
# Pre-define some policy banks.
|
||||
#
|
||||
# You can assign certain policy banks to clients/senders you want to whitelist
|
||||
# with parameter `@client_ipaddr_policy` and @author_to_policy_bank_maps.
|
||||
$policy_bank{'FULL_WHITELIST'} = {
|
||||
bypass_spam_checks_maps => [1],
|
||||
spam_lovers_maps => [1],
|
||||
bypass_decode_parts => 1,
|
||||
bypass_virus_checks_maps => [1],
|
||||
virus_lovers_maps => [1],
|
||||
bypass_banned_checks_maps => [1],
|
||||
banned_files_lovers_maps => [1],
|
||||
bypass_header_checks_maps => [1],
|
||||
bad_header_lovers_maps => [1],
|
||||
};
|
||||
|
||||
$policy_bank{'NO_SPAM_CHECK'} = {
|
||||
bypass_spam_checks_maps => [1],
|
||||
spam_lovers_maps => [1],
|
||||
};
|
||||
|
||||
$policy_bank{'NO_VIRUS_CHECK'} = {
|
||||
bypass_decode_parts => 1,
|
||||
bypass_virus_checks_maps => [1],
|
||||
virus_lovers_maps => [1],
|
||||
};
|
||||
|
||||
$policy_bank{'NO_BANNED_CHECK'} = {
|
||||
bypass_banned_checks_maps => [1],
|
||||
banned_files_lovers_maps => [1],
|
||||
};
|
||||
|
||||
$policy_bank{'NO_BAD_HEADER_CHECK'} = {
|
||||
bypass_header_checks_maps => [1],
|
||||
bad_header_lovers_maps => [1],
|
||||
};
|
||||
|
||||
#$policy_bank{'MILD_WHITELIST'} = {
|
||||
# score_sender_maps => [ { '.' => [-1.8] } ],
|
||||
#};
|
||||
|
||||
#
|
||||
# Logging
|
||||
#
|
||||
$do_syslog = 1; # log via syslogd (preferred)
|
||||
$syslog_facility = 'mail'; # Syslog facility as a string
|
||||
$log_level = 0; # Amavisd log level.
|
||||
# Verbosity: 0, 1, 2, 3, 4, 5.
|
||||
$sa_debug = 0; # SpamAssassin debugging (require $log_level).
|
||||
# Default if off (0).
|
||||
|
||||
# Amavisd on some Linux/BSD distribution use $banned_namepath_re instead of
|
||||
# $banned_filename_re, so we define some blocked file types here.
|
||||
#
|
||||
# Sample input for $banned_namepath_re:
|
||||
#
|
||||
# P=p003\tL=1\tM=multipart/mixed\nP=p002\tL=1/2\tM=application/octet-stream\tT=dat\tN=my_docum.zip
|
||||
# P=p003,L=1,M=multipart/mixed | P=p002,L=1/2,M=application/zip,T=zip,N=FedEx_00628727.zip | P=p005,L=1/2/2,T=asc,N=FedEx_00628727.doc.wsf
|
||||
#
|
||||
# What it means:
|
||||
# - T: type. e.g. zip archive.
|
||||
# - M: MIME type. e.g. application/octet-stream.
|
||||
# - N: suggested (MIME) name. e.g. my_docum.zip.
|
||||
|
||||
$banned_namepath_re = new_RE(
|
||||
#[qr'T=(rar|arc|arj|zoo|gz|bz2)(,|\t)'xmi => 'DISCARD'], # Compressed file types
|
||||
[qr'T=x-(msdownload|msdos-program|msmetafile)(,|\t)'xmi => 'DISCARD'],
|
||||
[qr'T=(hta)(,|\t)'xmi => 'DISCARD'],
|
||||
|
||||
# Dangerous mime types
|
||||
[qr'T=(9|386|LeChiffre|aaa|abc|aepl|ani|aru|atm|aut|b64|bat|bhx|bkd|blf|bll|bmw|boo|bps|bqf|breaking_bad|buk|bup|bxz|cc|ccc|ce0|ceo|cfxxe|chm|cih|cla|class|cmd|com|cpl|crinf|crjoker|crypt|cryptolocker|cryptowall|ctbl|cxq|cyw|dbd|delf|dev|dlb|dli|dll|dllx|dom|drv|dx|dxz|dyv|dyz|ecc|exe|exe-ms|exe1|exe_renamed|exx|ezt|ezz|fag|fjl|fnr|fuj|good|gzquar|hlp|hlw|hqx|hsq|hts|iva|iws|jar|js|kcd|keybtc@inbox_com|let|lik|lkh|lnk|locky|lok|lol!|lpaq5|magic|mfu|micro|mim|mjg|mjz|nls|oar|ocx|osa|ozd|pcx|pgm|php2|php3|pid|pif|plc|pr|pzdc|qit|qrn|r5a|rhk|rna|rsc_tmp|s7p|scr|shs|ska|smm|smtmp|sop|spam|ssy|swf|sys|tko|tps|tsa|tti|ttt|txs|upa|uu|uue|uzy|vb|vba|vbe|vbs|vbx|vexe|vxd|vzr|wlpginstall|ws|wsc|wsf|wsh|wss|xdu|xir|xlm|xlv|xnt|xnxx|xtbl|xxe|xxx|xyz|zix|zvz|zzz)(,|\t)'xmi => 'DISCARD'],
|
||||
|
||||
# Dangerous file name extensions
|
||||
[qr'N=.*\.(9|386|LeChiffre|aaa|abc|aepl|ani|aru|atm|aut|b64|bat|bhx|bkd|blf|bll|bmw|boo|bps|bqf|breaking_bad|buk|bup|bxz|cc|ccc|ce0|ceo|cfxxe|chm|cih|cla|class|cmd|com|cpl|crinf|crjoker|crypt|cryptolocker|cryptowall|ctbl|cxq|cyw|dbd|delf|dev|dlb|dli|dll|dllx|dom|drv|dx|dxz|dyv|dyz|ecc|exe|exe-ms|exe1|exe_renamed|exx|ezt|ezz|fag|fjl|fnr|fuj|good|gzquar|hlp|hlw|hqx|hsq|hts|iva|iws|jar|js|kcd|keybtc@inbox_com|let|lik|lkh|lnk|locky|lok|lol!|lpaq5|magic|mfu|micro|mim|mjg|mjz|nls|oar|ocx|osa|ozd|pcx|pgm|php2|php3|pid|pif|plc|pr|pzdc|qit|qrn|r5a|rhk|rna|rsc_tmp|s7p|scr|shs|ska|smm|smtmp|sop|spam|ssy|swf|sys|tko|tps|tsa|tti|ttt|txs|upa|uu|uue|uzy|vb|vba|vbe|vbs|vbx|vexe|vxd|vzr|wlpginstall|ws|wsc|wsf|wsh|wss|xdu|xir|xlm|xlv|xnt|xnxx|xtbl|xxe|xxx|xyz|zix|zvz|zzz)$'xmi => 'DISCARD'],
|
||||
);
|
||||
|
||||
# Log verbose.
|
||||
$log_templ = $log_verbose_templ;
|
||||
|
||||
# $bounce_killer_score defaults to 100, it will cause quota exceed notification
|
||||
# email sent by Dovecot quarantined by Amavisd.
|
||||
$penpals_bonus_score = undef;
|
||||
$bounce_killer_score = 0;
|
||||
|
||||
# Selectively disable some of the header checks
|
||||
#
|
||||
# Duplicate or multiple occurrence of a header field
|
||||
$allowed_header_tests{'multiple'} = 0;
|
||||
|
||||
# Missing some headers. e.g. 'Date:'
|
||||
$allowed_header_tests{'missing'} = 0;
|
||||
|
||||
# Listen on specified addresses.
|
||||
$inet_socket_bind = ['PH_LOCAL_ADDRESS'];
|
||||
|
||||
# Set ACL
|
||||
@inet_acl = qw(127.0.0.1 [::1] PH_LOCAL_ADDRESS);
|
||||
|
||||
# Num of pre-forked children.
|
||||
# WARNING: it must match (equal to or larger than) the number set in
|
||||
# `maxproc` column in Postfix master.cf for the `smtp-amavis` transport.
|
||||
$max_servers = PH_AMAVISD_MAX_SERVERS;
|
||||
|
||||
1; # insure a defined return
|
||||
@@ -0,0 +1,278 @@
|
||||
-- MySQL template for Amavisd-new-2.7.0 and later releases.
|
||||
-- Extracted from Amavisd docs/README.sql-mysql.
|
||||
|
||||
-- used in @lookup_sql_dsn
|
||||
-- local users
|
||||
CREATE TABLE users (
|
||||
id int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY, -- unique id
|
||||
priority integer NOT NULL DEFAULT '7', -- sort field, 0 is low prior.
|
||||
policy_id integer unsigned NOT NULL DEFAULT '1', -- JOINs with policy.id
|
||||
email varbinary(255) NOT NULL UNIQUE,
|
||||
fullname varchar(255) DEFAULT NULL -- not used by amavisd-new
|
||||
-- local char(1) -- Y/N (optional field, see note further down)
|
||||
);
|
||||
|
||||
-- used in @lookup_sql_dsn
|
||||
-- any e-mail address (non- rfc2822-quoted), external or local,
|
||||
-- used as senders in wblist
|
||||
CREATE TABLE mailaddr (
|
||||
id int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
priority integer NOT NULL DEFAULT '7', -- 0 is low priority
|
||||
email varbinary(255) NOT NULL UNIQUE
|
||||
);
|
||||
|
||||
-- used in @lookup_sql_dsn
|
||||
-- per-recipient whitelist and/or blacklist,
|
||||
-- puts sender and recipient in relation wb (white or blacklisted sender)
|
||||
-- White/blacklist for inbound message
|
||||
CREATE TABLE wblist (
|
||||
rid integer unsigned NOT NULL, -- recipient: users.id
|
||||
sid integer unsigned NOT NULL, -- sender: mailaddr.id
|
||||
wb varchar(10) NOT NULL, -- W or Y / B or N / space=neutral / score
|
||||
PRIMARY KEY (rid,sid)
|
||||
);
|
||||
|
||||
-- White/blacklist for outbound message
|
||||
-- Note: it's used by iRedAPD plugin `amavisd_wblist`, not by Amavisd.
|
||||
CREATE TABLE outbound_wblist (
|
||||
rid integer unsigned NOT NULL, -- recipient: mailaddr.id
|
||||
sid integer unsigned NOT NULL, -- sender: users.id
|
||||
wb varchar(10) NOT NULL, -- W or Y / B or N / space=neutral / score
|
||||
PRIMARY KEY (rid,sid)
|
||||
);
|
||||
|
||||
-- used in @lookup_sql_dsn
|
||||
CREATE TABLE policy (
|
||||
id int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
-- 'id' this is the _only_ required field
|
||||
policy_name varchar(32), -- not used by amavisd-new, a comment
|
||||
|
||||
virus_lover char(1) default NULL, -- Y/N
|
||||
spam_lover char(1) default NULL, -- Y/N
|
||||
unchecked_lover char(1) default NULL, -- Y/N
|
||||
banned_files_lover char(1) default NULL, -- Y/N
|
||||
bad_header_lover char(1) default NULL, -- Y/N
|
||||
|
||||
bypass_virus_checks char(1) default NULL, -- Y/N
|
||||
bypass_spam_checks char(1) default NULL, -- Y/N
|
||||
bypass_banned_checks char(1) default NULL, -- Y/N
|
||||
bypass_header_checks char(1) default NULL, -- Y/N
|
||||
|
||||
virus_quarantine_to varchar(64) default NULL,
|
||||
spam_quarantine_to varchar(64) default NULL,
|
||||
banned_quarantine_to varchar(64) default NULL,
|
||||
unchecked_quarantine_to varchar(64) default NULL,
|
||||
bad_header_quarantine_to varchar(64) default NULL,
|
||||
clean_quarantine_to varchar(64) default NULL,
|
||||
archive_quarantine_to varchar(64) default NULL,
|
||||
|
||||
spam_tag_level float default NULL, -- higher score inserts spam info headers
|
||||
spam_tag2_level float default NULL, -- inserts 'declared spam' header fields
|
||||
spam_tag3_level float default NULL, -- inserts 'blatant spam' header fields
|
||||
spam_kill_level float default NULL, -- higher score triggers evasive actions
|
||||
-- e.g. reject/drop, quarantine, ...
|
||||
-- (subject to final_spam_destiny setting)
|
||||
spam_dsn_cutoff_level float default NULL,
|
||||
spam_quarantine_cutoff_level float default NULL,
|
||||
|
||||
addr_extension_virus varchar(64) default NULL,
|
||||
addr_extension_spam varchar(64) default NULL,
|
||||
addr_extension_banned varchar(64) default NULL,
|
||||
addr_extension_bad_header varchar(64) default NULL,
|
||||
|
||||
warnvirusrecip char(1) default NULL, -- Y/N
|
||||
warnbannedrecip char(1) default NULL, -- Y/N
|
||||
warnbadhrecip char(1) default NULL, -- Y/N
|
||||
newvirus_admin varchar(64) default NULL,
|
||||
virus_admin varchar(64) default NULL,
|
||||
banned_admin varchar(64) default NULL,
|
||||
bad_header_admin varchar(64) default NULL,
|
||||
spam_admin varchar(64) default NULL,
|
||||
spam_subject_tag varchar(64) default NULL,
|
||||
spam_subject_tag2 varchar(64) default NULL,
|
||||
spam_subject_tag3 varchar(64) default NULL,
|
||||
message_size_limit integer default NULL, -- max size in bytes, 0 disable
|
||||
banned_rulenames varchar(64) default NULL, -- comma-separated list of ...
|
||||
-- names mapped through %banned_rules to actual banned_filename tables
|
||||
disclaimer_options varchar(64) default NULL,
|
||||
forward_method varchar(64) default NULL,
|
||||
sa_userconf varchar(64) default NULL,
|
||||
sa_username varchar(64) default NULL
|
||||
);
|
||||
|
||||
-- Required by iRedMail
|
||||
ALTER TABLE policy MODIFY COLUMN policy_name VARCHAR(255) NOT NULL DEFAULT '';
|
||||
CREATE UNIQUE INDEX policy_idx_policy_name ON policy (policy_name);
|
||||
|
||||
-- Read-write part of the dataset (optional) - @storage_sql_dsn.
|
||||
-- May reside in the same or in a separate database as lookups database;
|
||||
-- REQUIRES SUPPORT FOR TRANSACTIONS; specified in @storage_sql_dsn
|
||||
--
|
||||
-- MySQL note ( http://dev.mysql.com/doc/mysql/en/storage-engines.html ):
|
||||
-- ENGINE is the preferred term, but cannot be used before MySQL 4.0.18.
|
||||
-- TYPE is available beginning with MySQL 3.23.0, the first version of
|
||||
-- MySQL for which multiple storage engines were available. If you omit
|
||||
-- the ENGINE or TYPE option, the default storage engine is used.
|
||||
-- By default this is MyISAM.
|
||||
--
|
||||
-- Please create additional indexes on keys when needed, or drop suggested
|
||||
-- ones as appropriate to optimize queries needed by a management application.
|
||||
-- See your database documentation for further optimization hints. With MySQL
|
||||
-- see Chapter 15 of the reference manual. For example the chapter 15.17 says:
|
||||
-- InnoDB does not keep an internal count of rows in a table. To process a
|
||||
-- SELECT COUNT(*) FROM T statement, InnoDB must scan an index of the table,
|
||||
-- which takes some time if the index is not entirely in the buffer pool.
|
||||
--
|
||||
-- Wayne Smith adds: When using MySQL with InnoDB one might want to
|
||||
-- increase buffer size for both pool and log, and might also want
|
||||
-- to change flush settings for a little better performance. Example:
|
||||
-- innodb_buffer_pool_size = 384M
|
||||
-- innodb_log_buffer_size = 8M
|
||||
-- innodb_flush_log_at_trx_commit = 0
|
||||
-- The big performance increase is the first two, the third just helps with
|
||||
-- lowering disk activity. Consider also adjusting the key_buffer_size.
|
||||
|
||||
-- used in @storage_sql_dsn
|
||||
-- provide unique id for each e-mail address, avoids storing copies
|
||||
CREATE TABLE maddr (
|
||||
partition_tag integer DEFAULT 0, -- see $partition_tag
|
||||
id bigint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
email varbinary(255) NOT NULL, -- full mail address
|
||||
-- mail address without address extension: user+abc@domain.com -> user@domain.com
|
||||
email_raw varbinary(255) NOT NULL DEFAULT '',
|
||||
domain varchar(255) NOT NULL, -- only domain part of the email address
|
||||
-- with subdomain fields in reverse
|
||||
CONSTRAINT part_email UNIQUE (partition_tag,email)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
CREATE INDEX maddr_idx_email ON maddr (email);
|
||||
CREATE INDEX maddr_idx_email_raw ON maddr (email_raw);
|
||||
CREATE INDEX maddr_idx_domain ON maddr (domain);
|
||||
|
||||
-- Create trigger to save email address withou address extension
|
||||
-- user+abc@domain.com -> user@domain.com
|
||||
DELIMITER //
|
||||
CREATE TRIGGER `maddr_email_raw`
|
||||
BEFORE INSERT
|
||||
ON `maddr`
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
IF (NEW.email LIKE '%+%') THEN
|
||||
SET NEW.email_raw = CONCAT(SUBSTRING_INDEX(NEW.email, '+', 1), '@', SUBSTRING_INDEX(new.email, '@', -1));
|
||||
ELSE
|
||||
SET NEW.email_raw = NEW.email;
|
||||
END IF;
|
||||
END;
|
||||
//
|
||||
DELIMITER ;
|
||||
|
||||
-- used in @storage_sql_dsn
|
||||
-- information pertaining to each processed message as a whole;
|
||||
-- NOTE: records with NULL msgs.content should be ignored by utilities,
|
||||
-- as such records correspond to messages just being processes, or were lost
|
||||
-- NOTE: instead of a character field time_iso, one might prefer:
|
||||
-- time_iso TIMESTAMP NOT NULL DEFAULT 0,
|
||||
-- but the following MUST then be set in amavisd.conf: $timestamp_fmt_mysql=1
|
||||
CREATE TABLE msgs (
|
||||
partition_tag integer DEFAULT 0, -- see $partition_tag
|
||||
mail_id varbinary(16) NOT NULL, -- long-term unique mail id, dflt 12 ch
|
||||
secret_id varbinary(16) DEFAULT '', -- authorizes release of mail_id, 12 ch
|
||||
am_id varchar(20) NOT NULL, -- id used in the log
|
||||
time_num integer unsigned NOT NULL, -- rx_time: seconds since Unix epoch
|
||||
time_iso char(16) NOT NULL, -- rx_time: ISO8601 UTC ascii time
|
||||
sid bigint unsigned NOT NULL, -- sender: maddr.id
|
||||
policy varchar(255) DEFAULT '', -- policy bank path (like macro %p)
|
||||
client_addr varchar(255) DEFAULT '', -- SMTP client IP address (IPv4 or v6)
|
||||
size integer unsigned NOT NULL, -- message size in bytes
|
||||
originating char(1) DEFAULT ' ' NOT NULL, -- sender from inside or auth'd
|
||||
content char(1),
|
||||
-- V: virus
|
||||
-- B: banned
|
||||
-- U: unchecked
|
||||
-- S: spam(kill)
|
||||
-- Y: spammy(tag2)
|
||||
-- M: bad-mime
|
||||
-- H: bad-header
|
||||
-- O: oversized
|
||||
-- O: mta-err
|
||||
-- C: clean
|
||||
-- is NULL on partially processed mail
|
||||
-- (prior to 2.7.0 the CC_SPAMMY was logged as 's', now 'Y' is used;
|
||||
-- to avoid a need for case-insenstivity in queries)
|
||||
quar_type char(1), -- quarantined as: ' '/F/Z/B/Q/M/L
|
||||
-- none/file/zipfile/bsmtp/sql/
|
||||
-- /mailbox(smtp)/mailbox(lmtp)
|
||||
quar_loc varbinary(255) DEFAULT '', -- quarantine location (e.g. file)
|
||||
dsn_sent char(1), -- was DSN sent? Y/N/q (q=quenched)
|
||||
spam_level float, -- SA spam level (no boosts)
|
||||
message_id varchar(255) DEFAULT '', -- mail Message-ID header field
|
||||
from_addr varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '',
|
||||
-- mail From header field, UTF8
|
||||
subject VARBINARY(255) NOT NULL DEFAULT '',
|
||||
-- mail Subject header field, UTF8
|
||||
host varchar(255) NOT NULL, -- hostname where amavisd is running
|
||||
PRIMARY KEY (partition_tag,mail_id)
|
||||
-- FOREIGN KEY (sid) REFERENCES maddr(id) ON DELETE RESTRICT
|
||||
) ENGINE=InnoDB;
|
||||
CREATE INDEX msgs_idx_sid ON msgs (sid);
|
||||
CREATE INDEX msgs_idx_mess_id ON msgs (message_id); -- useful with pen pals
|
||||
CREATE INDEX msgs_idx_time_num ON msgs (time_num);
|
||||
|
||||
CREATE INDEX msgs_idx_mail_id ON msgs (mail_id);
|
||||
CREATE INDEX msgs_idx_content ON msgs (content);
|
||||
CREATE INDEX msgs_idx_quar_type ON msgs (quar_type);
|
||||
CREATE INDEX msgs_idx_content_time_num ON msgs (content, time_num);
|
||||
CREATE INDEX msgs_idx_spam_level ON msgs (spam_level);
|
||||
|
||||
-- alternatively when purging based on time_iso (instead of msgs_idx_time_num):
|
||||
CREATE INDEX msgs_idx_time_iso ON msgs (time_iso);
|
||||
|
||||
-- used in @storage_sql_dsn
|
||||
-- per-recipient information related to each processed message;
|
||||
-- NOTE: records in msgrcpt without corresponding msgs.mail_id record are
|
||||
-- orphaned and should be ignored and eventually deleted by external utilities
|
||||
CREATE TABLE msgrcpt (
|
||||
partition_tag integer DEFAULT 0, -- see $partition_tag
|
||||
mail_id varbinary(16) NOT NULL, -- (must allow duplicates)
|
||||
rseqnum integer DEFAULT 0 NOT NULL, -- recip's enumeration within msg
|
||||
rid bigint unsigned NOT NULL, -- recipient: maddr.id (dupl. allowed)
|
||||
is_local char(1) DEFAULT ' ' NOT NULL, -- recip is: Y=local, N=foreign
|
||||
content char(1) DEFAULT ' ' NOT NULL, -- content type V/B/U/S/Y/M/H/O/T/C
|
||||
ds char(1) NOT NULL, -- delivery status: P/R/B/D/T
|
||||
-- pass/reject/bounce/discard/tempfail
|
||||
rs char(1) NOT NULL, -- release status: initialized to ' '
|
||||
bl char(1) DEFAULT ' ', -- sender blacklisted by this recip
|
||||
wl char(1) DEFAULT ' ', -- sender whitelisted by this recip
|
||||
bspam_level float, -- per-recipient (total) spam level
|
||||
smtp_resp varchar(255) DEFAULT '', -- SMTP response given to MTA
|
||||
PRIMARY KEY (partition_tag,mail_id,rseqnum)
|
||||
-- FOREIGN KEY (rid) REFERENCES maddr(id) ON DELETE RESTRICT,
|
||||
-- FOREIGN KEY (mail_id) REFERENCES msgs(mail_id) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB;
|
||||
CREATE INDEX msgrcpt_idx_mail_id ON msgrcpt (mail_id);
|
||||
CREATE INDEX msgrcpt_idx_rid ON msgrcpt (rid);
|
||||
|
||||
-- used in @storage_sql_dsn
|
||||
-- mail quarantine in SQL, enabled by $*_quarantine_method='sql:'
|
||||
-- NOTE: records in quarantine without corresponding msgs.mail_id record are
|
||||
-- orphaned and should be ignored and eventually deleted by external utilities
|
||||
CREATE TABLE quarantine (
|
||||
partition_tag integer DEFAULT 0, -- see $partition_tag
|
||||
mail_id varbinary(16) NOT NULL, -- long-term unique mail id
|
||||
chunk_ind integer unsigned NOT NULL, -- chunk number, starting with 1
|
||||
mail_text blob NOT NULL, -- store mail as chunks of octets
|
||||
PRIMARY KEY (partition_tag,mail_id,chunk_ind)
|
||||
-- FOREIGN KEY (mail_id) REFERENCES msgs(mail_id) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
CREATE INDEX quar_idx_mail_id ON quarantine (mail_id);
|
||||
|
||||
-- field msgrcpt.rs is primarily intended for use by quarantine management
|
||||
-- software; the value assigned by amavisd is a space;
|
||||
-- a short _preliminary_ list of possible values:
|
||||
-- 'V' => viewed (marked as read)
|
||||
-- 'R' => released (delivered) to this recipient
|
||||
-- 'p' => pending (a status given to messages when the admin received the
|
||||
-- request but not yet released; targeted to banned parts)
|
||||
-- 'D' => marked for deletion; a cleanup script may delete it
|
||||
|
||||
@@ -0,0 +1,253 @@
|
||||
-- MySQL template for Amavisd-new-2.7.0 and later releases.
|
||||
-- Read-only part of the dataset (@lookup_sql_dsn)
|
||||
|
||||
-- used in @lookup_sql_dsn
|
||||
-- local users
|
||||
CREATE TABLE users (
|
||||
id serial PRIMARY KEY, -- unique id
|
||||
priority integer NOT NULL DEFAULT '7', -- sort field, 0 is low prior.
|
||||
policy_id integer NOT NULL DEFAULT '1' CHECK (policy_id >= 0),
|
||||
-- JOINs with policy.id
|
||||
email bytea NOT NULL UNIQUE, -- email address, non-rfc2822-quoted
|
||||
fullname varchar(255) DEFAULT NULL -- not used by amavisd-new
|
||||
-- local char(1) -- Y/N (optional field, see note further down)
|
||||
);
|
||||
|
||||
-- used in @lookup_sql_dsn
|
||||
-- any e-mail address (non- rfc2822-quoted), external or local,
|
||||
-- used as senders in wblist
|
||||
CREATE TABLE mailaddr (
|
||||
id serial PRIMARY KEY,
|
||||
priority integer NOT NULL DEFAULT '7', -- 0 is low priority
|
||||
email bytea NOT NULL UNIQUE
|
||||
);
|
||||
|
||||
-- used in @lookup_sql_dsn
|
||||
-- per-recipient whitelist and/or blacklist,
|
||||
-- puts sender and recipient in relation wb (white or blacklisted sender)
|
||||
-- White/blacklist for inbound message
|
||||
CREATE TABLE wblist (
|
||||
rid integer NOT NULL CHECK (rid >= 0), -- recipient: users.id
|
||||
sid integer NOT NULL CHECK (sid >= 0), -- sender: mailaddr.id
|
||||
wb varchar(10) NOT NULL, -- W or Y / B or N / space=neutral / score
|
||||
PRIMARY KEY (rid,sid)
|
||||
);
|
||||
|
||||
-- White/blacklist for outbound message
|
||||
-- Note: it's used by iRedAPD plugin `amavisd_wblist`, not by Amavisd.
|
||||
CREATE TABLE outbound_wblist (
|
||||
rid integer NOT NULL CHECK (rid >= 0), -- recipient: mailaddr.id
|
||||
sid integer NOT NULL CHECK (sid >= 0), -- sender: users.id
|
||||
wb varchar(10) NOT NULL, -- W or Y / B or N / space=neutral / score
|
||||
PRIMARY KEY (rid,sid)
|
||||
);
|
||||
|
||||
-- used in @lookup_sql_dsn
|
||||
CREATE TABLE policy (
|
||||
id serial PRIMARY KEY, -- 'id' this is the _only_ required field
|
||||
policy_name varchar(32), -- not used by amavisd-new, a comment
|
||||
|
||||
virus_lover char(1) default NULL, -- Y/N
|
||||
spam_lover char(1) default NULL, -- Y/N
|
||||
unchecked_lover char(1) default NULL, -- Y/N
|
||||
banned_files_lover char(1) default NULL, -- Y/N
|
||||
bad_header_lover char(1) default NULL, -- Y/N
|
||||
|
||||
bypass_virus_checks char(1) default NULL, -- Y/N
|
||||
bypass_spam_checks char(1) default NULL, -- Y/N
|
||||
bypass_banned_checks char(1) default NULL, -- Y/N
|
||||
bypass_header_checks char(1) default NULL, -- Y/N
|
||||
|
||||
virus_quarantine_to varchar(64) default NULL,
|
||||
spam_quarantine_to varchar(64) default NULL,
|
||||
banned_quarantine_to varchar(64) default NULL,
|
||||
unchecked_quarantine_to varchar(64) default NULL,
|
||||
bad_header_quarantine_to varchar(64) default NULL,
|
||||
clean_quarantine_to varchar(64) default NULL,
|
||||
archive_quarantine_to varchar(64) default NULL,
|
||||
|
||||
spam_tag_level real default NULL, -- higher score inserts spam info headers
|
||||
spam_tag2_level real default NULL, -- inserts 'declared spam' header fields
|
||||
spam_tag3_level real default NULL, -- inserts 'blatant spam' header fields
|
||||
spam_kill_level real default NULL, -- higher score triggers evasive actions
|
||||
-- e.g. reject/drop, quarantine, ...
|
||||
-- (subject to final_spam_destiny setting)
|
||||
spam_dsn_cutoff_level real default NULL,
|
||||
spam_quarantine_cutoff_level real default NULL,
|
||||
|
||||
addr_extension_virus varchar(64) default NULL,
|
||||
addr_extension_spam varchar(64) default NULL,
|
||||
addr_extension_banned varchar(64) default NULL,
|
||||
addr_extension_bad_header varchar(64) default NULL,
|
||||
|
||||
warnvirusrecip char(1) default NULL, -- Y/N
|
||||
warnbannedrecip char(1) default NULL, -- Y/N
|
||||
warnbadhrecip char(1) default NULL, -- Y/N
|
||||
newvirus_admin varchar(64) default NULL,
|
||||
virus_admin varchar(64) default NULL,
|
||||
banned_admin varchar(64) default NULL,
|
||||
bad_header_admin varchar(64) default NULL,
|
||||
spam_admin varchar(64) default NULL,
|
||||
spam_subject_tag varchar(64) default NULL,
|
||||
spam_subject_tag2 varchar(64) default NULL,
|
||||
spam_subject_tag3 varchar(64) default NULL,
|
||||
message_size_limit integer default NULL, -- max size in bytes, 0 disable
|
||||
banned_rulenames varchar(64) default NULL, -- comma-separated list of ...
|
||||
-- names mapped through %banned_rules to actual banned_filename tables
|
||||
disclaimer_options varchar(64) default NULL,
|
||||
forward_method varchar(64) default NULL,
|
||||
sa_userconf varchar(64) default NULL,
|
||||
sa_username varchar(64) default NULL
|
||||
);
|
||||
|
||||
-- Required by iRedMail
|
||||
ALTER TABLE policy ALTER COLUMN policy_name TYPE varchar(255);
|
||||
CREATE UNIQUE INDEX policy_idx_policy_name ON policy (policy_name);
|
||||
|
||||
-- Read-write part of the dataset (optional) - @storage_sql_dsn.
|
||||
-- May reside in the same or in a separate database as lookups database;
|
||||
-- REQUIRES SUPPORT FOR TRANSACTIONS; specified in @storage_sql_dsn
|
||||
--
|
||||
-- Please create additional indexes on keys when needed, or drop suggested
|
||||
-- ones as appropriate to optimize queries needed by a management application.
|
||||
-- See your database documentation for further optimization hints.
|
||||
|
||||
-- used in @storage_sql_dsn
|
||||
-- provide unique id for each e-mail address, avoids storing copies
|
||||
CREATE TABLE maddr (
|
||||
partition_tag integer DEFAULT 0, -- see $partition_tag
|
||||
id serial PRIMARY KEY,
|
||||
-- full e-mail address
|
||||
email bytea NOT NULL, -- long-term unique mail id, dflt 12 ch
|
||||
-- mail address without address extension: user+abc@domain.com -> user@domain.com
|
||||
email_raw VARCHAR(255) NOT NULL DEFAULT '',
|
||||
domain bytea NOT NULL, -- only domain part of the email address
|
||||
-- with subdomain fields in reverse
|
||||
CONSTRAINT part_email UNIQUE (partition_tag,email)
|
||||
);
|
||||
|
||||
CREATE INDEX maddr_idx_email ON maddr (email);
|
||||
CREATE INDEX maddr_idx_email_raw ON maddr (email_raw);
|
||||
CREATE INDEX maddr_idx_domain ON maddr (domain);
|
||||
|
||||
-- Create trigger to save email address withou address extension
|
||||
-- user+abc@domain.com -> user@domain.com
|
||||
-- CREATE OR REPLACE FUNCTION strip_addr_extension(bytea, varchar, integer) RETURNS TRIGGER AS $$
|
||||
CREATE OR REPLACE FUNCTION strip_addr_extension()
|
||||
RETURNS TRIGGER AS $$
|
||||
BEGIN
|
||||
IF (NEW.email LIKE '%+%') THEN
|
||||
NEW.email_raw := split_part(convert_from(NEW.email, 'UTF8'), '+', 1) || '@' || split_part(convert_from(NEW.email, 'UTF8'), '@', 2);
|
||||
ELSE
|
||||
NEW.email_raw := convert_from(NEW.email, 'UTF8');
|
||||
END IF;
|
||||
RETURN NEW;
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
|
||||
CREATE TRIGGER maddr_email_raw
|
||||
BEFORE INSERT ON maddr
|
||||
FOR EACH ROW
|
||||
EXECUTE PROCEDURE strip_addr_extension();
|
||||
|
||||
-- used in @storage_sql_dsn
|
||||
-- information pertaining to each processed message as a whole;
|
||||
-- NOTE: records with NULL msgs.content should be ignored by utilities,
|
||||
-- as such records correspond to messages just being processes, or were lost
|
||||
CREATE TABLE msgs (
|
||||
partition_tag integer DEFAULT 0, -- see $partition_tag
|
||||
mail_id bytea NOT NULL, -- long-term unique mail id, dflt 12 ch
|
||||
secret_id bytea DEFAULT '', -- authorizes release of mail_id, 12 ch
|
||||
am_id varchar(20) NOT NULL, -- id used in the log
|
||||
time_num integer NOT NULL CHECK (time_num >= 0),
|
||||
-- rx_time: seconds since Unix epoch
|
||||
time_iso timestamp WITH TIME ZONE NOT NULL,-- rx_time: ISO8601 UTC ascii time
|
||||
sid integer NOT NULL CHECK (sid >= 0), -- sender: maddr.id
|
||||
policy varchar(255) DEFAULT '', -- policy bank path (like macro %p)
|
||||
client_addr varchar(255) DEFAULT '', -- SMTP client IP address (IPv4 or v6)
|
||||
size integer NOT NULL CHECK (size >= 0), -- message size in bytes
|
||||
originating char(1) DEFAULT ' ' NOT NULL, -- sender from inside or auth'd
|
||||
content char(1),
|
||||
-- V: virus
|
||||
-- B: banned
|
||||
-- U: unchecked
|
||||
-- S: spam(kill)
|
||||
-- Y: spammy(tag2)
|
||||
-- M: bad-mime
|
||||
-- H: bad-header
|
||||
-- O: oversized
|
||||
-- O: mta-err
|
||||
-- C: clean
|
||||
-- is NULL on partially processed mail
|
||||
-- (prior to 2.7.0 the CC_SPAMMY was logged as 's', now 'Y' is used;
|
||||
-- to avoid a need for case-insenstivity in queries)
|
||||
quar_type char(1), -- quarantined as: ' '/F/Z/B/Q/M/L
|
||||
-- none/file/zipfile/bsmtp/sql/
|
||||
-- /mailbox(smtp)/mailbox(lmtp)
|
||||
quar_loc varchar(255) DEFAULT '', -- quarantine location (e.g. file)
|
||||
dsn_sent char(1), -- was DSN sent? Y/N/q (q=quenched)
|
||||
spam_level real, -- SA spam level (no boosts)
|
||||
message_id varchar(255) DEFAULT '', -- mail Message-ID header field
|
||||
from_addr bytea DEFAULT '', -- mail From header field, UTF8
|
||||
subject bytea DEFAULT '', -- mail Subject header field, UTF8
|
||||
host varchar(255) NOT NULL, -- hostname where amavisd is running
|
||||
PRIMARY KEY (partition_tag,mail_id)
|
||||
--FOREIGN KEY (sid) REFERENCES maddr(id) ON DELETE RESTRICT
|
||||
);
|
||||
CREATE INDEX msgs_idx_sid ON msgs (sid);
|
||||
CREATE INDEX msgs_idx_mess_id ON msgs (message_id); -- useful with pen pals
|
||||
CREATE INDEX msgs_idx_time_iso ON msgs (time_iso);
|
||||
CREATE INDEX msgs_idx_time_num ON msgs (time_num); -- optional
|
||||
|
||||
CREATE INDEX msgs_idx_mail_id ON msgs (mail_id);
|
||||
CREATE INDEX msgs_idx_content ON msgs (content);
|
||||
CREATE INDEX msgs_idx_quar_type ON msgs (quar_type);
|
||||
-- CREATE INDEX msgs_idx_content_time_num ON msgs (content, time_num);
|
||||
CREATE INDEX msgs_idx_spam_level ON msgs (spam_level);
|
||||
|
||||
-- used in @storage_sql_dsn
|
||||
-- per-recipient information related to each processed message;
|
||||
-- NOTE: records in msgrcpt without corresponding msgs.mail_id record are
|
||||
-- orphaned and should be ignored and eventually deleted by external utilities
|
||||
CREATE TABLE msgrcpt (
|
||||
partition_tag integer DEFAULT 0, -- see $partition_tag
|
||||
mail_id bytea NOT NULL, -- (must allow duplicates)
|
||||
rseqnum integer DEFAULT 0 NOT NULL, -- recip's enumeration within msg
|
||||
rid integer NOT NULL, -- recipient: maddr.id (duplicates allowed)
|
||||
is_local char(1) DEFAULT ' ' NOT NULL, -- recip is: Y=local, N=foreign
|
||||
content char(1) DEFAULT ' ' NOT NULL, -- content type V/B/U/S/Y/M/H/O/T/C
|
||||
ds char(1) NOT NULL, -- delivery status: P/R/B/D/T
|
||||
-- pass/reject/bounce/discard/tempfail
|
||||
rs char(1) NOT NULL, -- release status: initialized to ' '
|
||||
bl char(1) DEFAULT ' ', -- sender blacklisted by this recip
|
||||
wl char(1) DEFAULT ' ', -- sender whitelisted by this recip
|
||||
bspam_level real, -- per-recipient (total) spam level
|
||||
smtp_resp varchar(255) DEFAULT '', -- SMTP response given to MTA
|
||||
PRIMARY KEY (partition_tag,mail_id,rseqnum)
|
||||
--FOREIGN KEY (rid) REFERENCES maddr(id) ON DELETE RESTRICT,
|
||||
--FOREIGN KEY (mail_id) REFERENCES msgs(mail_id) ON DELETE CASCADE
|
||||
);
|
||||
CREATE INDEX msgrcpt_idx_mail_id ON msgrcpt (mail_id);
|
||||
CREATE INDEX msgrcpt_idx_rid ON msgrcpt (rid);
|
||||
|
||||
-- used in @storage_sql_dsn
|
||||
-- mail quarantine in SQL, enabled by $*_quarantine_method='sql:'
|
||||
-- NOTE: records in quarantine without corresponding msgs.mail_id record are
|
||||
-- orphaned and should be ignored and eventually deleted by external utilities
|
||||
CREATE TABLE quarantine (
|
||||
partition_tag integer DEFAULT 0, -- see $partition_tag
|
||||
mail_id bytea NOT NULL, -- long-term unique mail id
|
||||
chunk_ind integer NOT NULL CHECK (chunk_ind >= 0), -- chunk number, 1..
|
||||
mail_text bytea NOT NULL, -- store mail as chunks of octects
|
||||
PRIMARY KEY (partition_tag,mail_id,chunk_ind)
|
||||
--FOREIGN KEY (mail_id) REFERENCES msgs(mail_id) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
-- field msgrcpt.rs is primarily intended for use by quarantine management
|
||||
-- software; the value assigned by amavisd is a space;
|
||||
-- a short _preliminary_ list of possible values:
|
||||
-- 'V' => viewed (marked as read)
|
||||
-- 'R' => released (delivered) to this recipient
|
||||
-- 'p' => pending (a status given to messages when the admin received the
|
||||
-- request but not yet released; targeted to banned parts)
|
||||
-- 'D' => marked for deletion; a cleanup script may delete it
|
||||
@@ -0,0 +1,942 @@
|
||||
#--------------------------------------------------------------------------
|
||||
# LDAP Schema for amavisd-new Jacques Supcik, PhD
|
||||
#----------------------------- IP-Plus Internet Services
|
||||
# Release 1.2.2 Swisscom Enterprise Solutions Ltd
|
||||
# 30 May 2004 3050 Bern - Switzerland
|
||||
#--------------------------------------------------------------------------
|
||||
# Copyright (c) 2004 Jacques Supcik, Swisscom Enterprise Solutions Ltd.
|
||||
# Permission is granted to copy, distribute and/or modify this document
|
||||
# under the terms of the GNU Free Documentation License, Version 1.2
|
||||
# or any later version published by the Free Software Foundation;
|
||||
# with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
|
||||
# A copy of the license is included in the section entitled "GNU
|
||||
# Free Documentation License".
|
||||
#--------------------------------------------------------------------------
|
||||
# Changes made to LDAP Schema to make it import and play nicely with
|
||||
# Novell NDS - Michael Tracey, SONOPRESS USA, LLC April 07 2005
|
||||
# ( uncomment each dn:, changetype:, add:, add X-NDS-NAME attribute, replace
|
||||
# "attributetype" by "attributetypes:" and "objectclasse" by "objectclasses:"
|
||||
# (plural,colon), and unwrap each attributetypes: and objectclasses: )
|
||||
#--------------------------------------------------------------------------
|
||||
# 1.3.6.1.4.1.15312 Jozef Stefan Institute's OID
|
||||
# 1.3.6.1.4.1.15312.2 amavisd-new
|
||||
# 1.3.6.1.4.1.15312.2.2 amavisd-new LDAP Elements
|
||||
# 1.3.6.1.4.1.15312.2.2.1 AttributeTypes
|
||||
# 1.3.6.1.4.1.15312.2.2.2 ObjectClasses
|
||||
# 1.3.6.1.4.1.15312.2.2.3 Syntax Definitions
|
||||
#--------------------------------------------------------------------------
|
||||
|
||||
# Attribute Types
|
||||
#-----------------
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.1
|
||||
NAME 'amavisVirusLover'
|
||||
DESC 'Virus Lover'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.2
|
||||
NAME 'amavisBannedFilesLover'
|
||||
DESC 'Banned Files Lover'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.3
|
||||
NAME 'amavisBypassVirusChecks'
|
||||
DESC 'Bypass Virus Check'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.4
|
||||
NAME 'amavisBypassSpamChecks'
|
||||
DESC 'Bypass Spam Check'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.5
|
||||
NAME 'amavisSpamTagLevel'
|
||||
DESC 'Spam Tag Level'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.6
|
||||
NAME 'amavisSpamTag2Level'
|
||||
DESC 'Spam Tag2 Level'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.7
|
||||
NAME 'amavisSpamKillLevel'
|
||||
DESC 'Spam Kill Level'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.8
|
||||
NAME 'amavisSpamModifiesSubj'
|
||||
DESC 'Modifies Subject on spam - no longer in use since 2.7.0'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.9
|
||||
NAME 'amavisWhitelistSender'
|
||||
DESC 'White List Sender'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.10
|
||||
NAME 'amavisBlacklistSender'
|
||||
DESC 'Black List Sender'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.11
|
||||
NAME 'amavisSpamQuarantineTo'
|
||||
DESC 'Spam Quarantine to'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.12
|
||||
NAME 'amavisSpamLover'
|
||||
DESC 'Spam Lover'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.13
|
||||
NAME 'amavisBadHeaderLover'
|
||||
DESC 'Bad Header Lover'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.14
|
||||
NAME 'amavisBypassBannedChecks'
|
||||
DESC 'Bypass Banned Files Check'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.15
|
||||
NAME 'amavisBypassHeaderChecks'
|
||||
DESC 'Bypass Header Check'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.16
|
||||
NAME 'amavisVirusQuarantineTo'
|
||||
DESC 'Virus quarantine location'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.17
|
||||
NAME 'amavisBannedQuarantineTo'
|
||||
DESC 'Banned Files quarantine location'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.18
|
||||
NAME 'amavisBadHeaderQuarantineTo'
|
||||
DESC 'Bad Header quarantine location'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.19
|
||||
NAME 'amavisLocal'
|
||||
DESC 'Is user considered local'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.20
|
||||
NAME 'amavisMessageSizeLimit'
|
||||
DESC 'Message size limit'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.21
|
||||
NAME 'amavisWarnVirusRecip'
|
||||
DESC 'Notify virus recipients'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.22
|
||||
NAME 'amavisWarnBannedRecip'
|
||||
DESC 'Notify banned file recipients'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.23
|
||||
NAME 'amavisWarnBadHeaderRecip'
|
||||
DESC 'Notify bad header recipients'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.24
|
||||
NAME 'amavisVirusAdmin'
|
||||
DESC 'Virus admin'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.25
|
||||
NAME 'amavisNewVirusAdmin'
|
||||
DESC 'New virus admin'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.26
|
||||
NAME 'amavisSpamAdmin'
|
||||
DESC 'Spam admin'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.27
|
||||
NAME 'amavisBannedAdmin'
|
||||
DESC 'Banned file admin'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.28
|
||||
NAME 'amavisBadHeaderAdmin'
|
||||
DESC 'Bad header admin'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.29
|
||||
NAME 'amavisBannedRuleNames'
|
||||
DESC 'Banned rule names'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.30
|
||||
NAME 'amavisSpamDsnCutoffLevel'
|
||||
DESC 'Spam DSN Cutoff Level'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.31
|
||||
NAME 'amavisSpamQuarantineCutoffLevel'
|
||||
DESC 'Spam Quarantine Cutoff Level'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.32
|
||||
NAME 'amavisSpamSubjectTag'
|
||||
DESC 'Spam Subject Tag'
|
||||
EQUALITY caseExactIA5Match
|
||||
SUBSTR caseExactSubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.33
|
||||
NAME 'amavisSpamSubjectTag2'
|
||||
DESC 'Spam Subject Tag2'
|
||||
EQUALITY caseExactIA5Match
|
||||
SUBSTR caseExactSubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.34
|
||||
NAME 'amavisArchiveQuarantineTo'
|
||||
DESC 'Archive quarantine location'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.35
|
||||
NAME 'amavisAddrExtensionVirus'
|
||||
DESC 'Address Extension for Virus'
|
||||
EQUALITY caseExactIA5Match
|
||||
SUBSTR caseExactSubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.36
|
||||
NAME 'amavisAddrExtensionSpam'
|
||||
DESC 'Address Extension for Spam'
|
||||
EQUALITY caseExactIA5Match
|
||||
SUBSTR caseExactSubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.37
|
||||
NAME 'amavisAddrExtensionBanned'
|
||||
DESC 'Address Extension for Banned'
|
||||
EQUALITY caseExactIA5Match
|
||||
SUBSTR caseExactSubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.38
|
||||
NAME 'amavisAddrExtensionBadHeader'
|
||||
DESC 'Address Extension for Bad Header'
|
||||
EQUALITY caseExactIA5Match
|
||||
SUBSTR caseExactSubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
# NEW since 2.7.0:
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.39
|
||||
NAME 'amavisSpamTag3Level'
|
||||
DESC 'Spam Tag3 Level'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.40
|
||||
NAME 'amavisSpamSubjectTag3'
|
||||
DESC 'Spam Subject Tag3'
|
||||
EQUALITY caseExactIA5Match
|
||||
SUBSTR caseExactSubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.41
|
||||
NAME 'amavisUncheckedQuarantineTo'
|
||||
DESC 'Virus quarantine location'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.42
|
||||
NAME 'amavisCleanQuarantineTo'
|
||||
DESC 'Clean quarantine location'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.43
|
||||
NAME 'amavisUncheckedLover'
|
||||
DESC 'Unchecked Files Lover'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.44
|
||||
NAME 'amavisForwardMethod'
|
||||
DESC 'Forward / next hop destination'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.45
|
||||
NAME 'amavisSaUserConf'
|
||||
DESC 'SpamAssassin user preferences configuration filename'
|
||||
EQUALITY caseExactIA5Match
|
||||
SUBSTR caseExactSubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.46
|
||||
NAME 'amavisSaUserName'
|
||||
DESC 'SpamAssassin username (for Bayes and AWL lookups)'
|
||||
EQUALITY caseExactIA5Match
|
||||
SUBSTR caseExactSubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: attributetypes
|
||||
attributetype ( 1.3.6.1.4.1.15312.2.2.1.47
|
||||
NAME 'amavisDisclaimerOptions'
|
||||
DESC 'Altermime disclaimer map data'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
||||
SINGLE-VALUE )
|
||||
|
||||
|
||||
# Classes
|
||||
#---------
|
||||
|
||||
# amavisAccount
|
||||
# This class is an auxiliary class, this mean that the class will be added
|
||||
# to a structural class. Usually, the structural class is the class that
|
||||
# represent the mail account itself (e.g. an inetOrgPerson)
|
||||
|
||||
#dn: cn=schema
|
||||
#changetype: modify
|
||||
#add: objectclasses
|
||||
objectclass ( 1.3.6.1.4.1.15312.2.2.2.1
|
||||
NAME 'amavisAccount' AUXILIARY
|
||||
DESC 'Amavisd Account'
|
||||
SUP top
|
||||
MAY ( amavisVirusLover $ amavisBypassVirusChecks $
|
||||
amavisSpamLover $ amavisBypassSpamChecks $
|
||||
amavisBannedFilesLover $ amavisBypassBannedChecks $
|
||||
amavisBadHeaderLover $ amavisBypassHeaderChecks $
|
||||
amavisSpamTagLevel $ amavisSpamTag2Level $ amavisSpamKillLevel $
|
||||
amavisWhitelistSender $ amavisBlacklistSender $
|
||||
amavisSpamQuarantineTo $ amavisVirusQuarantineTo $
|
||||
amavisBannedQuarantineTo $ amavisBadHeaderQuarantineTo $
|
||||
amavisArchiveQuarantineTo $
|
||||
amavisSpamModifiesSubj $ amavisLocal $ amavisMessageSizeLimit $
|
||||
amavisWarnVirusRecip $ amavisWarnBannedRecip $
|
||||
amavisWarnBadHeaderRecip $ amavisVirusAdmin $ amavisNewVirusAdmin $
|
||||
amavisSpamAdmin $ amavisBannedAdmin $ amavisBadHeaderAdmin $
|
||||
amavisBannedRuleNames $
|
||||
amavisSpamDsnCutoffLevel $ amavisSpamQuarantineCutoffLevel $
|
||||
amavisSpamSubjectTag $ amavisSpamSubjectTag2 $
|
||||
amavisAddrExtensionVirus $ amavisAddrExtensionSpam $
|
||||
amavisAddrExtensionBanned $ amavisAddrExtensionBadHeader $
|
||||
amavisSpamTag3Level $ amavisSpamSubjectTag3 $
|
||||
amavisUncheckedQuarantineTo $ amavisCleanQuarantineTo $
|
||||
amavisUncheckedLover $ amavisForwardMethod $
|
||||
amavisSaUserConf $ amavisSaUserName $ amavisDisclaimerOptions $
|
||||
cn $ description ) )
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
#
|
||||
# GNU Free Documentation License
|
||||
# Version 1.2, November 2002
|
||||
#
|
||||
#
|
||||
# Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
|
||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
# Everyone is permitted to copy and distribute verbatim copies
|
||||
# of this license document, but changing it is not allowed.
|
||||
#
|
||||
#
|
||||
# 0. PREAMBLE
|
||||
#
|
||||
# The purpose of this License is to make a manual, textbook, or other
|
||||
# functional and useful document "free" in the sense of freedom: to
|
||||
# assure everyone the effective freedom to copy and redistribute it,
|
||||
# with or without modifying it, either commercially or noncommercially.
|
||||
# Secondarily, this License preserves for the author and publisher a way
|
||||
# to get credit for their work, while not being considered responsible
|
||||
# for modifications made by others.
|
||||
#
|
||||
# This License is a kind of "copyleft", which means that derivative
|
||||
# works of the document must themselves be free in the same sense. It
|
||||
# complements the GNU General Public License, which is a copyleft
|
||||
# license designed for free software.
|
||||
#
|
||||
# We have designed this License in order to use it for manuals for free
|
||||
# software, because free software needs free documentation: a free
|
||||
# program should come with manuals providing the same freedoms that the
|
||||
# software does. But this License is not limited to software manuals;
|
||||
# it can be used for any textual work, regardless of subject matter or
|
||||
# whether it is published as a printed book. We recommend this License
|
||||
# principally for works whose purpose is instruction or reference.
|
||||
#
|
||||
#
|
||||
# 1. APPLICABILITY AND DEFINITIONS
|
||||
#
|
||||
# This License applies to any manual or other work, in any medium, that
|
||||
# contains a notice placed by the copyright holder saying it can be
|
||||
# distributed under the terms of this License. Such a notice grants a
|
||||
# world-wide, royalty-free license, unlimited in duration, to use that
|
||||
# work under the conditions stated herein. The "Document", below,
|
||||
# refers to any such manual or work. Any member of the public is a
|
||||
# licensee, and is addressed as "you". You accept the license if you
|
||||
# copy, modify or distribute the work in a way requiring permission
|
||||
# under copyright law.
|
||||
#
|
||||
# A "Modified Version" of the Document means any work containing the
|
||||
# Document or a portion of it, either copied verbatim, or with
|
||||
# modifications and/or translated into another language.
|
||||
#
|
||||
# A "Secondary Section" is a named appendix or a front-matter section of
|
||||
# the Document that deals exclusively with the relationship of the
|
||||
# publishers or authors of the Document to the Document's overall subject
|
||||
# (or to related matters) and contains nothing that could fall directly
|
||||
# within that overall subject. (Thus, if the Document is in part a
|
||||
# textbook of mathematics, a Secondary Section may not explain any
|
||||
# mathematics.) The relationship could be a matter of historical
|
||||
# connection with the subject or with related matters, or of legal,
|
||||
# commercial, philosophical, ethical or political position regarding
|
||||
# them.
|
||||
#
|
||||
# The "Invariant Sections" are certain Secondary Sections whose titles
|
||||
# are designated, as being those of Invariant Sections, in the notice
|
||||
# that says that the Document is released under this License. If a
|
||||
# section does not fit the above definition of Secondary then it is not
|
||||
# allowed to be designated as Invariant. The Document may contain zero
|
||||
# Invariant Sections. If the Document does not identify any Invariant
|
||||
# Sections then there are none.
|
||||
#
|
||||
# The "Cover Texts" are certain short passages of text that are listed,
|
||||
# as Front-Cover Texts or Back-Cover Texts, in the notice that says that
|
||||
# the Document is released under this License. A Front-Cover Text may
|
||||
# be at most 5 words, and a Back-Cover Text may be at most 25 words.
|
||||
#
|
||||
# A "Transparent" copy of the Document means a machine-readable copy,
|
||||
# represented in a format whose specification is available to the
|
||||
# general public, that is suitable for revising the document
|
||||
# straightforwardly with generic text editors or (for images composed of
|
||||
# pixels) generic paint programs or (for drawings) some widely available
|
||||
# drawing editor, and that is suitable for input to text formatters or
|
||||
# for automatic translation to a variety of formats suitable for input
|
||||
# to text formatters. A copy made in an otherwise Transparent file
|
||||
# format whose markup, or absence of markup, has been arranged to thwart
|
||||
# or discourage subsequent modification by readers is not Transparent.
|
||||
# An image format is not Transparent if used for any substantial amount
|
||||
# of text. A copy that is not "Transparent" is called "Opaque".
|
||||
#
|
||||
# Examples of suitable formats for Transparent copies include plain
|
||||
# ASCII without markup, Texinfo input format, LaTeX input format, SGML
|
||||
# or XML using a publicly available DTD, and standard-conforming simple
|
||||
# HTML, PostScript or PDF designed for human modification. Examples of
|
||||
# transparent image formats include PNG, XCF and JPG. Opaque formats
|
||||
# include proprietary formats that can be read and edited only by
|
||||
# proprietary word processors, SGML or XML for which the DTD and/or
|
||||
# processing tools are not generally available, and the
|
||||
# machine-generated HTML, PostScript or PDF produced by some word
|
||||
# processors for output purposes only.
|
||||
#
|
||||
# The "Title Page" means, for a printed book, the title page itself,
|
||||
# plus such following pages as are needed to hold, legibly, the material
|
||||
# this License requires to appear in the title page. For works in
|
||||
# formats which do not have any title page as such, "Title Page" means
|
||||
# the text near the most prominent appearance of the work's title,
|
||||
# preceding the beginning of the body of the text.
|
||||
#
|
||||
# A section "Entitled XYZ" means a named subunit of the Document whose
|
||||
# title either is precisely XYZ or contains XYZ in parentheses following
|
||||
# text that translates XYZ in another language. (Here XYZ stands for a
|
||||
# specific section name mentioned below, such as "Acknowledgements",
|
||||
# "Dedications", "Endorsements", or "History".) To "Preserve the Title"
|
||||
# of such a section when you modify the Document means that it remains a
|
||||
# section "Entitled XYZ" according to this definition.
|
||||
#
|
||||
# The Document may include Warranty Disclaimers next to the notice which
|
||||
# states that this License applies to the Document. These Warranty
|
||||
# Disclaimers are considered to be included by reference in this
|
||||
# License, but only as regards disclaiming warranties: any other
|
||||
# implication that these Warranty Disclaimers may have is void and has
|
||||
# no effect on the meaning of this License.
|
||||
#
|
||||
#
|
||||
# 2. VERBATIM COPYING
|
||||
#
|
||||
# You may copy and distribute the Document in any medium, either
|
||||
# commercially or noncommercially, provided that this License, the
|
||||
# copyright notices, and the license notice saying this License applies
|
||||
# to the Document are reproduced in all copies, and that you add no other
|
||||
# conditions whatsoever to those of this License. You may not use
|
||||
# technical measures to obstruct or control the reading or further
|
||||
# copying of the copies you make or distribute. However, you may accept
|
||||
# compensation in exchange for copies. If you distribute a large enough
|
||||
# number of copies you must also follow the conditions in section 3.
|
||||
#
|
||||
# You may also lend copies, under the same conditions stated above, and
|
||||
# you may publicly display copies.
|
||||
#
|
||||
#
|
||||
# 3. COPYING IN QUANTITY
|
||||
#
|
||||
# If you publish printed copies (or copies in media that commonly have
|
||||
# printed covers) of the Document, numbering more than 100, and the
|
||||
# Document's license notice requires Cover Texts, you must enclose the
|
||||
# copies in covers that carry, clearly and legibly, all these Cover
|
||||
# Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
|
||||
# the back cover. Both covers must also clearly and legibly identify
|
||||
# you as the publisher of these copies. The front cover must present
|
||||
# the full title with all words of the title equally prominent and
|
||||
# visible. You may add other material on the covers in addition.
|
||||
# Copying with changes limited to the covers, as long as they preserve
|
||||
# the title of the Document and satisfy these conditions, can be treated
|
||||
# as verbatim copying in other respects.
|
||||
#
|
||||
# If the required texts for either cover are too voluminous to fit
|
||||
# legibly, you should put the first ones listed (as many as fit
|
||||
# reasonably) on the actual cover, and continue the rest onto adjacent
|
||||
# pages.
|
||||
#
|
||||
# If you publish or distribute Opaque copies of the Document numbering
|
||||
# more than 100, you must either include a machine-readable Transparent
|
||||
# copy along with each Opaque copy, or state in or with each Opaque copy
|
||||
# a computer-network location from which the general network-using
|
||||
# public has access to download using public-standard network protocols
|
||||
# a complete Transparent copy of the Document, free of added material.
|
||||
# If you use the latter option, you must take reasonably prudent steps,
|
||||
# when you begin distribution of Opaque copies in quantity, to ensure
|
||||
# that this Transparent copy will remain thus accessible at the stated
|
||||
# location until at least one year after the last time you distribute an
|
||||
# Opaque copy (directly or through your agents or retailers) of that
|
||||
# edition to the public.
|
||||
#
|
||||
# It is requested, but not required, that you contact the authors of the
|
||||
# Document well before redistributing any large number of copies, to give
|
||||
# them a chance to provide you with an updated version of the Document.
|
||||
#
|
||||
#
|
||||
# 4. MODIFICATIONS
|
||||
#
|
||||
# You may copy and distribute a Modified Version of the Document under
|
||||
# the conditions of sections 2 and 3 above, provided that you release
|
||||
# the Modified Version under precisely this License, with the Modified
|
||||
# Version filling the role of the Document, thus licensing distribution
|
||||
# and modification of the Modified Version to whoever possesses a copy
|
||||
# of it. In addition, you must do these things in the Modified Version:
|
||||
#
|
||||
# A. Use in the Title Page (and on the covers, if any) a title distinct
|
||||
# from that of the Document, and from those of previous versions
|
||||
# (which should, if there were any, be listed in the History section
|
||||
# of the Document). You may use the same title as a previous version
|
||||
# if the original publisher of that version gives permission.
|
||||
# B. List on the Title Page, as authors, one or more persons or entities
|
||||
# responsible for authorship of the modifications in the Modified
|
||||
# Version, together with at least five of the principal authors of the
|
||||
# Document (all of its principal authors, if it has fewer than five),
|
||||
# unless they release you from this requirement.
|
||||
# C. State on the Title page the name of the publisher of the
|
||||
# Modified Version, as the publisher.
|
||||
# D. Preserve all the copyright notices of the Document.
|
||||
# E. Add an appropriate copyright notice for your modifications
|
||||
# adjacent to the other copyright notices.
|
||||
# F. Include, immediately after the copyright notices, a license notice
|
||||
# giving the public permission to use the Modified Version under the
|
||||
# terms of this License, in the form shown in the Addendum below.
|
||||
# G. Preserve in that license notice the full lists of Invariant Sections
|
||||
# and required Cover Texts given in the Document's license notice.
|
||||
# H. Include an unaltered copy of this License.
|
||||
# I. Preserve the section Entitled "History", Preserve its Title, and add
|
||||
# to it an item stating at least the title, year, new authors, and
|
||||
# publisher of the Modified Version as given on the Title Page. If
|
||||
# there is no section Entitled "History" in the Document, create one
|
||||
# stating the title, year, authors, and publisher of the Document as
|
||||
# given on its Title Page, then add an item describing the Modified
|
||||
# Version as stated in the previous sentence.
|
||||
# J. Preserve the network location, if any, given in the Document for
|
||||
# public access to a Transparent copy of the Document, and likewise
|
||||
# the network locations given in the Document for previous versions
|
||||
# it was based on. These may be placed in the "History" section.
|
||||
# You may omit a network location for a work that was published at
|
||||
# least four years before the Document itself, or if the original
|
||||
# publisher of the version it refers to gives permission.
|
||||
# K. For any section Entitled "Acknowledgements" or "Dedications",
|
||||
# Preserve the Title of the section, and preserve in the section all
|
||||
# the substance and tone of each of the contributor acknowledgements
|
||||
# and/or dedications given therein.
|
||||
# L. Preserve all the Invariant Sections of the Document,
|
||||
# unaltered in their text and in their titles. Section numbers
|
||||
# or the equivalent are not considered part of the section titles.
|
||||
# M. Delete any section Entitled "Endorsements". Such a section
|
||||
# may not be included in the Modified Version.
|
||||
# N. Do not retitle any existing section to be Entitled "Endorsements"
|
||||
# or to conflict in title with any Invariant Section.
|
||||
# O. Preserve any Warranty Disclaimers.
|
||||
#
|
||||
# If the Modified Version includes new front-matter sections or
|
||||
# appendices that qualify as Secondary Sections and contain no material
|
||||
# copied from the Document, you may at your option designate some or all
|
||||
# of these sections as invariant. To do this, add their titles to the
|
||||
# list of Invariant Sections in the Modified Version's license notice.
|
||||
# These titles must be distinct from any other section titles.
|
||||
#
|
||||
# You may add a section Entitled "Endorsements", provided it contains
|
||||
# nothing but endorsements of your Modified Version by various
|
||||
# parties--for example, statements of peer review or that the text has
|
||||
# been approved by an organization as the authoritative definition of a
|
||||
# standard.
|
||||
#
|
||||
# You may add a passage of up to five words as a Front-Cover Text, and a
|
||||
# passage of up to 25 words as a Back-Cover Text, to the end of the list
|
||||
# of Cover Texts in the Modified Version. Only one passage of
|
||||
# Front-Cover Text and one of Back-Cover Text may be added by (or
|
||||
# through arrangements made by) any one entity. If the Document already
|
||||
# includes a cover text for the same cover, previously added by you or
|
||||
# by arrangement made by the same entity you are acting on behalf of,
|
||||
# you may not add another; but you may replace the old one, on explicit
|
||||
# permission from the previous publisher that added the old one.
|
||||
#
|
||||
# The author(s) and publisher(s) of the Document do not by this License
|
||||
# give permission to use their names for publicity for or to assert or
|
||||
# imply endorsement of any Modified Version.
|
||||
#
|
||||
#
|
||||
# 5. COMBINING DOCUMENTS
|
||||
#
|
||||
# You may combine the Document with other documents released under this
|
||||
# License, under the terms defined in section 4 above for modified
|
||||
# versions, provided that you include in the combination all of the
|
||||
# Invariant Sections of all of the original documents, unmodified, and
|
||||
# list them all as Invariant Sections of your combined work in its
|
||||
# license notice, and that you preserve all their Warranty Disclaimers.
|
||||
#
|
||||
# The combined work need only contain one copy of this License, and
|
||||
# multiple identical Invariant Sections may be replaced with a single
|
||||
# copy. If there are multiple Invariant Sections with the same name but
|
||||
# different contents, make the title of each such section unique by
|
||||
# adding at the end of it, in parentheses, the name of the original
|
||||
# author or publisher of that section if known, or else a unique number.
|
||||
# Make the same adjustment to the section titles in the list of
|
||||
# Invariant Sections in the license notice of the combined work.
|
||||
#
|
||||
# In the combination, you must combine any sections Entitled "History"
|
||||
# in the various original documents, forming one section Entitled
|
||||
# "History"; likewise combine any sections Entitled "Acknowledgements",
|
||||
# and any sections Entitled "Dedications". You must delete all sections
|
||||
# Entitled "Endorsements".
|
||||
#
|
||||
#
|
||||
# 6. COLLECTIONS OF DOCUMENTS
|
||||
#
|
||||
# You may make a collection consisting of the Document and other documents
|
||||
# released under this License, and replace the individual copies of this
|
||||
# License in the various documents with a single copy that is included in
|
||||
# the collection, provided that you follow the rules of this License for
|
||||
# verbatim copying of each of the documents in all other respects.
|
||||
#
|
||||
# You may extract a single document from such a collection, and distribute
|
||||
# it individually under this License, provided you insert a copy of this
|
||||
# License into the extracted document, and follow this License in all
|
||||
# other respects regarding verbatim copying of that document.
|
||||
#
|
||||
#
|
||||
# 7. AGGREGATION WITH INDEPENDENT WORKS
|
||||
#
|
||||
# A compilation of the Document or its derivatives with other separate
|
||||
# and independent documents or works, in or on a volume of a storage or
|
||||
# distribution medium, is called an "aggregate" if the copyright
|
||||
# resulting from the compilation is not used to limit the legal rights
|
||||
# of the compilation's users beyond what the individual works permit.
|
||||
# When the Document is included in an aggregate, this License does not
|
||||
# apply to the other works in the aggregate which are not themselves
|
||||
# derivative works of the Document.
|
||||
#
|
||||
# If the Cover Text requirement of section 3 is applicable to these
|
||||
# copies of the Document, then if the Document is less than one half of
|
||||
# the entire aggregate, the Document's Cover Texts may be placed on
|
||||
# covers that bracket the Document within the aggregate, or the
|
||||
# electronic equivalent of covers if the Document is in electronic form.
|
||||
# Otherwise they must appear on printed covers that bracket the whole
|
||||
# aggregate.
|
||||
#
|
||||
#
|
||||
# 8. TRANSLATION
|
||||
#
|
||||
# Translation is considered a kind of modification, so you may
|
||||
# distribute translations of the Document under the terms of section 4.
|
||||
# Replacing Invariant Sections with translations requires special
|
||||
# permission from their copyright holders, but you may include
|
||||
# translations of some or all Invariant Sections in addition to the
|
||||
# original versions of these Invariant Sections. You may include a
|
||||
# translation of this License, and all the license notices in the
|
||||
# Document, and any Warranty Disclaimers, provided that you also include
|
||||
# the original English version of this License and the original versions
|
||||
# of those notices and disclaimers. In case of a disagreement between
|
||||
# the translation and the original version of this License or a notice
|
||||
# or disclaimer, the original version will prevail.
|
||||
#
|
||||
# If a section in the Document is Entitled "Acknowledgements",
|
||||
# "Dedications", or "History", the requirement (section 4) to Preserve
|
||||
# its Title (section 1) will typically require changing the actual
|
||||
# title.
|
||||
#
|
||||
#
|
||||
# 9. TERMINATION
|
||||
#
|
||||
# You may not copy, modify, sublicense, or distribute the Document except
|
||||
# as expressly provided for under this License. Any other attempt to
|
||||
# copy, modify, sublicense or distribute the Document is void, and will
|
||||
# automatically terminate your rights under this License. However,
|
||||
# parties who have received copies, or rights, from you under this
|
||||
# License will not have their licenses terminated so long as such
|
||||
# parties remain in full compliance.
|
||||
#
|
||||
#
|
||||
# 10. FUTURE REVISIONS OF THIS LICENSE
|
||||
#
|
||||
# The Free Software Foundation may publish new, revised versions
|
||||
# of the GNU Free Documentation License from time to time. Such new
|
||||
# versions will be similar in spirit to the present version, but may
|
||||
# differ in detail to address new problems or concerns. See
|
||||
# http://www.gnu.org/copyleft/.
|
||||
#
|
||||
# Each version of the License is given a distinguishing version number.
|
||||
# If the Document specifies that a particular numbered version of this
|
||||
# License "or any later version" applies to it, you have the option of
|
||||
# following the terms and conditions either of that specified version or
|
||||
# of any later version that has been published (not as a draft) by the
|
||||
# Free Software Foundation. If the Document does not specify a version
|
||||
# number of this License, you may choose any version ever published (not
|
||||
# as a draft) by the Free Software Foundation.
|
||||
@@ -0,0 +1,46 @@
|
||||
-- Default server-wide spam policy
|
||||
--
|
||||
-- *) with 'spam_lover=Y' and:
|
||||
--
|
||||
-- - with 'spam_quarantine_to=spam-quarantine', spam will be delivered
|
||||
-- to mailbox and a copy will be quarantined
|
||||
-- - with 'spam_quarantine_to=' (empty value), spam will be delivered to
|
||||
-- mailbox, no copy will be quarantined
|
||||
--
|
||||
-- *) with 'spam_lover=N' and
|
||||
--
|
||||
-- - with 'spam_quarantine_to=spam-quarantine', spam will be quarantined,
|
||||
-- no copy will be delivered to mailbox.
|
||||
-- - with 'spam_quarantine_to=' (empty value), spam won't be quarantined,
|
||||
-- a copy will be delivered to mailbox.
|
||||
--
|
||||
|
||||
INSERT INTO policy (policy_name,
|
||||
spam_lover,
|
||||
virus_lover,
|
||||
banned_files_lover,
|
||||
bad_header_lover,
|
||||
bypass_spam_checks,
|
||||
bypass_virus_checks,
|
||||
bypass_banned_checks,
|
||||
bypass_header_checks,
|
||||
spam_quarantine_to,
|
||||
virus_quarantine_to,
|
||||
banned_quarantine_to,
|
||||
bad_header_quarantine_to)
|
||||
VALUES ('@.',
|
||||
'Y',
|
||||
'N',
|
||||
'N',
|
||||
'Y',
|
||||
'N',
|
||||
'N',
|
||||
'N',
|
||||
'N',
|
||||
'',
|
||||
'virus-quarantine',
|
||||
'banned-quarantine',
|
||||
'');
|
||||
|
||||
INSERT INTO users (priority, email) VALUES (0, '@.');
|
||||
UPDATE users SET policy_id = (SELECT id FROM policy WHERE policy.policy_name='@.' LIMIT 1);
|
||||
Reference in New Issue
Block a user