Working on DNS and email
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
70ef42bf98
commit
97a73102bf
@ -1,20 +0,0 @@
|
||||
FROM ubuntu:jammy
|
||||
|
||||
RUN apt-get -q update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
||||
cron vim ssh rsync \
|
||||
letsencrypt \
|
||||
python3-certbot-apache \
|
||||
python3-certbot-nginx \
|
||||
&& apt-get clean \
|
||||
&& for dir in apt dpkg cache log; do \
|
||||
if [[ -e /var/lib/apt/lists/${dir} ]]; then \
|
||||
rm -rf /var/lib/apt/lists/${dir}; \
|
||||
else \
|
||||
true ; \
|
||||
fi ; \
|
||||
done
|
||||
|
||||
COPY /Dockerfile.cron /Dockerfile
|
||||
|
||||
ENTRYPOINT [ "cron", "-f" ]
|
11
Dockerfile.dns
Normal file
11
Dockerfile.dns
Normal file
@ -0,0 +1,11 @@
|
||||
FROM ubuntu:jammy
|
||||
|
||||
RUN apt-get -q update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
||||
bind9 \
|
||||
isc-dhcp-server \
|
||||
openssh-server \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log}
|
||||
|
||||
ENTRYPOINT [ "/dns.sh" ]
|
15
Dockerfile.letsencrypt
Normal file
15
Dockerfile.letsencrypt
Normal file
@ -0,0 +1,15 @@
|
||||
FROM ubuntu:jammy
|
||||
|
||||
RUN apt-get -q update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
||||
cron vim ssh rsync \
|
||||
letsencrypt \
|
||||
python3-certbot-apache \
|
||||
python3-certbot-nginx \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log}
|
||||
|
||||
COPY /Dockerfile.letsencrypt /Dockerfile.letsencrypt
|
||||
COPY /letsencrypt.sh /letsencrypt.sh
|
||||
|
||||
ENTRYPOINT [ "/letsencrypt.sh" ]
|
26
Dockerfile.mail
Normal file
26
Dockerfile.mail
Normal file
@ -0,0 +1,26 @@
|
||||
FROM ubuntu:jammy
|
||||
|
||||
RUN apt-get -q update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
||||
amavisd-new \
|
||||
clamav-daemon \
|
||||
clamav-freshclam \
|
||||
cron \
|
||||
dovecot-core \
|
||||
dovecot-managesieved \
|
||||
dovecot-sieve \
|
||||
inotify-tools \
|
||||
milter-greylist \
|
||||
opendkim \
|
||||
openssh-server \
|
||||
postfix \
|
||||
spamassassin \
|
||||
python3 \
|
||||
python-is-python3 \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log}
|
||||
|
||||
COPY /Dockerfile.mail /Dockerfile.mail
|
||||
COPY /mail.sh /mail.sh
|
||||
|
||||
ENTRYPOINT [ "/mail.sh" ]
|
@ -14,7 +14,7 @@ RUN apt-get -q update \
|
||||
RUN a2enmod php8.1 \
|
||||
&& a2enmod rewrite
|
||||
|
||||
COPY /Dockerfile /Dockerfile
|
||||
COPY /ketreweb.sh /ketreweb.sh
|
||||
COPY /Dockerfile.web /Dockerfile.web
|
||||
COPY /web.sh /web.sh
|
||||
|
||||
ENTRYPOINT [ "/ketreweb.sh" ]
|
||||
ENTRYPOINT [ "/web.sh" ]
|
21
config/mail/etc/amavis/README.l10n
Normal file
21
config/mail/etc/amavis/README.l10n
Normal file
@ -0,0 +1,21 @@
|
||||
$Id: README.l10n 742 2005-12-26 17:15:22Z hmh $
|
||||
|
||||
First of all, read /usr/share/doc/amavisd-new/README.customize.gz
|
||||
|
||||
Amavisd-new is UTF8-aware, and it will do character-set conversion when dealing
|
||||
with DSN templates. The full unicode codespace is available, if used with the
|
||||
proper encodings... and you have to use the proper encodings if you don't want
|
||||
your DSNs to be flagged as more charset-challenged SPAM by other systems.
|
||||
|
||||
ALWAYS respect the charset when adding l10n files.
|
||||
|
||||
Amavisd-new does charset conversion twice: one when reading the text files with
|
||||
localized templates (to internal perl UTF8), and another when writing the email
|
||||
notification (from internal perl UTF8 to $hdr_encoding and $bdy_encoding).
|
||||
|
||||
Headers will be RFC2047-encoded if they have any codepoints not allowed by
|
||||
RFC2822 after the charset conversions. The body text charset encoding is
|
||||
inserted in the proper MIME header.
|
||||
|
||||
More details are available in /usr/share/doc/amavisd-new/RELEASE_NOTES.gz
|
||||
|
47
config/mail/etc/amavis/conf.d/01-debian
Normal file
47
config/mail/etc/amavis/conf.d/01-debian
Normal file
@ -0,0 +1,47 @@
|
||||
use strict;
|
||||
|
||||
# ADMINISTRATORS:
|
||||
# Debian suggests that any changes you need to do that should never
|
||||
# be "updated" by the Debian package should be made in another file,
|
||||
# overriding the settings in this file.
|
||||
#
|
||||
# The package will *not* overwrite your settings, but by keeping
|
||||
# them separate, you will make the task of merging changes on these
|
||||
# configuration files much simpler...
|
||||
|
||||
# see /usr/share/doc/amavisd-new/examples/amavisd.conf-default for
|
||||
# a list of all variables with their defaults;
|
||||
# see /usr/share/doc/amavisd-new/examples/amavisd.conf-sample for
|
||||
# a traditional-style commented file
|
||||
# [note: the above files were not converted to Debian settings!]
|
||||
#
|
||||
# for more details see documentation in /usr/share/doc/amavisd-new
|
||||
# and at http://www.ijs.si/software/amavisd/amavisd-new-docs.html
|
||||
|
||||
|
||||
# SETTINGS RARELY MODIFIED BY THE LOCAL ADMIN
|
||||
|
||||
$ENV{PATH} = $path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';
|
||||
$file = 'file';
|
||||
$gzip = 'gzip';
|
||||
$bzip2 = 'bzip2';
|
||||
$lzop = 'lzop';
|
||||
$rpm2cpio = ['rpm2cpio.pl','rpm2cpio'];
|
||||
$cabextract = 'cabextract';
|
||||
$uncompress = ['uncompress', 'gzip -d', 'zcat'];
|
||||
#$unfreeze = ['unfreeze', 'freeze -d', 'melt', 'fcat']; #disabled (non-free, no security support)
|
||||
$unfreeze = undef;
|
||||
$arc = ['nomarch', 'arc'];
|
||||
$unarj = ['arj', 'unarj'];
|
||||
#$unrar = ['rar', 'unrar']; #disabled (non-free, no security support)
|
||||
$unrar = ['unrar-free'];
|
||||
$zoo = 'zoo';
|
||||
$lha = 'lha';
|
||||
$lha = undef;
|
||||
$pax = 'pax';
|
||||
$cpio = 'cpio';
|
||||
$ar = 'ar';
|
||||
$ripole = 'ripole';
|
||||
$dspam = 'dspam';
|
||||
|
||||
1; # ensure a defined return
|
19
config/mail/etc/amavis/conf.d/05-domain_id
Normal file
19
config/mail/etc/amavis/conf.d/05-domain_id
Normal file
@ -0,0 +1,19 @@
|
||||
use strict;
|
||||
|
||||
# $mydomain is used just for convenience in the config files and it is not
|
||||
# used internally by amavisd-new except in the default X_HEADER_LINE (which
|
||||
# Debian overrides by default anyway).
|
||||
|
||||
chomp($mydomain = `head -n 1 /etc/mailname`);
|
||||
|
||||
# amavisd-new needs to know which email domains are to be considered local
|
||||
# to the administrative domain. Only emails to "local" domains are subject
|
||||
# to certain functionality, such as the addition of spam tags.
|
||||
#
|
||||
# Default local domains to $mydomain and all subdomains. Remember to
|
||||
# override or redefine this if $mydomain is changed later in the config
|
||||
# sequence.
|
||||
|
||||
@local_domains_acl = ( ".$mydomain" );
|
||||
|
||||
1; # ensure a defined return
|
13
config/mail/etc/amavis/conf.d/05-node_id
Normal file
13
config/mail/etc/amavis/conf.d/05-node_id
Normal file
@ -0,0 +1,13 @@
|
||||
use strict;
|
||||
|
||||
# $myhostname is used by amavisd-new for node identification, and it is
|
||||
# important to get it right (e.g. for ESMTP EHLO, loop detection, and so on).
|
||||
|
||||
chomp($myhostname = `hostname --fqdn`);
|
||||
|
||||
# To manually set $myhostname, edit the following line with the correct Fully
|
||||
# Qualified Domain Name (FQDN) and remove the # at the beginning of the line.
|
||||
#
|
||||
#$myhostname = "mail.example.com";
|
||||
|
||||
1; # ensure a defined return
|
475
config/mail/etc/amavis/conf.d/15-av_scanners
Normal file
475
config/mail/etc/amavis/conf.d/15-av_scanners
Normal file
@ -0,0 +1,475 @@
|
||||
use strict;
|
||||
|
||||
##
|
||||
## AV Scanners (Debian version)
|
||||
##
|
||||
|
||||
@av_scanners = (
|
||||
|
||||
# ### http://www.clanfield.info/sophie/ (http://www.vanja.com/tools/sophie/)
|
||||
# ['Sophie',
|
||||
# \&ask_daemon, ["{}/\n", '/var/run/sophie'],
|
||||
# qr/(?x)^ 0+ ( : | [\000\r\n]* $)/m, qr/(?x)^ 1 ( : | [\000\r\n]* $)/m,
|
||||
# qr/(?x)^ [-+]? \d+ : (.*?) [\000\r\n]* $/m ],
|
||||
|
||||
# ### http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/
|
||||
# ['Sophos SAVI', \&sophos_savi ],
|
||||
|
||||
### http://www.clamav.net/
|
||||
['ClamAV-clamd',
|
||||
\&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],
|
||||
qr/\bOK$/m, qr/\bFOUND$/m,
|
||||
qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
|
||||
# NOTE: run clamd under the same user as amavisd, or run it under its own
|
||||
# uid such as clamav, add user clamav to the amavis group, and then add
|
||||
# AllowSupplementaryGroups to clamd.conf;
|
||||
# NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in
|
||||
# this entry; when running chrooted one may prefer socket "$MYHOME/clamd".
|
||||
|
||||
# ### http://www.openantivirus.org/
|
||||
# ['OpenAntiVirus ScannerDaemon (OAV)',
|
||||
# \&ask_daemon, ["SCAN {}\n", '127.0.0.1:8127'],
|
||||
# qr/^OK/m, qr/^FOUND: /m, qr/^FOUND: (.+)/m ],
|
||||
|
||||
# ### http://www.vanja.com/tools/trophie/
|
||||
# ['Trophie',
|
||||
# \&ask_daemon, ["{}/\n", '/var/run/trophie'],
|
||||
# qr/(?x)^ 0+ ( : | [\000\r\n]* $)/m, qr/(?x)^ 1 ( : | [\000\r\n]* $)/m,
|
||||
# qr/(?x)^ [-+]? \d+ : (.*?) [\000\r\n]* $/m ],
|
||||
|
||||
# ### http://www.grisoft.com/
|
||||
# ['AVG Anti-Virus',
|
||||
# \&ask_daemon, ["SCAN {}\n", '127.0.0.1:55555'],
|
||||
# qr/^200/m, qr/^403/m, qr/^403 .*?: ([^\r\n]+)/m ],
|
||||
|
||||
# ### http://www.f-prot.com/
|
||||
# ['F-Prot fpscand', # F-PROT Antivirus for BSD/Linux/Solaris, version 6
|
||||
# \&ask_daemon,
|
||||
# ["SCAN FILE {}/*\n", '127.0.0.1:10200'],
|
||||
# qr/^(0|8|64) /m,
|
||||
# qr/^([1235679]|1[01345]) |<[^>:]*(?i)(infected|suspicious|unwanted)/m,
|
||||
# qr/(?i)<[^>:]*(?:infected|suspicious|unwanted)[^>:]*: ([^>]*)>/m ],
|
||||
|
||||
# ### http://www.f-prot.com/
|
||||
# ['F-Prot f-protd', # old version
|
||||
# \&ask_daemon,
|
||||
# ["GET {}/*?-dumb%20-archive%20-packed HTTP/1.0\r\n\r\n",
|
||||
# ['127.0.0.1:10200', '127.0.0.1:10201', '127.0.0.1:10202',
|
||||
# '127.0.0.1:10203', '127.0.0.1:10204'] ],
|
||||
# qr/(?i)<summary[^>]*>clean<\/summary>/m,
|
||||
# qr/(?i)<summary[^>]*>infected<\/summary>/m,
|
||||
# qr/(?i)<name>(.+)<\/name>/m ],
|
||||
|
||||
# ### http://www.sald.com/, http://www.dials.ru/english/, http://www.drweb.ru/
|
||||
# ['DrWebD', \&ask_daemon, # DrWebD 4.31 or later
|
||||
# [pack('N',1). # DRWEBD_SCAN_CMD
|
||||
# pack('N',0x00280001). # DONT_CHANGEMAIL, IS_MAIL, RETURN_VIRUSES
|
||||
# pack('N', # path length
|
||||
# length("$TEMPBASE/amavis-yyyymmddTHHMMSS-xxxxx/parts/pxxx")).
|
||||
# '{}/*'. # path
|
||||
# pack('N',0). # content size
|
||||
# pack('N',0),
|
||||
# '/var/drweb/run/drwebd.sock',
|
||||
# # '/var/amavis/var/run/drwebd.sock', # suitable for chroot
|
||||
# # '/usr/local/drweb/run/drwebd.sock', # FreeBSD drweb ports default
|
||||
# # '127.0.0.1:3000', # or over an inet socket
|
||||
# ],
|
||||
# qr/\A\x00[\x10\x11][\x00\x10]\x00/sm, # IS_CLEAN,EVAL_KEY; SKIPPED
|
||||
# qr/\A\x00[\x00\x01][\x00\x10][\x20\x40\x80]/sm,# KNOWN_V,UNKNOWN_V,V._MODIF
|
||||
# qr/\A.{12}(?:infected with )?([^\x00]+)\x00/sm,
|
||||
# ],
|
||||
# # NOTE: If using amavis-milter, change length to:
|
||||
# # length("$TEMPBASE/amavis-milter-xxxxxxxxxxxxxx/parts/pxxx").
|
||||
|
||||
### http://www.kaspersky.com/ (kav4mailservers)
|
||||
['KasperskyLab AVP - aveclient',
|
||||
['/usr/local/kav/bin/aveclient','/usr/local/share/kav/bin/aveclient',
|
||||
'/opt/kav/5.5/kav4mailservers/bin/aveclient','aveclient'],
|
||||
'-p /var/run/aveserver -s {}/*',
|
||||
[0,3,6,8], qr/\b(INFECTED|SUSPICION|SUSPICIOUS)\b/m,
|
||||
qr/(?:INFECTED|WARNING|SUSPICION|SUSPICIOUS) (.+)/m,
|
||||
],
|
||||
# NOTE: one may prefer [0],[2,3,4,5], depending on how suspicious,
|
||||
# currupted or protected archives are to be handled
|
||||
|
||||
### http://www.kaspersky.com/
|
||||
['KasperskyLab AntiViral Toolkit Pro (AVP)', ['avp'],
|
||||
'-* -P -B -Y -O- {}', [0,3,6,8], [2,4], # any use for -A -K ?
|
||||
qr/infected: (.+)/m,
|
||||
sub {chdir('/opt/AVP') or die "Can't chdir to AVP: $!"},
|
||||
sub {chdir($TEMPBASE) or die "Can't chdir back to $TEMPBASE $!"},
|
||||
],
|
||||
|
||||
### The kavdaemon and AVPDaemonClient have been removed from Kasperky
|
||||
### products and replaced by aveserver and aveclient
|
||||
['KasperskyLab AVPDaemonClient',
|
||||
[ '/opt/AVP/kavdaemon', 'kavdaemon',
|
||||
'/opt/AVP/AvpDaemonClient', 'AvpDaemonClient',
|
||||
'/opt/AVP/AvpTeamDream', 'AvpTeamDream',
|
||||
'/opt/AVP/avpdc', 'avpdc' ],
|
||||
"-f=$TEMPBASE {}", [0,8], [3,4,5,6], qr/infected: ([^\r\n]+)/m ],
|
||||
# change the startup-script in /etc/init.d/kavd to:
|
||||
# DPARMS="-* -Y -dl -f=/var/amavis /var/amavis"
|
||||
# (or perhaps: DPARMS="-I0 -Y -* /var/amavis" )
|
||||
# adjusting /var/amavis above to match your $TEMPBASE.
|
||||
# The '-f=/var/amavis' is needed if not running it as root, so it
|
||||
# can find, read, and write its pid file, etc., see 'man kavdaemon'.
|
||||
# defUnix.prf: there must be an entry "*/var/amavis" (or whatever
|
||||
# directory $TEMPBASE specifies) in the 'Names=' section.
|
||||
# cd /opt/AVP/DaemonClients; configure; cd Sample; make
|
||||
# cp AvpDaemonClient /opt/AVP/
|
||||
# su - vscan -c "${PREFIX}/kavdaemon ${DPARMS}"
|
||||
|
||||
### http://www.centralcommand.com/
|
||||
['CentralCommand Vexira (new) vascan',
|
||||
['vascan','/usr/lib/Vexira/vascan'],
|
||||
"-a s --timeout=60 --temp=$TEMPBASE -y $QUARANTINEDIR ".
|
||||
"--log=/var/log/vascan.log {}",
|
||||
[0,3], [1,2,5],
|
||||
qr/(?x)^\s* (?:virus|iworm|macro|mutant|sequence|trojan)\ found:\ ( [^\]\s']+ )\ \.\.\.\ /m ],
|
||||
# Adjust the path of the binary and the virus database as needed.
|
||||
# 'vascan' does not allow to have the temp directory to be the same as
|
||||
# the quarantine directory, and the quarantine option can not be disabled.
|
||||
# If $QUARANTINEDIR is not used, then another directory must be specified
|
||||
# to appease 'vascan'. Move status 3 to the second list if password
|
||||
# protected files are to be considered infected.
|
||||
|
||||
### http://www.avira.com/
|
||||
### Avira AntiVir (formerly H+BEDV) or (old) CentralCommand Vexira Antivirus
|
||||
['Avira AntiVir', ['antivir','vexira'],
|
||||
'--allfiles -noboot -nombr -rs -s -z {}', [0], qr/ALERT:|VIRUS:/m,
|
||||
qr/(?x)^\s* (?: ALERT: \s* (?: \[ | [^']* ' ) |
|
||||
(?i) VIRUS:\ .*?\ virus\ '?) ( [^\]\s']+ )/m ],
|
||||
# NOTE: if you only have a demo version, remove -z and add 214, as in:
|
||||
# '--allfiles -noboot -nombr -rs -s {}', [0,214], qr/ALERT:|VIRUS:/,
|
||||
|
||||
### http://www.commandsoftware.com/
|
||||
['Command AntiVirus for Linux', 'csav',
|
||||
'-all -archive -packed {}', [50], [51,52,53],
|
||||
qr/Infection: (.+)/m ],
|
||||
|
||||
### http://www.symantec.com/
|
||||
['Symantec CarrierScan via Symantec CommandLineScanner',
|
||||
'cscmdline', '-a scan -i 1 -v -s 127.0.0.1:7777 {}',
|
||||
qr/^Files Infected:\s+0$/m, qr/^Infected\b/m,
|
||||
qr/^(?:Info|Virus Name):\s+(.+)/m ],
|
||||
|
||||
### http://www.symantec.com/
|
||||
['Symantec AntiVirus Scan Engine',
|
||||
'savsecls', '-server 127.0.0.1:7777 -mode scanrepair -details -verbose {}',
|
||||
[0], qr/^Infected\b/m,
|
||||
qr/^(?:Info|Virus Name):\s+(.+)/m ],
|
||||
# NOTE: check options and patterns to see which entry better applies
|
||||
|
||||
# ### http://www.f-secure.com/products/anti-virus/ version 4.65
|
||||
# ['F-Secure Antivirus for Linux servers',
|
||||
# ['/opt/f-secure/fsav/bin/fsav', 'fsav'],
|
||||
# '--delete=no --disinf=no --rename=no --archive=yes --auto=yes '.
|
||||
# '--dumb=yes --list=no --mime=yes {}', [0], [3,6,8],
|
||||
# qr/(?:infection|Infected|Suspected): (.+)/m ],
|
||||
|
||||
### http://www.f-secure.com/products/anti-virus/ version 5.52
|
||||
['F-Secure Antivirus for Linux servers',
|
||||
['/opt/f-secure/fsav/bin/fsav', 'fsav'],
|
||||
'--virus-action1=report --archive=yes --auto=yes '.
|
||||
'--dumb=yes --list=no --mime=yes {}', [0], [3,4,6,8],
|
||||
qr/(?:infection|Infected|Suspected|Riskware): (.+)/m ],
|
||||
# NOTE: internal archive handling may be switched off by '--archive=no'
|
||||
# to prevent fsav from exiting with status 9 on broken archives
|
||||
|
||||
# ### http://www.avast.com/
|
||||
# ['avast! Antivirus daemon',
|
||||
# \&ask_daemon, # greets with 220, terminate with QUIT
|
||||
# ["SCAN {}\015\012QUIT\015\012", '/var/run/avast4/mailscanner.sock'],
|
||||
# qr/\t\[\+\]/m, qr/\t\[L\]\t/m, qr/\t\[L\]\t([^[ \t\015\012]+)/m ],
|
||||
|
||||
# ### http://www.avast.com/
|
||||
# ['avast! Antivirus - Client/Server Version', 'avastlite',
|
||||
# '-a /var/run/avast4/mailscanner.sock -n {}', [0], [1],
|
||||
# qr/\t\[L\]\t([^[ \t\015\012]+)/m ],
|
||||
|
||||
['CAI InoculateIT', 'inocucmd', # retired product
|
||||
'-sec -nex {}', [0], [100],
|
||||
qr/was infected by virus (.+)/m ],
|
||||
# see: http://www.flatmtn.com/computer/Linux-Antivirus_CAI.html
|
||||
|
||||
### http://www3.ca.com/Solutions/Product.asp?ID=156 (ex InoculateIT)
|
||||
['CAI eTrust Antivirus', 'etrust-wrapper',
|
||||
'-arc -nex -spm h {}', [0], [101],
|
||||
qr/is infected by virus: (.+)/m ],
|
||||
# NOTE: requires suid wrapper around inocmd32; consider flag: -mod reviewer
|
||||
# see http://marc.theaimsgroup.com/?l=amavis-user&m=109229779912783
|
||||
|
||||
### http://mks.com.pl/english.html
|
||||
['MkS_Vir for Linux (beta)', ['mks32','mks'],
|
||||
'-s {}/*', [0], [1,2],
|
||||
qr/--[ \t]*(.+)/m ],
|
||||
|
||||
### http://mks.com.pl/english.html
|
||||
['MkS_Vir daemon', 'mksscan',
|
||||
'-s -q {}', [0], [1..7],
|
||||
qr/^... (\S+)/m ],
|
||||
|
||||
# ### http://www.nod32.com/, version v2.52 (old)
|
||||
# ['ESET NOD32 for Linux Mail servers',
|
||||
# ['/opt/eset/nod32/bin/nod32cli', 'nod32cli'],
|
||||
# '--subdir --files -z --sfx --rtp --adware --unsafe --pattern --heur '.
|
||||
# '-w -a --action-on-infected=accept --action-on-uncleanable=accept '.
|
||||
# '--action-on-notscanned=accept {}',
|
||||
# [0,3], [1,2], qr/virus="([^"]+)"/m ],
|
||||
|
||||
# ### http://www.eset.com/, version v2.7 (old)
|
||||
# ['ESET NOD32 Linux Mail Server - command line interface',
|
||||
# ['/usr/bin/nod32cli', '/opt/eset/nod32/bin/nod32cli', 'nod32cli'],
|
||||
# '--subdir {}', [0,3], [1,2], qr/virus="([^"]+)"/m ],
|
||||
|
||||
# ### http://www.eset.com/, version 2.71.12
|
||||
# ['ESET Software ESETS Command Line Interface',
|
||||
# ['/usr/bin/esets_cli', 'esets_cli'],
|
||||
# '--subdir {}', [0], [1,2,3], qr/virus="([^"]+)"/m ],
|
||||
|
||||
### http://www.eset.com/, version 3.0
|
||||
['ESET Software ESETS Command Line Interface',
|
||||
['/usr/bin/esets_cli', 'esets_cli'],
|
||||
'--subdir {}', [0], [2,3],
|
||||
qr/:\s*action="(?!accepted)[^"]*"\n.*:\s*virus="([^"]*)"/m ],
|
||||
|
||||
## http://www.nod32.com/, NOD32LFS version 2.5 and above
|
||||
['ESET NOD32 for Linux File servers',
|
||||
['/opt/eset/nod32/sbin/nod32','nod32'],
|
||||
'--files -z --mail --sfx --rtp --adware --unsafe --pattern --heur '.
|
||||
'-w -a --action=1 -b {}',
|
||||
[0], [1,10], qr/^object=.*, virus="(.*?)",/m ],
|
||||
|
||||
# Experimental, based on posting from Rado Dibarbora (Dibo) on 2002-05-31
|
||||
# ['ESET Software NOD32 Client/Server (NOD32SS)',
|
||||
# \&ask_daemon2, # greets with 200, persistent, terminate with QUIT
|
||||
# ["SCAN {}/*\r\n", '127.0.0.1:8448' ],
|
||||
# qr/^200 File OK/m, qr/^201 /m, qr/^201 (.+)/m ],
|
||||
|
||||
# Disabled as it conflicts with packaged /usr/bin/nvcc of "nvidia-cuda-toolkit"
|
||||
# (LP: 1582318)
|
||||
# ### http://www.norman.com/products_nvc.shtml
|
||||
# ['Norman Virus Control v5 / Linux', 'nvcc',
|
||||
# '-c -l:0 -s -u -temp:$TEMPBASE {}', [0,10,11], [1,2,14],
|
||||
# qr/(?i).* virus in .* -> \'(.+)\'/m ],
|
||||
|
||||
### http://www.pandasoftware.com/
|
||||
['Panda CommandLineSecure 9 for Linux',
|
||||
['/opt/pavcl/usr/bin/pavcl','pavcl'],
|
||||
'-auto -aex -heu -cmp -nbr -nor -nos -eng -nob {}',
|
||||
qr/Number of files infected[ .]*: 0+(?!\d)/m,
|
||||
qr/Number of files infected[ .]*: 0*[1-9]/m,
|
||||
qr/Found virus :\s*(\S+)/m ],
|
||||
# NOTE: for efficiency, start the Panda in resident mode with 'pavcl -tsr'
|
||||
# before starting amavisd - the bases are then loaded only once at startup.
|
||||
# To reload bases in a signature update script:
|
||||
# /opt/pavcl/usr/bin/pavcl -tsr -ulr; /opt/pavcl/usr/bin/pavcl -tsr
|
||||
# Please review other options of pavcl, for example:
|
||||
# -nomalw, -nojoke, -nodial, -nohackt, -nospyw, -nocookies
|
||||
|
||||
# ### http://www.pandasoftware.com/
|
||||
# ['Panda Antivirus for Linux', ['pavcl'],
|
||||
# '-TSR -aut -aex -heu -cmp -nbr -nor -nso -eng {}',
|
||||
# [0], [0x10, 0x30, 0x50, 0x70, 0x90, 0xB0, 0xD0, 0xF0],
|
||||
# qr/Found virus :\s*(\S+)/m ],
|
||||
|
||||
# GeCAD AV technology is acquired by Microsoft; RAV has been discontinued.
|
||||
# Check your RAV license terms before fiddling with the following two lines!
|
||||
# ['GeCAD RAV AntiVirus 8', 'ravav',
|
||||
# '--all --archive --mail {}', [1], [2,3,4,5], qr/Infected: (.+)/m ],
|
||||
# # NOTE: the command line switches changed with scan engine 8.5 !
|
||||
# # (btw, assigning stdin to /dev/null causes RAV to fail)
|
||||
|
||||
### http://www.nai.com/
|
||||
['NAI McAfee AntiVirus (uvscan)', 'uvscan',
|
||||
'--secure -rv --mime --summary --noboot - {}', [0], [13],
|
||||
qr/(?x) Found (?:
|
||||
\ the\ (.+)\ (?:virus|trojan) |
|
||||
\ (?:virus|trojan)\ or\ variant\ ([^ ]+) |
|
||||
:\ (.+)\ NOT\ a\ virus)/m,
|
||||
# sub {$ENV{LD_PRELOAD}='/lib/libc.so.6'},
|
||||
# sub {delete $ENV{LD_PRELOAD}},
|
||||
],
|
||||
# NOTE1: with RH9: force the dynamic linker to look at /lib/libc.so.6 before
|
||||
# anything else by setting environment variable LD_PRELOAD=/lib/libc.so.6
|
||||
# and then clear it when finished to avoid confusing anything else.
|
||||
# NOTE2: to treat encrypted files as viruses replace the [13] with:
|
||||
# qr/^\s{5,}(Found|is password-protected|.*(virus|trojan))/
|
||||
|
||||
### http://www.virusbuster.hu/en/
|
||||
['VirusBuster', ['vbuster', 'vbengcl'],
|
||||
"{} -ss -i '*' -log=$MYHOME/vbuster.log", [0], [1],
|
||||
qr/: '(.*)' - Virus/m ],
|
||||
# VirusBuster Ltd. does not support the daemon version for the workstation
|
||||
# engine (vbuster-eng-1.12-linux-i386-libc6.tgz) any longer. The names of
|
||||
# binaries, some parameters AND return codes have changed (from 3 to 1).
|
||||
# See also the new Vexira entry 'vascan' which is possibly related.
|
||||
|
||||
# ### http://www.virusbuster.hu/en/
|
||||
# ['VirusBuster (Client + Daemon)', 'vbengd',
|
||||
# '-f -log scandir {}', [0], [3],
|
||||
# qr/Virus found = (.*);/m ],
|
||||
# # HINT: for an infected file it always returns 3,
|
||||
# # although the man-page tells a different story
|
||||
|
||||
### http://www.cyber.com/
|
||||
['CyberSoft VFind', 'vfind',
|
||||
'--vexit {}/*', [0], [23], qr/##==>>>> VIRUS ID: CVDL (.+)/m,
|
||||
# sub {$ENV{VSTK_HOME}='/usr/lib/vstk'},
|
||||
],
|
||||
|
||||
### http://www.avast.com/
|
||||
['avast! Antivirus', ['/usr/bin/avastcmd','avastcmd'],
|
||||
'-a -i -n -t=A {}', [0], [1], qr/\binfected by:\s+([^ \t\n\[\]]+)/m ],
|
||||
|
||||
### http://www.ikarus-software.com/
|
||||
['Ikarus AntiVirus for Linux', 'ikarus',
|
||||
'{}', [0], [40], qr/Signature (.+) found/m ],
|
||||
|
||||
### http://www.bitdefender.com/
|
||||
['BitDefender', 'bdscan', # new version
|
||||
'--action=ignore --no-list {}', qr/^Infected files *:0+(?!\d)/m,
|
||||
qr/^(?:Infected files|Identified viruses|Suspect files) *:0*[1-9]/m,
|
||||
qr/(?:suspected|infected): (.*)(?:\033|$)/m ],
|
||||
|
||||
### http://www.bitdefender.com/
|
||||
['BitDefender', 'bdc', # old version
|
||||
'--arc --mail {}', qr/^Infected files *:0+(?!\d)/m,
|
||||
qr/^(?:Infected files|Identified viruses|Suspect files) *:0*[1-9]/m,
|
||||
qr/(?:suspected|infected): (.*)(?:\033|$)/m ],
|
||||
# consider also: --all --nowarn --alev=15 --flev=15. The --all argument may
|
||||
# not apply to your version of bdc, check documentation and see 'bdc --help'
|
||||
|
||||
### ArcaVir for Linux and Unix http://www.arcabit.pl/
|
||||
['ArcaVir for Linux', ['arcacmd','arcacmd.static'],
|
||||
'-v 1 -summary 0 -s {}', [0], [1,2],
|
||||
qr/(?:VIR|WIR):[ \t]*(.+)/m ],
|
||||
|
||||
# ['File::Scan', sub {Amavis::AV::ask_av(sub{
|
||||
# use File::Scan; my($fn)=@_;
|
||||
# my($f)=File::Scan->new(max_txt_size=>0, max_bin_size=>0);
|
||||
# my($vname) = $f->scan($fn);
|
||||
# $f->error ? (2,"Error: ".$f->error)
|
||||
# : ($vname ne '') ? (1,"$vname FOUND") : (0,"Clean")}, @_) },
|
||||
# ["{}/*"], [0], [1], qr/^(.*) FOUND$/m ],
|
||||
|
||||
# ### fully-fledged checker for JPEG marker segments of invalid length
|
||||
# ['check-jpeg',
|
||||
# sub { use JpegTester (); Amavis::AV::ask_av(\&JpegTester::test_jpeg, @_) },
|
||||
# ["{}/*"], undef, [1], qr/^(bad jpeg: .*)$/m ],
|
||||
# # NOTE: place file JpegTester.pm somewhere where Perl can find it,
|
||||
# # for example in /usr/local/lib/perl5/site_perl
|
||||
|
||||
# ### example: simpleminded checker for JPEG marker segments with
|
||||
# ### invalid length (only checks first 32k, which is not thorough enough)
|
||||
# ['check-jpeg-simple',
|
||||
# sub { Amavis::AV::ask_av(sub {
|
||||
# my($f)=@_; local(*FF,$_,$1,$2); my(@r)=(0,'not jpeg');
|
||||
# open(FF,$f) or die "jpeg: open err $f: $!";
|
||||
# binmode(FF) or die "jpeg: binmode err $f: $!";
|
||||
# defined read(FF,$_,32000) or die "jpeg: read err $f: $!";
|
||||
# close(FF) or die "jpeg: close err $f: $!";
|
||||
# if (/^\xff\xd8\xff/) {
|
||||
# @r=(0,'jpeg ok');
|
||||
# while (!/\G(?:\xff\xd9|\z)/gc) { # EOI or eof
|
||||
# if (/\G\xff+(?=\xff|\z)/gc) {} # fill-bytes before marker
|
||||
# elsif (/\G\xff([\x01\xd0-\xd8])/gc) {} # TEM, RSTi, SOI
|
||||
# elsif (/\G\xff([^\x00\xff])(..)/gcs) { # marker segment start
|
||||
# my($n)=unpack("n",$2)-2;
|
||||
# $n=32766 if $n>32766; # Perl regexp limit
|
||||
# if ($n<0) {@r=(1,"bad jpeg: len=$n, pos=".pos); last}
|
||||
# elsif (/\G.{$n}/gcs) {} # ok
|
||||
# elsif (/\G.{0,$n}\z/gcs) {last} # truncated
|
||||
# else {@r=(1,"bad jpeg: unexpected, pos=".pos); last}
|
||||
# }
|
||||
# elsif (/\G[^\xff]+/gc) {} # ECS
|
||||
# elsif (/\G(?:\xff\x00)+/gc) {} # ECS
|
||||
# else {@r=(2,"bad jpeg: unexpected char, pos=".pos); last}
|
||||
# }
|
||||
# }; @r}, @_) },
|
||||
# ["{}/*"], undef, [1], qr/^(bad jpeg: .*)$/m ],
|
||||
|
||||
# ### an example/testing/template virus scanner (external), wastes 3 seconds
|
||||
# ['wasteful sleeper example',
|
||||
# '/bin/sleep', '3', # calls external program
|
||||
# undef, undef, qr/no such/m ],
|
||||
|
||||
# ### an example/testing/template virus scanner (internal), does nothing
|
||||
# ['null',
|
||||
# sub {}, ["{}"], # supplies its own subroutine, no external program
|
||||
# undef, undef, qr/no such/m ],
|
||||
|
||||
);
|
||||
|
||||
|
||||
# If no virus scanners from the @av_scanners list produce 'clean' nor
|
||||
# 'infected' status (i.e. they all fail to run or the list is empty),
|
||||
# then _all_ scanners from the @av_scanners_backup list are tried
|
||||
# (again, subject to $first_infected_stops_scan). When there are both
|
||||
# daemonized and equivalent or similar command-line scanners available,
|
||||
# it is customary to place slower command-line scanners in the
|
||||
# @av_scanners_backup list. The default choice is somewhat arbitrary,
|
||||
# move entries from one list to another as desired, keeping main scanners
|
||||
# in the primary list to avoid warnings.
|
||||
|
||||
@av_scanners_backup = (
|
||||
|
||||
### http://www.clamav.net/ - backs up clamd or Mail::ClamAV
|
||||
['ClamAV-clamscan', 'clamscan',
|
||||
"--stdout --no-summary -r --tempdir=$TEMPBASE {}",
|
||||
[0], qr/:.*\sFOUND$/m, qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
|
||||
|
||||
### http://www.f-prot.com/ - backs up F-Prot Daemon, V6
|
||||
['F-PROT Antivirus for UNIX', ['fpscan'],
|
||||
'--report --mount --adware {}', # consider: --applications -s 4 -u 3 -z 10
|
||||
[0,8,64], [1,2,3, 4+1,4+2,4+3, 8+1,8+2,8+3, 12+1,12+2,12+3],
|
||||
qr/^\[Found\s+[^\]]*\]\s+<([^ \t(>]*)/m ],
|
||||
|
||||
### http://www.f-prot.com/ - backs up F-Prot Daemon (old)
|
||||
['FRISK F-Prot Antivirus', ['f-prot','f-prot.sh'],
|
||||
'-dumb -archive -packed {}', [0,8], [3,6], # or: [0], [3,6,8],
|
||||
qr/(?:Infection:|security risk named) (.+)|\s+contains\s+(.+)$/m ],
|
||||
|
||||
### http://www.trendmicro.com/ - backs up Trophie
|
||||
['Trend Micro FileScanner', ['/etc/iscan/vscan','vscan'],
|
||||
'-za -a {}', [0], qr/Found virus/m, qr/Found virus (.+) in/m ],
|
||||
|
||||
### http://www.sald.com/, http://drweb.imshop.de/ - backs up DrWebD
|
||||
['drweb - DrWeb Antivirus', # security LHA hole in Dr.Web 4.33 and earlier
|
||||
['/usr/local/drweb/drweb', '/opt/drweb/drweb', 'drweb'],
|
||||
'-path={} -al -go -ot -cn -upn -ok-',
|
||||
[0,32], [1,9,33], qr' infected (?:with|by)(?: virus)? (.*)$'m ],
|
||||
|
||||
### http://www.kaspersky.com/
|
||||
['Kaspersky Antivirus v5.5',
|
||||
['/opt/kaspersky/kav4fs/bin/kav4fs-kavscanner',
|
||||
'/opt/kav/5.5/kav4unix/bin/kavscanner',
|
||||
'/opt/kav/5.5/kav4mailservers/bin/kavscanner', 'kavscanner'],
|
||||
'-i0 -xn -xp -mn -R -ePASBME {}/*', [0,10,15], [5,20,21,25],
|
||||
qr/(?:INFECTED|WARNING|SUSPICION|SUSPICIOUS) (.*)/m,
|
||||
# sub {chdir('/opt/kav/bin') or die "Can't chdir to kav: $!"},
|
||||
# sub {chdir($TEMPBASE) or die "Can't chdir back to $TEMPBASE $!"},
|
||||
],
|
||||
|
||||
# Commented out because the name 'sweep' clashes with Debian and FreeBSD
|
||||
# package/port of an audio editor. Make sure the correct 'sweep' is found
|
||||
# in the path when enabling.
|
||||
#
|
||||
# ### http://www.sophos.com/ - backs up Sophie or SAVI-Perl
|
||||
# ['Sophos Anti Virus (sweep)', 'sweep',
|
||||
# '-nb -f -all -rec -ss -sc -archive -cab -mime -oe -tnef '.
|
||||
# '--no-reset-atime {}',
|
||||
# [0,2], qr/Virus .*? found/m,
|
||||
# qr/^>>> Virus(?: fragment)? '?(.*?)'? found/m,
|
||||
# ],
|
||||
# # other options to consider: -idedir=/usr/local/sav
|
||||
|
||||
# Always succeeds and considers mail clean.
|
||||
# Potentially useful when all other scanners fail and it is desirable
|
||||
# to let mail continue to flow with no virus checking (when uncommented).
|
||||
# ['always-clean', sub {0}],
|
||||
|
||||
);
|
||||
|
||||
1; # ensure a defined return
|
25
config/mail/etc/amavis/conf.d/15-content_filter_mode
Normal file
25
config/mail/etc/amavis/conf.d/15-content_filter_mode
Normal file
@ -0,0 +1,25 @@
|
||||
use strict;
|
||||
|
||||
# You can modify this file to re-enable SPAM checking through spamassassin
|
||||
# and to re-enable antivirus checking.
|
||||
|
||||
#
|
||||
# Default antivirus checking mode
|
||||
# Please note, that anti-virus checking is DISABLED by
|
||||
# default.
|
||||
# If You wish to enable it, please uncomment the following lines:
|
||||
|
||||
@bypass_virus_checks_maps = (
|
||||
\%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);
|
||||
|
||||
#
|
||||
# Default SPAM checking mode
|
||||
# Please note, that anti-spam checking is DISABLED by
|
||||
# default.
|
||||
# If You wish to enable it, please uncomment the following lines:
|
||||
|
||||
|
||||
@bypass_spam_checks_maps = (
|
||||
\%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
|
||||
|
||||
1; # ensure a defined return
|
213
config/mail/etc/amavis/conf.d/20-debian_defaults
Normal file
213
config/mail/etc/amavis/conf.d/20-debian_defaults
Normal file
@ -0,0 +1,213 @@
|
||||
use strict;
|
||||
|
||||
# ADMINISTRATORS:
|
||||
# Debian suggests that any changes you need to do that should never
|
||||
# be "updated" by the Debian package should be made in another file,
|
||||
# overriding the settings in this file.
|
||||
#
|
||||
# The package will *not* overwrite your settings, but by keeping
|
||||
# them separate, you will make the task of merging changes on these
|
||||
# configuration files much simpler...
|
||||
|
||||
# see /usr/share/doc/amavisd-new/examples/amavisd.conf-default for
|
||||
# a list of all variables with their defaults;
|
||||
# see /usr/share/doc/amavisd-new/examples/amavisd.conf-sample for
|
||||
# a traditional-style commented file
|
||||
# [note: the above files were not converted to Debian settings!]
|
||||
#
|
||||
# for more details see documentation in /usr/share/doc/amavisd-new
|
||||
# and at http://www.ijs.si/software/amavisd/amavisd-new-docs.html
|
||||
|
||||
$QUARANTINEDIR = "$MYHOME/virusmails";
|
||||
$quarantine_subdir_levels = 1; # enable quarantine dir hashing
|
||||
|
||||
$log_recip_templ = undef; # disable by-recipient level-0 log entries
|
||||
$DO_SYSLOG = 1; # log via syslogd (preferred)
|
||||
$syslog_ident = 'amavis'; # syslog ident tag, prepended to all messages
|
||||
$syslog_facility = 'mail';
|
||||
#$syslog_priority = 'info'; # switch to info to drop debug output, etc
|
||||
|
||||
#$enable_db = 1; # enable use of BerkeleyDB/libdb (SNMP and nanny)
|
||||
$enable_db = 0; # 2020-10-08 work around DB not working
|
||||
$enable_global_cache = 1; # enable use of libdb-based cache if $enable_db=1
|
||||
|
||||
$inet_socket_port = 10024; # default listening socket
|
||||
|
||||
$sa_spam_subject_tag = '***SPAM*** ';
|
||||
$sa_tag_level_deflt = 2.0; # add spam info headers if at, or above that level
|
||||
$sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level
|
||||
$sa_kill_level_deflt = 6.31; # triggers spam evasive actions
|
||||
$sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent
|
||||
|
||||
$sa_mail_body_size_limit = 200*1024; # don't waste time on SA if mail is larger
|
||||
$sa_local_tests_only = 0; # only tests which do not require internet access?
|
||||
|
||||
# Quota limits to avoid bombs (like 42.zip)
|
||||
|
||||
$MAXLEVELS = 14;
|
||||
$MAXFILES = 1500;
|
||||
$MIN_EXPANSION_QUOTA = 100*1024; # bytes
|
||||
$MAX_EXPANSION_QUOTA = 300*1024*1024; # bytes
|
||||
|
||||
# You should:
|
||||
# Use D_DISCARD to discard data (viruses)
|
||||
# Use D_BOUNCE to generate local bounces by amavisd-new
|
||||
# Use D_REJECT to generate local or remote bounces by the calling MTA
|
||||
# Use D_PASS to deliver the message
|
||||
#
|
||||
# Whatever you do, *NEVER* use D_REJECT if you have other MTAs *forwarding*
|
||||
# mail to your account. Use D_BOUNCE instead, otherwise you are delegating
|
||||
# the bounce work to your friendly forwarders, which might not like it at all.
|
||||
#
|
||||
# On dual-MTA setups, one can often D_REJECT, as this just makes your own
|
||||
# MTA generate the bounce message. Test it first.
|
||||
#
|
||||
# Bouncing viruses is stupid, always discard them after you are sure the AV
|
||||
# is working correctly. Bouncing real SPAM is also useless, if you cannot
|
||||
# D_REJECT it (and don't D_REJECT mail coming from your forwarders!).
|
||||
|
||||
$final_virus_destiny = D_DISCARD; # (data not lost, see virus quarantine)
|
||||
$final_banned_destiny = D_BOUNCE; # D_REJECT when front-end MTA
|
||||
$final_spam_destiny = D_DISCARD;
|
||||
$final_bad_header_destiny = D_PASS; # False-positive prone (for spam)
|
||||
|
||||
$enable_dkim_verification = 0; #disabled to prevent warning
|
||||
|
||||
$virus_admin = "postmaster\@$mydomain"; # due to D_DISCARD default
|
||||
|
||||
# Set to empty ("") to add no header
|
||||
$X_HEADER_LINE = "Debian $myproduct_name at $mydomain";
|
||||
|
||||
# REMAINING IMPORTANT VARIABLES ARE LISTED HERE BECAUSE OF LONGER ASSIGNMENTS
|
||||
|
||||
#
|
||||
# DO NOT SEND VIRUS NOTIFICATIONS TO OUTSIDE OF YOUR DOMAIN. EVER.
|
||||
#
|
||||
# These days, almost all viruses fake the envelope sender and mail headers.
|
||||
# Therefore, "virus notifications" became nothing but undesired, aggravating
|
||||
# SPAM. This holds true even inside one's domain. We disable them all by
|
||||
# default, except for the EICAR test pattern.
|
||||
#
|
||||
|
||||
@viruses_that_fake_sender_maps = (new_RE(
|
||||
[qr'\bEICAR\b'i => 0], # av test pattern name
|
||||
[qr/.*/ => 1], # true for everything else
|
||||
));
|
||||
|
||||
@keep_decoded_original_maps = (new_RE(
|
||||
# qr'^MAIL$', # retain full original message for virus checking (can be slow)
|
||||
qr'^MAIL-UNDECIPHERABLE$', # recheck full mail if it contains undecipherables
|
||||
qr'^(ASCII(?! cpio)|text|uuencoded|xxencoded|binhex)'i,
|
||||
# qr'^Zip archive data', # don't trust Archive::Zip
|
||||
));
|
||||
|
||||
|
||||
# for $banned_namepath_re, a new-style of banned table, see amavisd.conf-sample
|
||||
|
||||
$banned_filename_re = new_RE(
|
||||
# qr'^UNDECIPHERABLE$', # is or contains any undecipherable components
|
||||
|
||||
# block certain double extensions anywhere in the base name
|
||||
qr'\.[^./]*\.(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)\.?$'i,
|
||||
|
||||
qr'\{[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\}?$'i, # Windows Class ID CLSID, strict
|
||||
|
||||
qr'^application/x-msdownload$'i, # block these MIME types
|
||||
qr'^application/x-msdos-program$'i,
|
||||
qr'^application/hta$'i,
|
||||
|
||||
# qr'^application/x-msmetafile$'i, # Windows Metafile MIME type
|
||||
# qr'^\.wmf$', # Windows Metafile file(1) type
|
||||
|
||||
# qr'^message/partial$'i, qr'^message/external-body$'i, # rfc2046 MIME types
|
||||
|
||||
# [ qr'^\.(Z|gz|bz2)$' => 0 ], # allow any in Unix-compressed
|
||||
# [ qr'^\.(rpm|cpio|tar)$' => 0 ], # allow any in Unix-type archives
|
||||
# [ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ], # allow any within such archives
|
||||
# [ qr'^application/x-zip-compressed$'i => 0], # allow any within such archives
|
||||
|
||||
qr'.\.(exe|vbs|pif|scr|bat|cmd|com|cpl)$'i, # banned extension - basic
|
||||
# qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta|
|
||||
# inf|ins|isp|js|jse|lnk|mda|mdb|mde|mdw|mdt|mdz|msc|msi|msp|mst|
|
||||
# ops|pcd|pif|prg|reg|scr|sct|shb|shs|vb|vbe|vbs|
|
||||
# wmf|wsc|wsf|wsh)$'ix, # banned ext - long
|
||||
|
||||
# qr'.\.(mim|b64|bhx|hqx|xxe|uu|uue)$'i, # banned extension - WinZip vulnerab.
|
||||
|
||||
qr'^\.(exe-ms)$', # banned file(1) types
|
||||
# qr'^\.(exe|lha|tnef|cab|dll)$', # banned file(1) types
|
||||
);
|
||||
# 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"),
|
||||
|
||||
# This are some examples for whitelists, since envelope senders can be forged
|
||||
# they are not enabled by default.
|
||||
{ # 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
|
||||
});
|
||||
|
||||
1; # ensure a defined return
|
19
config/mail/etc/amavis/conf.d/21-ubuntu_defaults
Normal file
19
config/mail/etc/amavis/conf.d/21-ubuntu_defaults
Normal file
@ -0,0 +1,19 @@
|
||||
use strict;
|
||||
|
||||
#
|
||||
# These are Ubuntu specific defaults for amavisd-new configuration
|
||||
#
|
||||
# DOMAIN KEYS IDENTIFIED MAIL (DKIM)
|
||||
$enable_dkim_verification = 1;
|
||||
# Don't be verbose about sending mail:
|
||||
@whitelist_sender_acl = qw( .$mydomain );
|
||||
$final_virus_destiny = D_DISCARD; # (defaults to D_BOUNCE)
|
||||
$final_banned_destiny = D_DISCARD; # (defaults to D_BOUNCE)
|
||||
$final_spam_destiny = D_DISCARD; # (defaults to D_REJECT)
|
||||
$final_bad_header_destiny = D_PASS; # (defaults to D_PASS), D_BOUNCE suggested
|
||||
|
||||
$virus_admin = undef;
|
||||
$spam_admin = undef;
|
||||
|
||||
#------------ Do not modify anything below this line -------------
|
||||
1; # insure a defined return
|
23
config/mail/etc/amavis/conf.d/25-amavis_helpers
Normal file
23
config/mail/etc/amavis/conf.d/25-amavis_helpers
Normal file
@ -0,0 +1,23 @@
|
||||
use strict;
|
||||
|
||||
##
|
||||
## Functionality required for amavis helpers like
|
||||
## amavis-release.
|
||||
##
|
||||
|
||||
# Enable required AM.PDP protocol socket.
|
||||
#
|
||||
# this is incompatible with the old helpers, but one can
|
||||
# have multiple inet (not unix) sockets to overcome this
|
||||
# issue. Refer to the amavisd-new documentation for more
|
||||
# information
|
||||
|
||||
$unix_socketname = "/var/lib/amavis/amavisd.sock";
|
||||
|
||||
$interface_policy{'SOCK'} = 'AM.PDP-SOCK';
|
||||
$policy_bank{'AM.PDP-SOCK'} = {
|
||||
protocol => 'AM.PDP',
|
||||
auth_required_release => 0, # don't require secret-id for release
|
||||
};
|
||||
|
||||
1; # ensure a defined return
|
42
config/mail/etc/amavis/conf.d/30-template_localization
Normal file
42
config/mail/etc/amavis/conf.d/30-template_localization
Normal file
@ -0,0 +1,42 @@
|
||||
use strict;
|
||||
|
||||
# l10n (localization) of the AMaViSd-new DSN templates
|
||||
# Override or change as necessary
|
||||
|
||||
# Select notifications text encoding when Unicode-aware Perl is converting
|
||||
# text from internal character representation to external encoding (charset
|
||||
# in MIME terminology). Used as argument to Perl Encode::encode subroutine.
|
||||
#
|
||||
# to be used in RFC 2047-encoded header field bodies, e.g. in Subject:
|
||||
#$hdr_encoding = 'iso-8859-1'; # (default: 'iso-8859-1')
|
||||
#
|
||||
# to be used in notification body text: its encoding and Content-type.charset
|
||||
#$bdy_encoding = 'iso-8859-1'; # (default: 'iso-8859-1')
|
||||
|
||||
# Default template texts for notifications may be overruled by directly
|
||||
# assigning new text to template variables, or by reading template text
|
||||
# from files. A second argument may be specified in a call to read_text(),
|
||||
# specifying character encoding layer to be used when reading from the
|
||||
# external file, e.g. 'utf8', 'iso-8859-1', or often just $bdy_encoding.
|
||||
# Text will be converted to internal character representation by Perl 5.8.0
|
||||
# or later; second argument is ignored otherwise. See PerlIO::encoding,
|
||||
# Encode::PerlIO and perluniintro man pages.
|
||||
#
|
||||
# $notify_sender_templ = read_text('/var/amavis/notify_sender.txt');
|
||||
# $notify_virus_sender_templ= read_text('/var/amavis/notify_virus_sender.txt');
|
||||
# $notify_virus_admin_templ = read_text('/var/amavis/notify_virus_admin.txt');
|
||||
# $notify_virus_recips_templ= read_text('/var/amavis/notify_virus_recips.txt');
|
||||
# $notify_spam_sender_templ = read_text('/var/amavis/notify_spam_sender.txt');
|
||||
# $notify_spam_admin_templ = read_text('/var/amavis/notify_spam_admin.txt');
|
||||
|
||||
# If notification template files are collectively available in some directory,
|
||||
# you can use read_l10n_templates which calls read_text for each known
|
||||
# template. Name the files as above, and include a file named "charset" with
|
||||
# the charset used in the files. This is how Debian ships l10n templates.
|
||||
#
|
||||
# syntax: read_l10n_templates(<directory>); OR
|
||||
# read_l10n_templates(<subdirectory>, <master directory>);
|
||||
#
|
||||
read_l10n_templates('en_US', '/etc/amavis');
|
||||
|
||||
1; # ensure a defined return
|
33
config/mail/etc/amavis/conf.d/40-policy_banks
Normal file
33
config/mail/etc/amavis/conf.d/40-policy_banks
Normal file
@ -0,0 +1,33 @@
|
||||
# DKIM signing domain whitelist. The domain to use is the domain after
|
||||
# d= in the DKIM header.
|
||||
|
||||
@author_to_policy_bank_maps = ( {
|
||||
# 'friends.example.net' => 'WHITELIST,NOBANNEDCHECK',
|
||||
# 'user1@cust.example.net' => 'WHITELIST,NOBANNEDCHECK',
|
||||
'.ebay.com' => 'WHITELIST',
|
||||
'.ebay.co.uk' => 'WHITELIST',
|
||||
'ebay.at' => 'WHITELIST',
|
||||
'ebay.ca' => 'WHITELIST',
|
||||
'ebay.de' => 'WHITELIST',
|
||||
'ebay.fr' => 'WHITELIST',
|
||||
'.paypal.co.uk' => 'WHITELIST',
|
||||
'.paypal.com' => 'WHITELIST', # author signatures
|
||||
'./@paypal.com' => 'WHITELIST', # 3rd-party sign. by paypal.com
|
||||
'alert.bankofamerica.com' => 'WHITELIST',
|
||||
'amazon.com' => 'WHITELIST',
|
||||
'cisco.com' => 'WHITELIST',
|
||||
'.cnn.com' => 'WHITELIST',
|
||||
'skype.net' => 'WHITELIST',
|
||||
'welcome.skype.com' => 'WHITELIST',
|
||||
'cc.yahoo-inc.com' => 'WHITELIST',
|
||||
'cc.yahoo-inc.com/@yahoo-inc.com' => 'WHITELIST',
|
||||
# 'google.com' => 'MILD_WHITELIST',
|
||||
# 'googlemail.com' => 'MILD_WHITELIST',
|
||||
# './@googlegroups.com' => 'MILD_WHITELIST',
|
||||
# './@yahoogroups.com' => 'MILD_WHITELIST',
|
||||
# './@yahoogroups.co.uk' => 'MILD_WHITELIST',
|
||||
# './@yahoogroupes.fr' => 'MILD_WHITELIST',
|
||||
# 'yousendit.com' => 'MILD_WHITELIST',
|
||||
# 'meetup.com' => 'MILD_WHITELIST',
|
||||
# 'dailyhoroscope@astrology.com' => 'MILD_WHITELIST',
|
||||
} );
|
14
config/mail/etc/amavis/conf.d/50-user
Normal file
14
config/mail/etc/amavis/conf.d/50-user
Normal file
@ -0,0 +1,14 @@
|
||||
use strict;
|
||||
|
||||
#
|
||||
# Place your configuration directives here. They will override those in
|
||||
# earlier files.
|
||||
#
|
||||
# See /usr/share/doc/amavisd-new/ for documentation and examples of
|
||||
# the directives you can use in this file
|
||||
#
|
||||
$myhostname = 'mail.ketrenos.net';
|
||||
@local_domains_acl = ( "ketrenos.com", "sketchitect.com", "kiaoramassage.com" );
|
||||
|
||||
#------------ Do not modify anything below this line -------------
|
||||
1; # ensure a defined return
|
4
config/mail/etc/amavis/en_US/charset
Normal file
4
config/mail/etc/amavis/en_US/charset
Normal file
@ -0,0 +1,4 @@
|
||||
# This is charset for en_US messages.
|
||||
# If you are creating new messages, use 'iconv -l' to get possible encodings.
|
||||
ascii # or iso-8859-1
|
||||
ignored lines after first one
|
23
config/mail/etc/amavis/en_US/template-auto-response.txt
Normal file
23
config/mail/etc/amavis/en_US/template-auto-response.txt
Normal file
@ -0,0 +1,23 @@
|
||||
#
|
||||
# =============================================================================
|
||||
# This is a template for the plain text part of an auto response (e.g.
|
||||
# vacation, out-of-office), see RFC 3834.
|
||||
#
|
||||
From: %f
|
||||
Date: %d
|
||||
To: [? %#T |undisclosed-recipients:;|[%T|, ]]
|
||||
[? %#C |#|Cc: [%C|, ]]
|
||||
Reply-To: postmaster@%h
|
||||
Message-ID: <ARE%i@%h>
|
||||
Auto-Submitted: auto-replied
|
||||
[:wrap|76||\t|Subject: Auto: autoresponse to: %s]
|
||||
[? %m |#|In-Reply-To: %m]
|
||||
Precedence: junk
|
||||
|
||||
This is an auto-response to a message \
|
||||
[? %a |\nreceived on %d,|received from\nIP address \[%a\] on %d,]
|
||||
envelope sender: %s
|
||||
(author) From: [:rfc2822_from]
|
||||
[? %j |#|[:wrap|78|| |Subject: %j]]
|
||||
[?[:dkim|author]|#|
|
||||
A first-party DKIM or DomainKeys signature is valid, d=[:dkim|author].]
|
134
config/mail/etc/amavis/en_US/template-dsn.txt
Normal file
134
config/mail/etc/amavis/en_US/template-dsn.txt
Normal file
@ -0,0 +1,134 @@
|
||||
#
|
||||
# =============================================================================
|
||||
# This is a template for (neutral: non-virus, non-spam, non-banned)
|
||||
# DELIVERY STATUS NOTIFICATIONS to sender.
|
||||
# For syntax and customization instructions see README.customize.
|
||||
# The From, To and Date header fields will be provided automatically.
|
||||
# Long header fields will be automatically wrapped by the program.
|
||||
#
|
||||
Subject: [?%#D|Undeliverable mail|Delivery status notification]\
|
||||
[? [:ccat|major] |||, MTA-BLOCKED\
|
||||
|, OVERSIZED message\
|
||||
|, invalid header section[=explain_badh|1]\
|
||||
[?[:ccat|minor]||: bad MIME|: unencoded 8-bit character\
|
||||
|: improper use of control char|: all-whitespace header line\
|
||||
|: header line longer than 998 characters|: header field syntax error\
|
||||
|: missing required header field|: duplicate header field|]\
|
||||
|, UNSOLICITED BULK EMAIL apparently from you\
|
||||
|, UNSOLICITED BULK EMAIL apparently from you\
|
||||
|, contents UNCHECKED\
|
||||
|, BANNED contents type (%F)\
|
||||
|, VIRUS in message apparently from you (%V)\
|
||||
]
|
||||
Message-ID: <DSN%i@%h>
|
||||
|
||||
[? %#D |#|Your message WAS SUCCESSFULLY RELAYED to:[\n %D]
|
||||
[~[:dsn_notify]|["\\bSUCCESS\\b"]|\
|
||||
and you explicitly requested a delivery status notification on success.\n]\
|
||||
]
|
||||
[? %#N |#|The message WAS NOT relayed to:[\n %N]
|
||||
]
|
||||
[:wrap|78|||This [?%#D|nondelivery|delivery] report was \
|
||||
generated by the program amavisd-new at host %h. \
|
||||
Our internal reference code for your message is %n/%i]
|
||||
|
||||
# ccat_min 0: other, 1: bad MIME, 2: 8-bit char, 3: NUL/CR,
|
||||
# 4: empty, 5: long, 6: syntax, 7: missing, 8: multiple
|
||||
[? [:explain_badh] ||[? [:ccat|minor]
|
||||
|INVALID HEADER
|
||||
|INVALID HEADER: BAD MIME HEADER SECTION OR BAD MIME STRUCTURE
|
||||
|INVALID HEADER: INVALID 8-BIT CHARACTERS IN HEADER SECTION
|
||||
|INVALID HEADER: INVALID CONTROL CHARACTERS IN HEADER SECTION
|
||||
|INVALID HEADER: FOLDED HEADER FIELD LINE MADE UP ENTIRELY OF WHITESPACE
|
||||
|INVALID HEADER: HEADER LINE LONGER THAN RFC 5322 LIMIT OF 998 CHARACTERS
|
||||
|INVALID HEADER: HEADER FIELD SYNTAX ERROR
|
||||
|INVALID HEADER: MISSING REQUIRED HEADER FIELD
|
||||
|INVALID HEADER: DUPLICATE HEADER FIELD
|
||||
|INVALID HEADER
|
||||
]
|
||||
[[:wrap|78| | |%X]\n]
|
||||
]\
|
||||
#
|
||||
[:wrap|78|| |Return-Path: %s[?[:dkim|envsender]|| (OK)]]
|
||||
[:wrap|78|| |From: [:header_field|From|100][?[:dkim|author]|| (dkim:AUTHOR)]]
|
||||
[? [:header_field|Sender]|#|\
|
||||
[:wrap|78|| |Sender: [:header_field|Sender|100]\
|
||||
[?[:dkim|sender]|| (dkim:SENDER)]]]
|
||||
[? %m |#|[:wrap|78|| |Message-ID: %m]]
|
||||
[? %r |#|[:wrap|78|| |Resent-Message-ID: %r]]
|
||||
[? %#X|#|[? [:useragent] |#|[:wrap|78|| |[:useragent]]]]
|
||||
[? %j |#|[:wrap|78|| |Subject: [:header_field|Subject|100]]]
|
||||
|
||||
# ccat_min 0: other, 1: bad MIME, 2: 8-bit char, 3: NUL/CR,
|
||||
# 4: empty, 5: long, 6: syntax, 7: missing, 8: multiple
|
||||
[? [:explain_badh] ||[? [:ccat|minor]
|
||||
|# 0: other
|
||||
|# 1: bad MIME
|
||||
|# 2: 8-bit char
|
||||
WHAT IS AN INVALID CHARACTER IN A MAIL HEADER SECTION?
|
||||
|
||||
The RFC 5322 document specifies rules for forming internet messages.
|
||||
It does not allow the use of characters with codes above 127 to be
|
||||
used directly (non-encoded) in a mail header section.
|
||||
|
||||
If such characters (e.g. with diacritics) from ISO Latin or other
|
||||
alphabets need to be included in a header section, these characters
|
||||
need to be properly encoded according to RFC 2047. Such encoding
|
||||
is often done transparently by mail reader (MUA), but if automatic
|
||||
encoding is not available (e.g. by some older MUA) it is a user's
|
||||
responsibility to avoid using such characters in a header section,
|
||||
or to encode them manually. Typically the offending header fields
|
||||
in this category are 'Subject', 'Organization', and comment fields
|
||||
or display names in e-mail addresses of 'From', 'To' or 'Cc'.
|
||||
|
||||
Sometimes such invalid header fields are inserted automatically
|
||||
by some MUA, MTA, content filter, or other mail handling service.
|
||||
If this is the case, such service needs to be fixed or properly
|
||||
configured. Typically the offending header fields in this category
|
||||
are 'Date', 'Received', 'X-Mailer', 'X-Priority', 'X-Scanned', etc.
|
||||
|
||||
If you don't know how to fix or avoid the problem, please report it
|
||||
to _your_ postmaster or system manager.
|
||||
#
|
||||
[~[:useragent]|^X-Mailer:\\s*Microsoft Outlook Express 6\\.00|["
|
||||
If using Microsoft Outlook Express as your MUA, make sure its
|
||||
settings under:
|
||||
Tools -> Options -> Send -> Mail Sending Format -> Plain & HTML
|
||||
are: "MIME format" MUST BE selected,
|
||||
and "Allow 8-bit characters in headers" MUST NOT be enabled!
|
||||
"]]#
|
||||
|# 3: NUL/CR
|
||||
IMPROPER USE OF CONTROL CHARACTER IN A MESSAGE HEADER SECTION
|
||||
|
||||
The RFC 5322 document specifies rules for forming internet messages.
|
||||
It does not allow the use of control characters NUL and bare CR
|
||||
to be used directly in a mail header section.
|
||||
|# 4: empty
|
||||
IMPROPERLY FOLDED HEADER FIELD LINE MADE UP ENTIRELY OF WHITESPACE
|
||||
|
||||
The RFC 5322 document specifies rules for forming internet messages.
|
||||
In section '3.2.2. Folding white space and comments' it explicitly
|
||||
prohibits folding of header fields in such a way that any line of a
|
||||
folded header field is made up entirely of white-space characters
|
||||
(control characters SP and HTAB) and nothing else.
|
||||
|# 5: long
|
||||
HEADER LINE LONGER THAN RFC 5322 LIMIT OF 998 CHARACTERS
|
||||
|
||||
The RFC 5322 document specifies rules for forming internet messages.
|
||||
Section '2.1.1. Line Length Limits' prohibits each line of a header
|
||||
section to be more than 998 characters in length (excluding the CRLF).
|
||||
|# 6: syntax
|
||||
|# 7: missing
|
||||
MISSING REQUIRED HEADER FIELD
|
||||
|
||||
The RFC 5322 document specifies rules for forming internet messages.
|
||||
Section '3.6. Field Definitions' specifies that certain header fields
|
||||
are required (origination date field and the "From:" originator field).
|
||||
|# 8: multiple
|
||||
DUPLICATE HEADER FIELD
|
||||
|
||||
The RFC 5322 document specifies rules for forming internet messages.
|
||||
Section '3.6. Field Definitions' specifies that certain header fields
|
||||
must not occur more than once in a message header section.
|
||||
|# other
|
||||
]]#
|
37
config/mail/etc/amavis/en_US/template-problem-feedback.txt
Normal file
37
config/mail/etc/amavis/en_US/template-problem-feedback.txt
Normal file
@ -0,0 +1,37 @@
|
||||
#
|
||||
# =============================================================================
|
||||
# This is a template for the plain text part of a problem/feedback report,
|
||||
# with either the original message included in-line, or attached,
|
||||
# or the message is structured as a FEEDBACK REPORT NOTIFICATIONS format.
|
||||
# See RFC 5965 - "An Extensible Format for Email Feedback Reports".
|
||||
#
|
||||
From: %f
|
||||
Date: %d
|
||||
Subject: Fw: %j
|
||||
To: [? %#T |undisclosed-recipients:;|[%T|, ]]
|
||||
[? %#C |#|Cc: [%C|, ]]
|
||||
Message-ID: <ARF%i@%h>
|
||||
#Auto-Submitted: auto-generated
|
||||
|
||||
This is an e-mail [:feedback_type] report for a message \
|
||||
[? %a |\nreceived on %d,|received from\nIP address [:client_addr_port] on %d,]
|
||||
|
||||
[:wrap|78|| |Return-Path: %s]
|
||||
[:wrap|78|| |From: [:header_field|From][?[:dkim|author]|| (dkim:AUTHOR)]]
|
||||
[? [:header_field|Sender]|#|[:wrap|78|| |Sender: [:header_field|Sender]]]
|
||||
[? %m |#|[:wrap|78|| |Message-ID: %m]]
|
||||
[? %r |#|[:wrap|78|| |Resent-Message-ID: %r]]
|
||||
[? %j |#|[:wrap|78|| |Subject: [:header_field|Subject|100]]]
|
||||
[?[:dkim|author]|#|
|
||||
A first-party DKIM or DomainKeys signature is valid, d=[:dkim|author].]
|
||||
|
||||
Reporting-MTA: %h
|
||||
Our internal reference code for the message is %n/%i
|
||||
|
||||
[~[:report_format]|["^(arf|attach|dsn)$"]|["\
|
||||
A complete original message is attached.
|
||||
[~[:report_format]|["^arf$"]|\
|
||||
For more information on the ARF format please see RFC 5965.
|
||||
]"]|["\
|
||||
A complete original message in its pristine form follows:
|
||||
"]]#
|
45
config/mail/etc/amavis/en_US/template-release-quarantine.txt
Normal file
45
config/mail/etc/amavis/en_US/template-release-quarantine.txt
Normal file
@ -0,0 +1,45 @@
|
||||
#
|
||||
# =============================================================================
|
||||
# This is a template for the plain text part of a RELEASE FROM A QUARANTINE,
|
||||
# applicable if a chosen release format is 'attach' (not 'resend').
|
||||
#
|
||||
From: %f
|
||||
Date: %d
|
||||
Subject: \[released message\] %j
|
||||
To: [? %#T |undisclosed-recipients:;|[%T|, ]]
|
||||
[? %#C |#|Cc: [%C|, ]]
|
||||
Message-ID: <QRA%i@%h>
|
||||
|
||||
Please find attached a message which was held in a quarantine,
|
||||
and has now been released.
|
||||
|
||||
[:wrap|78|| |Return-Path: %s[?[:dkim|envsender]|| (OK)]]
|
||||
[:wrap|78|| |From: [:header_field|From][?[:dkim|author]|| (dkim:AUTHOR)]]
|
||||
[? [:header_field|Sender]|#|\
|
||||
[:wrap|78|| |Sender: [:header_field|Sender]\
|
||||
[?[:dkim|sender]|| (dkim:SENDER)]]]
|
||||
# [? %m |#|[:wrap|78|| |Message-ID: %m]]
|
||||
# [? %r |#|[:wrap|78|| |Resent-Message-ID: %r]]
|
||||
# [? [:useragent] |#|[:wrap|78|| |[:useragent]]]
|
||||
[? %j |#|[:wrap|78|| |Subject: %j]]
|
||||
|
||||
Our internal reference code for the message is %n/%i
|
||||
#
|
||||
[~[:report_format]|["^attach$"]|["[? [:attachment_password] |#|
|
||||
|
||||
Contents of the attached mail message may pose a threat to your computer or
|
||||
could be a social engineering deception, so it should be handled cautiously.
|
||||
To prevent undesired automatic opening, the attached original mail message
|
||||
has been wrapped in a password-protected ZIP archive.
|
||||
|
||||
Here is the password that allows opening of the attached archive:
|
||||
|
||||
[:attachment_password]
|
||||
|
||||
Note that the attachment is not strongly encrypted and the password
|
||||
is not a strong secret (being displayed in this non-encrypted text),
|
||||
so this attachment is not suitable for guarding a secret contents.
|
||||
The sole purpose of this password protection it to prevent undesired
|
||||
accidental or automatic opening of a message, either by some filtering
|
||||
software, a virus scanner, or by a mail reader.
|
||||
]"]|]#
|
39
config/mail/etc/amavis/en_US/template-spam-admin.txt
Normal file
39
config/mail/etc/amavis/en_US/template-spam-admin.txt
Normal file
@ -0,0 +1,39 @@
|
||||
#
|
||||
# =============================================================================
|
||||
# This is a template for spam ADMINISTRATOR NOTIFICATIONS.
|
||||
# For syntax and customization instructions see README.customize.
|
||||
# Long header fields will be automatically wrapped by the program.
|
||||
#
|
||||
From: %f
|
||||
Date: %d
|
||||
Subject: Spam FROM [?%l||LOCAL ][?%a||[:client_addr_port] ]%s
|
||||
To: [? %#T |undisclosed-recipients:;|[%T|, ]]
|
||||
[? %#C |#|Cc: [%C|, ]]
|
||||
Message-ID: <SA%i@%h>
|
||||
|
||||
Content type: [:ccat|name|main]#
|
||||
[? [:ccat|is_blocked_by_nonmain] ||, blocked for [:ccat|name]]
|
||||
Internal reference code for the message is %n/%i
|
||||
|
||||
[? %a |#|[:wrap|78|| |First upstream SMTP client IP address: \[%a\] %g]]
|
||||
[? %e |#|[:wrap|78|| |According to a 'Received:' trace,\
|
||||
the message apparently originated at: \[%e\], %t]]
|
||||
|
||||
[:wrap|78|| |Return-Path: %s[?[:dkim|envsender]|| (OK)]]
|
||||
[:wrap|78|| |From: [:header_field|From][?[:dkim|author]|| (dkim:AUTHOR)]]
|
||||
[? [:header_field|Sender]|#|\
|
||||
[:wrap|78|| |Sender: [:header_field|Sender]\
|
||||
[?[:dkim|sender]|| (dkim:SENDER)]]]
|
||||
[? %m |#|[:wrap|78|| |Message-ID: %m]]
|
||||
[? %r |#|[:wrap|78|| |Resent-Message-ID: %r]]
|
||||
[? [:useragent] |#|[:wrap|78|| |[:useragent]]]
|
||||
[? %j |#|[:wrap|78|| |Subject: %j]]
|
||||
[? %q |Not quarantined.|The message has been quarantined as: %q]
|
||||
|
||||
[? %#D |#|The message WILL BE relayed to:[\n%D]
|
||||
]
|
||||
[? %#N |#|The message WAS NOT relayed to:[\n%N]
|
||||
]
|
||||
Spam scanner report:
|
||||
[%A
|
||||
]\
|
48
config/mail/etc/amavis/en_US/template-spam-sender.txt
Normal file
48
config/mail/etc/amavis/en_US/template-spam-sender.txt
Normal file
@ -0,0 +1,48 @@
|
||||
#
|
||||
# =============================================================================
|
||||
# This is a template for spam SENDER NOTIFICATIONS.
|
||||
# For syntax and customization instructions see README.customize.
|
||||
# The From, To and Date header fields will be provided automatically.
|
||||
# Long header fields will be automatically wrapped by the program.
|
||||
#
|
||||
Subject: Considered UNSOLICITED BULK EMAIL, apparently from you
|
||||
[? %m |#|In-Reply-To: %m]
|
||||
Message-ID: <SS%i@%h>
|
||||
|
||||
A message from %s[
|
||||
to: %R]
|
||||
|
||||
was considered unsolicited bulk e-mail (UBE).
|
||||
|
||||
Our internal reference code for your message is %n/%i
|
||||
|
||||
The message carried your return address, so it was either a genuine mail
|
||||
from you, or a sender address was faked and your e-mail address abused
|
||||
by third party, in which case we apologize for undesired notification.
|
||||
|
||||
We do try to minimize backscatter for more prominent cases of UBE and
|
||||
for infected mail, but for less obvious cases some balance between
|
||||
losing genuine mail and sending undesired backscatter is sought,
|
||||
and there can be some collateral damage on either side.
|
||||
|
||||
[? %a |#|[:wrap|78|| |First upstream SMTP client IP address: \[%a\] %g]]
|
||||
[? %e |#|[:wrap|78|| |According to a 'Received:' trace,\
|
||||
the message apparently originated at: \[%e\], %t]]
|
||||
|
||||
[:wrap|78|| |Return-Path: %s[?[:dkim|envsender]|| (OK)]]
|
||||
[:wrap|78|| |From: [:header_field|From|100][?[:dkim|author]|| (dkim:AUTHOR)]]
|
||||
[? [:header_field|Sender]|#|\
|
||||
[:wrap|78|| |Sender: [:header_field|Sender|100]\
|
||||
[?[:dkim|sender]|| (dkim:SENDER)]]]
|
||||
[? %m |#|[:wrap|78|| |Message-ID: %m]]
|
||||
[? %r |#|[:wrap|78|| |Resent-Message-ID: %r]]
|
||||
# [? [:useragent] |#|[:wrap|78|| |[:useragent]]]
|
||||
[? %j |#|[:wrap|78|| |Subject: [:header_field|Subject|100]]]
|
||||
[? %#X |#|\n[[:wrap|78|| |%X]\n]]
|
||||
|
||||
[? %#D |Delivery of the email was stopped!
|
||||
]#
|
||||
#
|
||||
# Spam scanner report:
|
||||
# [%A
|
||||
# ]\
|
54
config/mail/etc/amavis/en_US/template-virus-admin.txt
Normal file
54
config/mail/etc/amavis/en_US/template-virus-admin.txt
Normal file
@ -0,0 +1,54 @@
|
||||
#
|
||||
# =============================================================================
|
||||
# This is a template for non-spam (e.g. VIRUS,...) ADMINISTRATOR NOTIFICATIONS.
|
||||
# For syntax and customization instructions see README.customize.
|
||||
# Long header fields will be automatically wrapped by the program.
|
||||
#
|
||||
From: %f
|
||||
Date: %d
|
||||
Subject: [? [:ccat|major] |Clean mail|Clean mail|MTA-blocked mail|\
|
||||
OVERSIZED mail|INVALID HEADER in mail|Spammy|Spam|UNCHECKED contents in mail|\
|
||||
BANNED contents (%F) in mail|VIRUS (%V) in mail]\
|
||||
FROM [?%l||LOCAL ][?%a||[:client_addr_port] ]%s
|
||||
To: [? %#T |undisclosed-recipients:;|[%T|, ]]
|
||||
[? %#C |#|Cc: [%C|, ]]
|
||||
Message-ID: <VA%i@%h>
|
||||
|
||||
[? %#V |No viruses were found.
|
||||
|A virus was found: %V
|
||||
|Two viruses were found:\n %V
|
||||
|%#V viruses were found:\n %V
|
||||
]
|
||||
[? %#F |#|[:wrap|78|| |Banned [?%#F|names|name|names]: %F]]
|
||||
[? %#X |#|Bad header:[\n[:wrap|78| | |%X]]]
|
||||
[? %#W |#\
|
||||
|Scanner detecting a virus: %W
|
||||
|Scanners detecting a virus: %W
|
||||
]
|
||||
Content type: [:ccat|name|main]#
|
||||
[? [:ccat|is_blocked_by_nonmain] ||, blocked for [:ccat|name]]
|
||||
Internal reference code for the message is %n/%i
|
||||
|
||||
[? %a |#|[:wrap|78|| |First upstream SMTP client IP address: \[%a\] %g]]
|
||||
[? %e |#|[:wrap|78|| |According to a 'Received:' trace,\
|
||||
the message apparently originated at: \[%e\], %t]]
|
||||
|
||||
[:wrap|78|| |Return-Path: %s[?[:dkim|envsender]|| (OK)]]
|
||||
[:wrap|78|| |From: [:header_field|From][?[:dkim|author]|| (dkim:AUTHOR)]]
|
||||
[? [:header_field|Sender]|#|\
|
||||
[:wrap|78|| |Sender: [:header_field|Sender]\
|
||||
[?[:dkim|sender]|| (dkim:SENDER)]]]
|
||||
[? %m |#|[:wrap|78|| |Message-ID: %m]]
|
||||
[? %r |#|[:wrap|78|| |Resent-Message-ID: %r]]
|
||||
[? %j |#|[:wrap|78|| |Subject: %j]]
|
||||
[? %q |Not quarantined.|The message has been quarantined as: %q]
|
||||
|
||||
[? %#S |Notification to sender will not be mailed.
|
||||
|
||||
]#
|
||||
[? %#D |#|The message WILL BE relayed to:[\n%D]
|
||||
]
|
||||
[? %#N |#|The message WAS NOT relayed to:[\n%N]
|
||||
]
|
||||
[? %#V |#|[? %#v |#|Virus scanner output:[\n %v]
|
||||
]]
|
46
config/mail/etc/amavis/en_US/template-virus-recipient.txt
Normal file
46
config/mail/etc/amavis/en_US/template-virus-recipient.txt
Normal file
@ -0,0 +1,46 @@
|
||||
#
|
||||
# =============================================================================
|
||||
# This is a template for VIRUS/BANNED/BAD-HEADER RECIPIENTS NOTIFICATIONS.
|
||||
# For syntax and customization instructions see README.customize.
|
||||
# Long header fields will be automatically wrapped by the program.
|
||||
#
|
||||
From: %f
|
||||
Date: %d
|
||||
Subject: [? [:ccat|major] |Clean mail|Clean mail|MTA-blocked mail|\
|
||||
OVERSIZED mail|INVALID HEADER in mail|Spammy|Spam|UNCHECKED contents in mail|\
|
||||
BANNED contents (%F) in mail|VIRUS (%V) in mail] TO YOU from %s
|
||||
[? [:header_field|To] |To: undisclosed-recipients:;|To: [:header_field|To]]
|
||||
[? [:header_field|Cc] |#|Cc: [:header_field|Cc]]
|
||||
Message-ID: <VR%i@%h>
|
||||
|
||||
[? %#V |[? %#F ||BANNED CONTENTS ALERT]|VIRUS ALERT]
|
||||
|
||||
Our content checker found
|
||||
[? %#V |#|[:wrap|78| | |[?%#V|viruses|virus|viruses]: %V]]
|
||||
[? %#F |#|[:wrap|78| | |banned [?%#F|names|name|names]: %F]]
|
||||
[? %#X |#|[[:wrap|78| | |%X]\n]]
|
||||
|
||||
in an email to you [? %#V |from:|from probably faked sender:]
|
||||
%o
|
||||
[? %#V |#|claiming to be: %s]
|
||||
|
||||
Content type: [:ccat|name|main]#
|
||||
[? [:ccat|is_blocked_by_nonmain] ||, blocked for [:ccat|name]]
|
||||
Our internal reference code for your message is %n/%i
|
||||
|
||||
[? %a |#|[:wrap|78|| |First upstream SMTP client IP address: \[%a\] %g]]
|
||||
[? %e |#|[:wrap|78|| |According to a 'Received:' trace,\
|
||||
the message apparently originated at: \[%e\], %t]]
|
||||
|
||||
[:wrap|78|| |Return-Path: %s[?[:dkim|envsender]|| (OK)]]
|
||||
[:wrap|78|| |From: [:header_field|From][?[:dkim|author]|| (dkim:AUTHOR)]]
|
||||
[? [:header_field|Sender]|#|\
|
||||
[:wrap|78|| |Sender: [:header_field|Sender]\
|
||||
[?[:dkim|sender]|| (dkim:SENDER)]]]
|
||||
[? %m |#|[:wrap|78|| |Message-ID: %m]]
|
||||
[? %r |#|[:wrap|78|| |Resent-Message-ID: %r]]
|
||||
[? [:useragent] |#|[:wrap|78|| |[:useragent]]]
|
||||
[? %j |#|[:wrap|78|| |Subject: %j]]
|
||||
[? %q |Not quarantined.|The message has been quarantined as: %q]
|
||||
|
||||
Please contact your system administrator for details.
|
91
config/mail/etc/amavis/en_US/template-virus-sender.txt
Normal file
91
config/mail/etc/amavis/en_US/template-virus-sender.txt
Normal file
@ -0,0 +1,91 @@
|
||||
#
|
||||
# =============================================================================
|
||||
# This is a template for VIRUS/BANNED SENDER NOTIFICATIONS.
|
||||
# For syntax and customization instructions see README.customize.
|
||||
# The From, To and Date header fields will be provided automatically.
|
||||
# Long header fields will be automatically wrapped by the program.
|
||||
#
|
||||
Subject: [? [:ccat|major]
|
||||
|Clean message from you\
|
||||
|Clean message from you\
|
||||
|Clean message from you (MTA blocked)\
|
||||
|OVERSIZED message from you\
|
||||
|BAD-HEADER in message from you\
|
||||
|Spam claiming to be from you\
|
||||
|Spam claiming to be from you\
|
||||
|A message with UNCHECKED contents from you\
|
||||
|BANNED contents from you (%F)\
|
||||
|VIRUS in message apparently from you (%V)\
|
||||
]
|
||||
[? %m |#|In-Reply-To: %m]
|
||||
Message-ID: <VS%i@%h>
|
||||
|
||||
[? [:ccat|major] |Clean|Clean|MTA-BLOCKED|OVERSIZED|INVALID HEADER|\
|
||||
Spammy|Spam|UNCHECKED contents|BANNED CONTENTS ALERT|VIRUS ALERT]
|
||||
|
||||
Our content checker found
|
||||
[? %#V |#|[:wrap|78| | |[? %#V |viruses|virus|viruses]: %V]]
|
||||
[? %#F |#|[:wrap|78| | |banned [? %#F |names|name|names]: %F]]
|
||||
[? %#X |#|[[:wrap|78| | |%X]\n]]
|
||||
|
||||
in email presumably from you %s
|
||||
to the following [? %#R |recipients|recipient|recipients]:[
|
||||
-> %R]
|
||||
|
||||
Our internal reference code for your message is %n/%i
|
||||
|
||||
[? %a |#|[:wrap|78|| |First upstream SMTP client IP address: \[%a\] %g]]
|
||||
[? %e |#|[:wrap|78|| |According to a 'Received:' trace,\
|
||||
the message apparently originated at: \[%e\], %t]]
|
||||
|
||||
[:wrap|78|| |Return-Path: %s[?[:dkim|envsender]|| (OK)]]
|
||||
[:wrap|78|| |From: [:header_field|From|100][?[:dkim|author]|| (dkim:AUTHOR)]]
|
||||
[? [:header_field|Sender]|#|\
|
||||
[:wrap|78|| |Sender: [:header_field|Sender|100]\
|
||||
[?[:dkim|sender]|| (dkim:SENDER)]]]
|
||||
[? %m |#|[:wrap|78|| |Message-ID: %m]]
|
||||
[? %r |#|[:wrap|78|| |Resent-Message-ID: %r]]
|
||||
[? %j |#|[:wrap|78|| |Subject: [:header_field|Subject|100]]]
|
||||
|
||||
[? %#D |Delivery of the email was stopped!
|
||||
|
||||
]#
|
||||
[? %#V ||Please check your system for viruses,
|
||||
or ask your system administrator to do so.
|
||||
|
||||
]#
|
||||
[? %#V |[? %#F ||#
|
||||
The message [?%#D|has been blocked|triggered this warning] because it contains a component
|
||||
(as a MIME part or nested within) with declared name
|
||||
or MIME type or contents type violating our access policy.
|
||||
|
||||
To transfer contents that may be considered risky or unwanted
|
||||
by site policies, or simply too large for mailing, please consider
|
||||
publishing your content on the web, and only sending an URL of the
|
||||
document to the recipient.
|
||||
|
||||
Depending on the recipient and sender site policies, with a little
|
||||
effort it might still be possible to send any contents (including
|
||||
viruses) using one of the following methods:
|
||||
|
||||
- encrypted using pgp, gpg or other encryption methods;
|
||||
|
||||
- wrapped in a password-protected or scrambled container or archive
|
||||
(e.g.: zip -e, arj -g, arc g, rar -p, or other methods)
|
||||
|
||||
Note that if the contents is not intended to be secret, the
|
||||
encryption key or password may be included in the same message
|
||||
for recipient's convenience.
|
||||
|
||||
We are sorry for inconvenience if the contents was not malicious.
|
||||
|
||||
The purpose of these restrictions is to cut the most common propagation
|
||||
methods used by viruses and other malware. These often exploit automatic
|
||||
mechanisms and security holes in more popular mail readers (Microsoft
|
||||
mail readers and browsers are a common target). By requiring an explicit
|
||||
and decisive action from the recipient to decode mail, the danger of
|
||||
automatic malware propagation is largely reduced.
|
||||
#
|
||||
# Details of our mail restrictions policy are available at ...
|
||||
|
||||
]]#
|
88
config/mail/etc/clamav/clamd.conf
Normal file
88
config/mail/etc/clamav/clamd.conf
Normal file
@ -0,0 +1,88 @@
|
||||
#Automatically Generated by clamav-daemon postinst
|
||||
#To reconfigure clamd run #dpkg-reconfigure clamav-daemon
|
||||
#Please read /usr/share/doc/clamav-daemon/README.Debian.gz for details
|
||||
LocalSocket /var/run/clamav/clamd.ctl
|
||||
FixStaleSocket true
|
||||
LocalSocketGroup clamav
|
||||
LocalSocketMode 666
|
||||
# TemporaryDirectory is not set to its default /tmp here to make overriding
|
||||
# the default with environment variables TMPDIR/TMP/TEMP possible
|
||||
User clamav
|
||||
ScanMail true
|
||||
ScanArchive true
|
||||
ArchiveBlockEncrypted false
|
||||
MaxDirectoryRecursion 15
|
||||
FollowDirectorySymlinks false
|
||||
FollowFileSymlinks false
|
||||
ReadTimeout 180
|
||||
MaxThreads 12
|
||||
MaxConnectionQueueLength 15
|
||||
LogSyslog false
|
||||
LogRotate true
|
||||
LogFacility LOG_LOCAL6
|
||||
LogClean false
|
||||
LogVerbose false
|
||||
PreludeEnable no
|
||||
PreludeAnalyzerName ClamAV
|
||||
DatabaseDirectory /var/lib/clamav
|
||||
OfficialDatabaseOnly false
|
||||
SelfCheck 3600
|
||||
Foreground false
|
||||
Debug false
|
||||
ScanPE true
|
||||
MaxEmbeddedPE 10M
|
||||
ScanOLE2 true
|
||||
ScanPDF true
|
||||
ScanHTML true
|
||||
MaxHTMLNormalize 10M
|
||||
MaxHTMLNoTags 2M
|
||||
MaxScriptNormalize 5M
|
||||
MaxZipTypeRcg 1M
|
||||
ScanSWF true
|
||||
ExitOnOOM false
|
||||
LeaveTemporaryFiles false
|
||||
AlgorithmicDetection true
|
||||
ScanELF true
|
||||
IdleTimeout 30
|
||||
CrossFilesystems true
|
||||
PhishingSignatures true
|
||||
PhishingScanURLs true
|
||||
PhishingAlwaysBlockSSLMismatch false
|
||||
PhishingAlwaysBlockCloak false
|
||||
PartitionIntersection false
|
||||
DetectPUA false
|
||||
ScanPartialMessages false
|
||||
HeuristicScanPrecedence false
|
||||
StructuredDataDetection false
|
||||
CommandReadTimeout 5
|
||||
SendBufTimeout 200
|
||||
MaxQueue 100
|
||||
ExtendedDetectionInfo true
|
||||
OLE2BlockMacros false
|
||||
AllowAllMatchScan true
|
||||
ForceToDisk false
|
||||
DisableCertCheck false
|
||||
DisableCache false
|
||||
MaxScanTime 120000
|
||||
MaxScanSize 100M
|
||||
MaxFileSize 25M
|
||||
MaxRecursion 10
|
||||
MaxFiles 10000
|
||||
MaxPartitions 50
|
||||
MaxIconsPE 100
|
||||
PCREMatchLimit 10000
|
||||
PCRERecMatchLimit 5000
|
||||
PCREMaxFileSize 25M
|
||||
ScanXMLDOCS true
|
||||
ScanHWP3 true
|
||||
MaxRecHWP3 16
|
||||
StreamMaxLength 25M
|
||||
LogFile /var/log/clamav/clamav.log
|
||||
LogTime true
|
||||
LogFileUnlock false
|
||||
LogFileMaxSize 0
|
||||
Bytecode true
|
||||
BytecodeSecurity TrustSigned
|
||||
BytecodeTimeout 60000
|
||||
PidFile /var/run/clamav/clamd.pid
|
||||
OnAccessMaxFileSize 5M
|
89
config/mail/etc/clamav/clamd.conf.ucf-old
Normal file
89
config/mail/etc/clamav/clamd.conf.ucf-old
Normal file
@ -0,0 +1,89 @@
|
||||
#Automatically Generated by clamav-daemon postinst
|
||||
#To reconfigure clamd run #dpkg-reconfigure clamav-daemon
|
||||
#Please read /usr/share/doc/clamav-daemon/README.Debian.gz for details
|
||||
AllowSupplementaryGroups true
|
||||
LocalSocket /var/run/clamav/clamd.ctl
|
||||
FixStaleSocket true
|
||||
LocalSocketGroup clamav
|
||||
LocalSocketMode 666
|
||||
# TemporaryDirectory is not set to its default /tmp here to make overriding
|
||||
# the default with environment variables TMPDIR/TMP/TEMP possible
|
||||
User clamav
|
||||
ScanMail true
|
||||
ScanArchive true
|
||||
ArchiveBlockEncrypted false
|
||||
MaxDirectoryRecursion 15
|
||||
FollowDirectorySymlinks false
|
||||
FollowFileSymlinks false
|
||||
ReadTimeout 180
|
||||
MaxThreads 12
|
||||
MaxConnectionQueueLength 15
|
||||
LogSyslog false
|
||||
LogRotate true
|
||||
LogFacility LOG_LOCAL6
|
||||
LogClean false
|
||||
LogVerbose false
|
||||
PreludeEnable no
|
||||
PreludeAnalyzerName ClamAV
|
||||
DatabaseDirectory /var/lib/clamav
|
||||
OfficialDatabaseOnly false
|
||||
SelfCheck 3600
|
||||
Foreground false
|
||||
Debug false
|
||||
ScanPE true
|
||||
MaxEmbeddedPE 10M
|
||||
ScanOLE2 true
|
||||
ScanPDF true
|
||||
ScanHTML true
|
||||
MaxHTMLNormalize 10M
|
||||
MaxHTMLNoTags 2M
|
||||
MaxScriptNormalize 5M
|
||||
MaxZipTypeRcg 1M
|
||||
ScanSWF true
|
||||
DetectBrokenExecutables false
|
||||
ExitOnOOM false
|
||||
LeaveTemporaryFiles false
|
||||
AlgorithmicDetection true
|
||||
ScanELF true
|
||||
IdleTimeout 30
|
||||
CrossFilesystems true
|
||||
PhishingSignatures true
|
||||
PhishingScanURLs true
|
||||
PhishingAlwaysBlockSSLMismatch false
|
||||
PhishingAlwaysBlockCloak false
|
||||
PartitionIntersection false
|
||||
DetectPUA false
|
||||
ScanPartialMessages false
|
||||
HeuristicScanPrecedence false
|
||||
StructuredDataDetection false
|
||||
CommandReadTimeout 5
|
||||
SendBufTimeout 200
|
||||
MaxQueue 100
|
||||
ExtendedDetectionInfo true
|
||||
OLE2BlockMacros false
|
||||
ScanOnAccess false
|
||||
AllowAllMatchScan true
|
||||
ForceToDisk false
|
||||
DisableCertCheck false
|
||||
DisableCache false
|
||||
MaxScanSize 100M
|
||||
MaxFileSize 25M
|
||||
MaxRecursion 10
|
||||
MaxFiles 10000
|
||||
MaxPartitions 50
|
||||
MaxIconsPE 100
|
||||
PCREMatchLimit 10000
|
||||
PCRERecMatchLimit 5000
|
||||
PCREMaxFileSize 25M
|
||||
ScanXMLDOCS true
|
||||
ScanHWP3 true
|
||||
MaxRecHWP3 16
|
||||
StreamMaxLength 25M
|
||||
LogFile /var/log/clamav/clamav.log
|
||||
LogTime true
|
||||
LogFileUnlock false
|
||||
LogFileMaxSize 0
|
||||
Bytecode true
|
||||
BytecodeSecurity TrustSigned
|
||||
BytecodeTimeout 60000
|
||||
PidFile /var/run/clamav/clamd.pid
|
27
config/mail/etc/clamav/freshclam.conf
Normal file
27
config/mail/etc/clamav/freshclam.conf
Normal file
@ -0,0 +1,27 @@
|
||||
# Automatically created by the clamav-freshclam postinst
|
||||
# Comments will get lost when you reconfigure the clamav-freshclam package
|
||||
|
||||
DatabaseOwner clamav
|
||||
UpdateLogFile /var/log/clamav/freshclam.log
|
||||
LogVerbose false
|
||||
LogSyslog false
|
||||
LogFacility LOG_LOCAL6
|
||||
LogFileMaxSize 0
|
||||
LogRotate true
|
||||
LogTime true
|
||||
Foreground false
|
||||
Debug false
|
||||
MaxAttempts 5
|
||||
DatabaseDirectory /var/lib/clamav
|
||||
DNSDatabaseInfo current.cvd.clamav.net
|
||||
ConnectTimeout 30
|
||||
ReceiveTimeout 30
|
||||
TestDatabases yes
|
||||
ScriptedUpdates yes
|
||||
CompressLocalDatabase no
|
||||
Bytecode true
|
||||
# Check for new database 24 times a day
|
||||
Checks 24
|
||||
DatabaseMirror db.local.clamav.net
|
||||
DatabaseMirror database.clamav.net
|
||||
PidFile /var/run/clamav/freshclam.pid
|
17
config/mail/etc/cron.d/mail
Normal file
17
config/mail/etc/cron.d/mail
Normal file
@ -0,0 +1,17 @@
|
||||
# m h dom mon dow command
|
||||
|
||||
# Kick amavis every two hours in case it has died
|
||||
0 */2 * * * /usr/sbin/service amavis stop ; /bin/ps aux | grep ^amavis | while read user pid rest; do sudo /bin/kill -9 $pid; done ; /usr/sbin/service amavis restart
|
||||
|
||||
# Kick spamassassin in case it died
|
||||
1 */2 * * * kill -9 $(cat /var/run/)
|
||||
|
||||
# Kick postfix in case it died
|
||||
5 */2 * * * /usr/sbin/service postfix restart
|
||||
|
||||
# Kick mailman every two hours in case it has stopped running
|
||||
#7 */2 * * * /usr/sbin/service mailman restart
|
||||
|
||||
# Check the email log for bad IP sources
|
||||
0 6 * * * /email-check
|
||||
|
2
config/mail/etc/dovecot/README
Normal file
2
config/mail/etc/dovecot/README
Normal file
@ -0,0 +1,2 @@
|
||||
Configuration files go to this directory. See example configuration files in
|
||||
/usr/share/doc/dovecot-core/example-config/
|
@ -0,0 +1,9 @@
|
||||
mechanisms = plain login
|
||||
socket listen {
|
||||
client {
|
||||
path = /var/spool/postfix/private/dovecot-auth
|
||||
mode = 0660
|
||||
user = postfix
|
||||
group = postfix
|
||||
}
|
||||
}
|
51
config/mail/etc/dovecot/conf.d/01-mail-stack-delivery.conf
Normal file
51
config/mail/etc/dovecot/conf.d/01-mail-stack-delivery.conf
Normal file
@ -0,0 +1,51 @@
|
||||
# Some general options
|
||||
protocols = imap pop3 sieve
|
||||
disable_plaintext_auth = yes
|
||||
ssl = yes
|
||||
#ssl_cert = </etc/ssl/certs/ssl-mail.pem
|
||||
#ssl_key = </etc/ssl/private/ssl-mail.key
|
||||
ssl_cert = </etc/letsencrypt/live/ketrenos.com/fullchain.pem
|
||||
ssl_key = </etc/letsencrypt/live/ketrenos.com/privkey.pem
|
||||
ssl_cipher_list = ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM
|
||||
mail_location = maildir:~/Maildir
|
||||
#auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
|
||||
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.@
|
||||
|
||||
# IMAP configuration
|
||||
protocol imap {
|
||||
mail_max_userip_connections = 10
|
||||
imap_client_workarounds = delay-newmail
|
||||
}
|
||||
|
||||
# POP3 configuration
|
||||
protocol pop3 {
|
||||
mail_max_userip_connections = 10
|
||||
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
|
||||
}
|
||||
|
||||
# LDA configuration
|
||||
protocol lda {
|
||||
postmaster_address = postmaster
|
||||
mail_plugins = sieve
|
||||
quota_full_tempfail = yes
|
||||
deliver_log_format = msgid=%m: %$
|
||||
rejection_reason = Your message to <%t> was automatically rejected:%n%r
|
||||
}
|
||||
|
||||
# Plugins configuration
|
||||
plugin {
|
||||
sieve=~/.dovecot.sieve
|
||||
sieve_dir=~/sieve
|
||||
}
|
||||
|
||||
# Authentication configuration
|
||||
auth_mechanisms = plain login
|
||||
|
||||
service auth {
|
||||
# Postfix smtp-auth
|
||||
unix_listener /var/spool/postfix/private/dovecot-auth {
|
||||
mode = 0660
|
||||
user = postfix
|
||||
group = postfix
|
||||
}
|
||||
}
|
134
config/mail/etc/dovecot/conf.d/10-auth.conf
Normal file
134
config/mail/etc/dovecot/conf.d/10-auth.conf
Normal file
@ -0,0 +1,134 @@
|
||||
##
|
||||
## Authentication processes
|
||||
##
|
||||
|
||||
# Disable LOGIN command and all other plaintext authentications unless
|
||||
# SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
|
||||
# matches the local IP (ie. you're connecting from the same computer), the
|
||||
# connection is considered secure and plaintext authentication is allowed.
|
||||
# See also ssl=required setting.
|
||||
#disable_plaintext_auth = yes
|
||||
|
||||
# Authentication cache size (e.g. 10M). 0 means it's disabled. Note that
|
||||
# bsdauth, PAM and vpopmail require cache_key to be set for caching to be used.
|
||||
#auth_cache_size = 0
|
||||
# Time to live for cached data. After TTL expires the cached record is no
|
||||
# longer used, *except* if the main database lookup returns internal failure.
|
||||
# We also try to handle password changes automatically: If user's previous
|
||||
# authentication was successful, but this one wasn't, the cache isn't used.
|
||||
# For now this works only with plaintext authentication.
|
||||
#auth_cache_ttl = 1 hour
|
||||
# TTL for negative hits (user not found, password mismatch).
|
||||
# 0 disables caching them completely.
|
||||
#auth_cache_negative_ttl = 1 hour
|
||||
|
||||
# Space separated list of realms for SASL authentication mechanisms that need
|
||||
# them. You can leave it empty if you don't want to support multiple realms.
|
||||
# Many clients simply use the first one listed here, so keep the default realm
|
||||
# first.
|
||||
#auth_realms =
|
||||
|
||||
# Default realm/domain to use if none was specified. This is used for both
|
||||
# SASL realms and appending @domain to username in plaintext logins.
|
||||
#auth_default_realm =
|
||||
|
||||
# List of allowed characters in username. If the user-given username contains
|
||||
# a character not listed in here, the login automatically fails. This is just
|
||||
# an extra check to make sure user can't exploit any potential quote escaping
|
||||
# vulnerabilities with SQL/LDAP databases. If you want to allow all characters,
|
||||
# set this value to empty.
|
||||
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890
|
||||
|
||||
# Username character translations before it's looked up from databases. The
|
||||
# value contains series of from -> to characters. For example "#@/@" means
|
||||
# that '#' and '/' characters are translated to '@'.
|
||||
#auth_username_translation =
|
||||
|
||||
# Username formatting before it's looked up from databases. You can use
|
||||
# the standard variables here, eg. %Lu would lowercase the username, %n would
|
||||
# drop away the domain if it was given, or "%n-AT-%d" would change the '@' into
|
||||
# "-AT-". This translation is done after auth_username_translation changes.
|
||||
#auth_username_format = %Lu
|
||||
|
||||
# If you want to allow master users to log in by specifying the master
|
||||
# username within the normal username string (ie. not using SASL mechanism's
|
||||
# support for it), you can specify the separator character here. The format
|
||||
# is then <username><separator><master username>. UW-IMAP uses "*" as the
|
||||
# separator, so that could be a good choice.
|
||||
#auth_master_user_separator =
|
||||
|
||||
# Username to use for users logging in with ANONYMOUS SASL mechanism
|
||||
#auth_anonymous_username = anonymous
|
||||
|
||||
# Maximum number of dovecot-auth worker processes. They're used to execute
|
||||
# blocking passdb and userdb queries (eg. MySQL and PAM). They're
|
||||
# automatically created and destroyed as needed.
|
||||
#auth_worker_max_count = 30
|
||||
|
||||
# Host name to use in GSSAPI principal names. The default is to use the
|
||||
# name returned by gethostname(). Use "$ALL" (with quotes) to allow all keytab
|
||||
# entries.
|
||||
#auth_gssapi_hostname =
|
||||
|
||||
# Kerberos keytab to use for the GSSAPI mechanism. Will use the system
|
||||
# default (usually /etc/krb5.keytab) if not specified. You may need to change
|
||||
# the auth service to run as root to be able to read this file.
|
||||
#auth_krb5_keytab =
|
||||
|
||||
# Do NTLM and GSS-SPNEGO authentication using Samba's winbind daemon and
|
||||
# ntlm_auth helper. <doc/wiki/Authentication/Mechanisms/Winbind.txt>
|
||||
#auth_use_winbind = no
|
||||
|
||||
# Path for Samba's ntlm_auth helper binary.
|
||||
#auth_winbind_helper_path = /usr/bin/ntlm_auth
|
||||
|
||||
# Time to delay before replying to failed authentications.
|
||||
#auth_failure_delay = 2 secs
|
||||
|
||||
# Require a valid SSL client certificate or the authentication fails.
|
||||
#auth_ssl_require_client_cert = no
|
||||
|
||||
# Take the username from client's SSL certificate, using
|
||||
# X509_NAME_get_text_by_NID() which returns the subject's DN's
|
||||
# CommonName.
|
||||
#auth_ssl_username_from_cert = no
|
||||
|
||||
# Space separated list of wanted authentication mechanisms:
|
||||
# plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi otp skey
|
||||
# gss-spnego
|
||||
# NOTE: See also disable_plaintext_auth setting.
|
||||
auth_mechanisms = plain
|
||||
|
||||
##
|
||||
## Password and user databases
|
||||
##
|
||||
|
||||
#
|
||||
# Password database is used to verify user's password (and nothing more).
|
||||
# You can have multiple passdbs and userdbs. This is useful if you want to
|
||||
# allow both system users (/etc/passwd) and virtual users to login without
|
||||
# duplicating the system users into virtual database.
|
||||
#
|
||||
# <doc/wiki/PasswordDatabase.txt>
|
||||
#
|
||||
# User database specifies where mails are located and what user/group IDs
|
||||
# own them. For single-UID configuration use "static" userdb.
|
||||
#
|
||||
# <doc/wiki/UserDatabase.txt>
|
||||
|
||||
#!include auth-deny.conf.ext
|
||||
#!include auth-master.conf.ext
|
||||
|
||||
!include auth-system.conf.ext
|
||||
#!include auth-sql.conf.ext
|
||||
#!include auth-ldap.conf.ext
|
||||
#!include auth-passwdfile.conf.ext
|
||||
#!include auth-checkpassword.conf.ext
|
||||
#!include auth-vpopmail.conf.ext
|
||||
#!include auth-static.conf.ext
|
||||
|
||||
#passdb {
|
||||
# driver = pam
|
||||
# args = %s
|
||||
#}
|
||||
|
61
config/mail/etc/dovecot/conf.d/10-director.conf
Normal file
61
config/mail/etc/dovecot/conf.d/10-director.conf
Normal file
@ -0,0 +1,61 @@
|
||||
##
|
||||
## Director-specific settings.
|
||||
##
|
||||
|
||||
# Director can be used by Dovecot proxy to keep a temporary user -> mail server
|
||||
# mapping. As long as user has simultaneous connections, the user is always
|
||||
# redirected to the same server. Each proxy server is running its own director
|
||||
# process, and the directors are communicating the state to each others.
|
||||
# Directors are mainly useful with NFS-like setups.
|
||||
|
||||
# List of IPs or hostnames to all director servers, including ourself.
|
||||
# Ports can be specified as ip:port. The default port is the same as
|
||||
# what director service's inet_listener is using.
|
||||
#director_servers =
|
||||
|
||||
# List of IPs or hostnames to all backend mail servers. Ranges are allowed
|
||||
# too, like 10.0.0.10-10.0.0.30.
|
||||
#director_mail_servers =
|
||||
|
||||
# How long to redirect users to a specific server after it no longer has
|
||||
# any connections.
|
||||
#director_user_expire = 15 min
|
||||
|
||||
# TCP/IP port that accepts doveadm connections (instead of director connections)
|
||||
# If you enable this, you'll also need to add inet_listener for the port.
|
||||
#director_doveadm_port = 0
|
||||
|
||||
# How the username is translated before being hashed. Useful values include
|
||||
# %Ln if user can log in with or without @domain, %Ld if mailboxes are shared
|
||||
# within domain.
|
||||
#director_username_hash = %Lu
|
||||
|
||||
# To enable director service, uncomment the modes and assign a port.
|
||||
service director {
|
||||
unix_listener login/director {
|
||||
#mode = 0666
|
||||
}
|
||||
fifo_listener login/proxy-notify {
|
||||
#mode = 0666
|
||||
}
|
||||
unix_listener director-userdb {
|
||||
#mode = 0600
|
||||
}
|
||||
inet_listener {
|
||||
#port =
|
||||
}
|
||||
}
|
||||
|
||||
# Enable director for the wanted login services by telling them to
|
||||
# connect to director socket instead of the default login socket:
|
||||
service imap-login {
|
||||
#executable = imap-login director
|
||||
}
|
||||
service pop3-login {
|
||||
#executable = pop3-login director
|
||||
}
|
||||
|
||||
# Enable director for LMTP proxying:
|
||||
protocol lmtp {
|
||||
#auth_socket_path = director-userdb
|
||||
}
|
89
config/mail/etc/dovecot/conf.d/10-logging.conf
Normal file
89
config/mail/etc/dovecot/conf.d/10-logging.conf
Normal file
@ -0,0 +1,89 @@
|
||||
##
|
||||
## Log destination.
|
||||
##
|
||||
|
||||
# Log file to use for error messages. "syslog" logs to syslog,
|
||||
# /dev/stderr logs to stderr.
|
||||
#log_path = syslog
|
||||
|
||||
# Log file to use for informational messages. Defaults to log_path.
|
||||
#info_log_path =
|
||||
# Log file to use for debug messages. Defaults to info_log_path.
|
||||
#debug_log_path =
|
||||
|
||||
# Syslog facility to use if you're logging to syslog. Usually if you don't
|
||||
# want to use "mail", you'll use local0..local7. Also other standard
|
||||
# facilities are supported.
|
||||
#syslog_facility = mail
|
||||
|
||||
##
|
||||
## Logging verbosity and debugging.
|
||||
##
|
||||
|
||||
# Log unsuccessful authentication attempts and the reasons why they failed.
|
||||
#auth_verbose = no
|
||||
auth_verbose = yes
|
||||
|
||||
# In case of password mismatches, log the attempted password. Valid values are
|
||||
# no, plain and sha1. sha1 can be useful for detecting brute force password
|
||||
# attempts vs. user simply trying the same password over and over again.
|
||||
# You can also truncate the value to n chars by appending ":n" (e.g. sha1:6).
|
||||
#auth_verbose_passwords = no
|
||||
#auth_verbose_passwords = yes
|
||||
|
||||
# Even more verbose logging for debugging purposes. Shows for example SQL
|
||||
# queries.
|
||||
auth_debug = no
|
||||
#auth_debug = yes
|
||||
|
||||
# In case of password mismatches, log the passwords and used scheme so the
|
||||
# problem can be debugged. Enabling this also enables auth_debug.
|
||||
auth_debug_passwords = no
|
||||
#auth_debug_passwords = yes
|
||||
|
||||
# Enable mail process debugging. This can help you figure out why Dovecot
|
||||
# isn't finding your mails.
|
||||
mail_debug = yes
|
||||
|
||||
# Show protocol level SSL errors.
|
||||
verbose_ssl = no
|
||||
|
||||
# mail_log plugin provides more event logging for mail processes.
|
||||
plugin {
|
||||
# Events to log. Also available: flag_change append
|
||||
#mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
|
||||
# Available fields: uid, box, msgid, from, subject, size, vsize, flags
|
||||
# size and vsize are available only for expunge and copy events.
|
||||
#mail_log_fields = uid box msgid size
|
||||
}
|
||||
|
||||
##
|
||||
## Log formatting.
|
||||
##
|
||||
|
||||
# Prefix for each line written to log file. % codes are in strftime(3)
|
||||
# format.
|
||||
#log_timestamp = "%b %d %H:%M:%S "
|
||||
|
||||
# Space-separated list of elements we want to log. The elements which have
|
||||
# a non-empty variable value are joined together to form a comma-separated
|
||||
# string.
|
||||
#login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
|
||||
|
||||
# Login log format. %s contains login_log_format_elements string, %$ contains
|
||||
# the data we want to log.
|
||||
#login_log_format = %$: %s
|
||||
|
||||
# Log prefix for mail processes. See doc/wiki/Variables.txt for list of
|
||||
# possible variables you can use.
|
||||
#mail_log_prefix = "%s(%u): "
|
||||
|
||||
# Format to use for logging mail deliveries. See doc/wiki/Variables.txt for
|
||||
# list of all variables you can use. Some of the common ones include:
|
||||
# %$ - Delivery status message (e.g. "saved to INBOX")
|
||||
# %m - Message-ID
|
||||
# %s - Subject
|
||||
# %f - From address
|
||||
# %p - Physical size
|
||||
# %w - Virtual size
|
||||
#deliver_log_format = msgid=%m: %$
|
89
config/mail/etc/dovecot/conf.d/10-logging.conf.ucf-dist
Normal file
89
config/mail/etc/dovecot/conf.d/10-logging.conf.ucf-dist
Normal file
@ -0,0 +1,89 @@
|
||||
##
|
||||
## Log destination.
|
||||
##
|
||||
|
||||
# Log file to use for error messages. "syslog" logs to syslog,
|
||||
# /dev/stderr logs to stderr.
|
||||
#log_path = syslog
|
||||
|
||||
# Log file to use for informational messages. Defaults to log_path.
|
||||
#info_log_path =
|
||||
# Log file to use for debug messages. Defaults to info_log_path.
|
||||
#debug_log_path =
|
||||
|
||||
# Syslog facility to use if you're logging to syslog. Usually if you don't
|
||||
# want to use "mail", you'll use local0..local7. Also other standard
|
||||
# facilities are supported.
|
||||
#syslog_facility = mail
|
||||
|
||||
##
|
||||
## Logging verbosity and debugging.
|
||||
##
|
||||
|
||||
# Log unsuccessful authentication attempts and the reasons why they failed.
|
||||
#auth_verbose = no
|
||||
|
||||
# In case of password mismatches, log the attempted password. Valid values are
|
||||
# no, plain and sha1. sha1 can be useful for detecting brute force password
|
||||
# attempts vs. user simply trying the same password over and over again.
|
||||
# You can also truncate the value to n chars by appending ":n" (e.g. sha1:6).
|
||||
#auth_verbose_passwords = no
|
||||
|
||||
# Even more verbose logging for debugging purposes. Shows for example SQL
|
||||
# queries.
|
||||
#auth_debug = no
|
||||
|
||||
# In case of password mismatches, log the passwords and used scheme so the
|
||||
# problem can be debugged. Enabling this also enables auth_debug.
|
||||
#auth_debug_passwords = no
|
||||
|
||||
# Enable mail process debugging. This can help you figure out why Dovecot
|
||||
# isn't finding your mails.
|
||||
#mail_debug = no
|
||||
|
||||
# Show protocol level SSL errors.
|
||||
#verbose_ssl = no
|
||||
|
||||
# mail_log plugin provides more event logging for mail processes.
|
||||
plugin {
|
||||
# Events to log. Also available: flag_change append
|
||||
#mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
|
||||
# Available fields: uid, box, msgid, from, subject, size, vsize, flags
|
||||
# size and vsize are available only for expunge and copy events.
|
||||
#mail_log_fields = uid box msgid size
|
||||
}
|
||||
|
||||
##
|
||||
## Log formatting.
|
||||
##
|
||||
|
||||
# Prefix for each line written to log file. % codes are in strftime(3)
|
||||
# format.
|
||||
#log_timestamp = "%b %d %H:%M:%S "
|
||||
|
||||
# Space-separated list of elements we want to log. The elements which have
|
||||
# a non-empty variable value are joined together to form a comma-separated
|
||||
# string.
|
||||
#login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
|
||||
|
||||
# Login log format. %s contains login_log_format_elements string, %$ contains
|
||||
# the data we want to log.
|
||||
#login_log_format = %$: %s
|
||||
|
||||
# Log prefix for mail processes. See doc/wiki/Variables.txt for list of
|
||||
# possible variables you can use.
|
||||
#mail_log_prefix = "%s(%u): "
|
||||
|
||||
# Format to use for logging mail deliveries:
|
||||
# %$ - Delivery status message (e.g. "saved to INBOX")
|
||||
# %m / %{msgid} - Message-ID
|
||||
# %s / %{subject} - Subject
|
||||
# %f / %{from} - From address
|
||||
# %p / %{size} - Physical size
|
||||
# %w / %{vsize} - Virtual size
|
||||
# %e / %{from_envelope} - MAIL FROM envelope
|
||||
# %{to_envelope} - RCPT TO envelope
|
||||
# %{delivery_time} - How many milliseconds it took to deliver the mail
|
||||
# %{session_time} - How long LMTP session took, not including delivery_time
|
||||
# %{storage_id} - Backend-specific ID for mail, e.g. Maildir filename
|
||||
#deliver_log_format = msgid=%m: %$
|
83
config/mail/etc/dovecot/conf.d/10-logging.conf.ucf-old
Normal file
83
config/mail/etc/dovecot/conf.d/10-logging.conf.ucf-old
Normal file
@ -0,0 +1,83 @@
|
||||
##
|
||||
## Log destination.
|
||||
##
|
||||
|
||||
# Log file to use for error messages. "syslog" logs to syslog,
|
||||
# /dev/stderr logs to stderr.
|
||||
#log_path = syslog
|
||||
|
||||
# Log file to use for informational messages. Defaults to log_path.
|
||||
#info_log_path =
|
||||
# Log file to use for debug messages. Defaults to info_log_path.
|
||||
#debug_log_path =
|
||||
|
||||
# Syslog facility to use if you're logging to syslog. Usually if you don't
|
||||
# want to use "mail", you'll use local0..local7. Also other standard
|
||||
# facilities are supported.
|
||||
#syslog_facility = mail
|
||||
|
||||
##
|
||||
## Logging verbosity and debugging.
|
||||
##
|
||||
|
||||
# Log unsuccessful authentication attempts and the reasons why they failed.
|
||||
#auth_verbose = no
|
||||
|
||||
# In case of password mismatches, log the attempted password. Valid values are
|
||||
# no, plain and sha1. sha1 can be useful for detecting brute force password
|
||||
# attempts vs. user simply trying the same password over and over again.
|
||||
#auth_verbose_passwords = no
|
||||
|
||||
# Even more verbose logging for debugging purposes. Shows for example SQL
|
||||
# queries.
|
||||
#auth_debug = no
|
||||
|
||||
# In case of password mismatches, log the passwords and used scheme so the
|
||||
# problem can be debugged. Enabling this also enables auth_debug.
|
||||
auth_debug_passwords = yes
|
||||
|
||||
# Enable mail process debugging. This can help you figure out why Dovecot
|
||||
# isn't finding your mails.
|
||||
#mail_debug = no
|
||||
|
||||
# Show protocol level SSL errors.
|
||||
#verbose_ssl = no
|
||||
|
||||
# mail_log plugin provides more event logging for mail processes.
|
||||
plugin {
|
||||
# Events to log. Also available: flag_change append
|
||||
#mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
|
||||
# Available fields: uid, box, msgid, from, subject, size, vsize, flags
|
||||
# size and vsize are available only for expunge and copy events.
|
||||
#mail_log_fields = uid box msgid size
|
||||
}
|
||||
|
||||
##
|
||||
## Log formatting.
|
||||
##
|
||||
|
||||
# Prefix for each line written to log file. % codes are in strftime(3)
|
||||
# format.
|
||||
#log_timestamp = "%b %d %H:%M:%S "
|
||||
|
||||
# Space-separated list of elements we want to log. The elements which have
|
||||
# a non-empty variable value are joined together to form a comma-separated
|
||||
# string.
|
||||
#login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
|
||||
|
||||
# Login log format. %$ contains login_log_format_elements string, %s contains
|
||||
# the data we want to log.
|
||||
#login_log_format = %$: %s
|
||||
|
||||
# Log prefix for mail processes. See doc/wiki/Variables.txt for list of
|
||||
# possible variables you can use.
|
||||
#mail_log_prefix = "%s(%u): "
|
||||
|
||||
# Format to use for logging mail deliveries. You can use variables:
|
||||
# %$ - Delivery status message (e.g. "saved to INBOX")
|
||||
# %m - Message-ID
|
||||
# %s - Subject
|
||||
# %f - From address
|
||||
# %p - Physical size
|
||||
# %w - Virtual size
|
||||
#deliver_log_format = msgid=%m: %$
|
385
config/mail/etc/dovecot/conf.d/10-mail.conf
Normal file
385
config/mail/etc/dovecot/conf.d/10-mail.conf
Normal file
@ -0,0 +1,385 @@
|
||||
##
|
||||
## Mailbox locations and namespaces
|
||||
##
|
||||
|
||||
# Location for users' mailboxes. The default is empty, which means that Dovecot
|
||||
# tries to find the mailboxes automatically. This won't work if the user
|
||||
# doesn't yet have any mail, so you should explicitly tell Dovecot the full
|
||||
# location.
|
||||
#
|
||||
# If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u)
|
||||
# isn't enough. You'll also need to tell Dovecot where the other mailboxes are
|
||||
# kept. This is called the "root mail directory", and it must be the first
|
||||
# path given in the mail_location setting.
|
||||
#
|
||||
# There are a few special variables you can use, eg.:
|
||||
#
|
||||
# %u - username
|
||||
# %n - user part in user@domain, same as %u if there's no domain
|
||||
# %d - domain part in user@domain, empty if there's no domain
|
||||
# %h - home directory
|
||||
#
|
||||
# See doc/wiki/Variables.txt for full list. Some examples:
|
||||
#
|
||||
# mail_location = maildir:~/Maildir
|
||||
# mail_location = mbox:~/mail:INBOX=/var/mail/%u
|
||||
# mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
|
||||
#
|
||||
# <doc/wiki/MailLocation.txt>
|
||||
#
|
||||
mail_location = mbox:~/mail:INBOX=/var/mail/%u
|
||||
|
||||
# If you need to set multiple mailbox locations or want to change default
|
||||
# namespace settings, you can do it by defining namespace sections.
|
||||
#
|
||||
# You can have private, shared and public namespaces. Private namespaces
|
||||
# are for user's personal mails. Shared namespaces are for accessing other
|
||||
# users' mailboxes that have been shared. Public namespaces are for shared
|
||||
# mailboxes that are managed by sysadmin. If you create any shared or public
|
||||
# namespaces you'll typically want to enable ACL plugin also, otherwise all
|
||||
# users can access all the shared mailboxes, assuming they have permissions
|
||||
# on filesystem level to do so.
|
||||
namespace inbox {
|
||||
# Namespace type: private, shared or public
|
||||
#type = private
|
||||
|
||||
# Hierarchy separator to use. You should use the same separator for all
|
||||
# namespaces or some clients get confused. '/' is usually a good one.
|
||||
# The default however depends on the underlying mail storage format.
|
||||
#separator =
|
||||
|
||||
# Prefix required to access this namespace. This needs to be different for
|
||||
# all namespaces. For example "Public/".
|
||||
#prefix =
|
||||
|
||||
# Physical location of the mailbox. This is in same format as
|
||||
# mail_location, which is also the default for it.
|
||||
#location =
|
||||
|
||||
# There can be only one INBOX, and this setting defines which namespace
|
||||
# has it.
|
||||
inbox = yes
|
||||
|
||||
# If namespace is hidden, it's not advertised to clients via NAMESPACE
|
||||
# extension. You'll most likely also want to set list=no. This is mostly
|
||||
# useful when converting from another server with different namespaces which
|
||||
# you want to deprecate but still keep working. For example you can create
|
||||
# hidden namespaces with prefixes "~/mail/", "~%u/mail/" and "mail/".
|
||||
#hidden = no
|
||||
|
||||
# Show the mailboxes under this namespace with LIST command. This makes the
|
||||
# namespace visible for clients that don't support NAMESPACE extension.
|
||||
# "children" value lists child mailboxes, but hides the namespace prefix.
|
||||
#list = yes
|
||||
|
||||
# Namespace handles its own subscriptions. If set to "no", the parent
|
||||
# namespace handles them (empty prefix should always have this as "yes")
|
||||
#subscriptions = yes
|
||||
|
||||
# See 15-mailboxes.conf for definitions of special mailboxes.
|
||||
}
|
||||
|
||||
# Example shared namespace configuration
|
||||
#namespace {
|
||||
#type = shared
|
||||
#separator = /
|
||||
|
||||
# Mailboxes are visible under "shared/user@domain/"
|
||||
# %%n, %%d and %%u are expanded to the destination user.
|
||||
#prefix = shared/%%u/
|
||||
|
||||
# Mail location for other users' mailboxes. Note that %variables and ~/
|
||||
# expands to the logged in user's data. %%n, %%d, %%u and %%h expand to the
|
||||
# destination user's data.
|
||||
#location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
|
||||
|
||||
# Use the default namespace for saving subscriptions.
|
||||
#subscriptions = no
|
||||
|
||||
# List the shared/ namespace only if there are visible shared mailboxes.
|
||||
#list = children
|
||||
#}
|
||||
# Should shared INBOX be visible as "shared/user" or "shared/user/INBOX"?
|
||||
#mail_shared_explicit_inbox = no
|
||||
|
||||
# System user and group used to access mails. If you use multiple, userdb
|
||||
# can override these by returning uid or gid fields. You can use either numbers
|
||||
# or names. <doc/wiki/UserIds.txt>
|
||||
#mail_uid =
|
||||
#mail_gid =
|
||||
|
||||
# Group to enable temporarily for privileged operations. Currently this is
|
||||
# used only with INBOX when either its initial creation or dotlocking fails.
|
||||
# Typically this is set to "mail" to give access to /var/mail.
|
||||
#mail_privileged_group =
|
||||
|
||||
# Grant access to these supplementary groups for mail processes. Typically
|
||||
# these are used to set up access to shared mailboxes. Note that it may be
|
||||
# dangerous to set these if users can create symlinks (e.g. if "mail" group is
|
||||
# set here, ln -s /var/mail ~/mail/var could allow a user to delete others'
|
||||
# mailboxes, or ln -s /secret/shared/box ~/mail/mybox would allow reading it).
|
||||
#mail_access_groups =
|
||||
|
||||
# Allow full filesystem access to clients. There's no access checks other than
|
||||
# what the operating system does for the active UID/GID. It works with both
|
||||
# maildir and mboxes, allowing you to prefix mailboxes names with eg. /path/
|
||||
# or ~user/.
|
||||
#mail_full_filesystem_access = no
|
||||
|
||||
# Dictionary for key=value mailbox attributes. This is used for example by
|
||||
# URLAUTH and METADATA extensions.
|
||||
#mail_attribute_dict =
|
||||
|
||||
# A comment or note that is associated with the server. This value is
|
||||
# accessible for authenticated users through the IMAP METADATA server
|
||||
# entry "/shared/comment".
|
||||
#mail_server_comment = ""
|
||||
|
||||
# Indicates a method for contacting the server administrator. According to
|
||||
# RFC 5464, this value MUST be a URI (e.g., a mailto: or tel: URL), but that
|
||||
# is currently not enforced. Use for example mailto:admin@example.com. This
|
||||
# value is accessible for authenticated users through the IMAP METADATA server
|
||||
# entry "/shared/admin".
|
||||
#mail_server_admin =
|
||||
|
||||
##
|
||||
## Mail processes
|
||||
##
|
||||
|
||||
# Don't use mmap() at all. This is required if you store indexes to shared
|
||||
# filesystems (NFS or clustered filesystem).
|
||||
#mmap_disable = no
|
||||
|
||||
# Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
|
||||
# since version 3, so this should be safe to use nowadays by default.
|
||||
#dotlock_use_excl = yes
|
||||
|
||||
# When to use fsync() or fdatasync() calls:
|
||||
# optimized (default): Whenever necessary to avoid losing important data
|
||||
# always: Useful with e.g. NFS when write()s are delayed
|
||||
# never: Never use it (best performance, but crashes can lose data)
|
||||
#mail_fsync = optimized
|
||||
|
||||
# Locking method for index files. Alternatives are fcntl, flock and dotlock.
|
||||
# Dotlocking uses some tricks which may create more disk I/O than other locking
|
||||
# methods. NFS users: flock doesn't work, remember to change mmap_disable.
|
||||
#lock_method = fcntl
|
||||
|
||||
# Directory in which LDA/LMTP temporarily stores incoming mails >128 kB.
|
||||
#mail_temp_dir = /tmp
|
||||
|
||||
# Valid UID range for users, defaults to 500 and above. This is mostly
|
||||
# to make sure that users can't log in as daemons or other system users.
|
||||
# Note that denying root logins is hardcoded to dovecot binary and can't
|
||||
# be done even if first_valid_uid is set to 0.
|
||||
#first_valid_uid = 500
|
||||
#last_valid_uid = 0
|
||||
|
||||
# Valid GID range for users, defaults to non-root/wheel. Users having
|
||||
# non-valid GID as primary group ID aren't allowed to log in. If user
|
||||
# belongs to supplementary groups with non-valid GIDs, those groups are
|
||||
# not set.
|
||||
#first_valid_gid = 1
|
||||
#last_valid_gid = 0
|
||||
|
||||
# Maximum allowed length for mail keyword name. It's only forced when trying
|
||||
# to create new keywords.
|
||||
#mail_max_keyword_length = 50
|
||||
|
||||
# ':' separated list of directories under which chrooting is allowed for mail
|
||||
# processes (ie. /var/mail will allow chrooting to /var/mail/foo/bar too).
|
||||
# This setting doesn't affect login_chroot, mail_chroot or auth chroot
|
||||
# settings. If this setting is empty, "/./" in home dirs are ignored.
|
||||
# WARNING: Never add directories here which local users can modify, that
|
||||
# may lead to root exploit. Usually this should be done only if you don't
|
||||
# allow shell access for users. <doc/wiki/Chrooting.txt>
|
||||
#valid_chroot_dirs =
|
||||
|
||||
# Default chroot directory for mail processes. This can be overridden for
|
||||
# specific users in user database by giving /./ in user's home directory
|
||||
# (eg. /home/./user chroots into /home). Note that usually there is no real
|
||||
# need to do chrooting, Dovecot doesn't allow users to access files outside
|
||||
# their mail directory anyway. If your home directories are prefixed with
|
||||
# the chroot directory, append "/." to mail_chroot. <doc/wiki/Chrooting.txt>
|
||||
#mail_chroot =
|
||||
|
||||
# UNIX socket path to master authentication server to find users.
|
||||
# This is used by imap (for shared users) and lda.
|
||||
#auth_socket_path = /var/run/dovecot/auth-userdb
|
||||
|
||||
# Directory where to look up mail plugins.
|
||||
#mail_plugin_dir = /usr/lib/dovecot/modules
|
||||
|
||||
# Space separated list of plugins to load for all services. Plugins specific to
|
||||
# IMAP, LDA, etc. are added to this list in their own .conf files.
|
||||
#mail_plugins =
|
||||
|
||||
##
|
||||
## Mailbox handling optimizations
|
||||
##
|
||||
|
||||
# Mailbox list indexes can be used to optimize IMAP STATUS commands. They are
|
||||
# also required for IMAP NOTIFY extension to be enabled.
|
||||
#mailbox_list_index = no
|
||||
|
||||
# The minimum number of mails in a mailbox before updates are done to cache
|
||||
# file. This allows optimizing Dovecot's behavior to do less disk writes at
|
||||
# the cost of more disk reads.
|
||||
#mail_cache_min_mail_count = 0
|
||||
|
||||
# When IDLE command is running, mailbox is checked once in a while to see if
|
||||
# there are any new mails or other changes. This setting defines the minimum
|
||||
# time to wait between those checks. Dovecot can also use inotify and
|
||||
# kqueue to find out immediately when changes occur.
|
||||
#mailbox_idle_check_interval = 30 secs
|
||||
|
||||
# Save mails with CR+LF instead of plain LF. This makes sending those mails
|
||||
# take less CPU, especially with sendfile() syscall with Linux and FreeBSD.
|
||||
# But it also creates a bit more disk I/O which may just make it slower.
|
||||
# Also note that if other software reads the mboxes/maildirs, they may handle
|
||||
# the extra CRs wrong and cause problems.
|
||||
#mail_save_crlf = no
|
||||
|
||||
# Max number of mails to keep open and prefetch to memory. This only works with
|
||||
# some mailbox formats and/or operating systems.
|
||||
#mail_prefetch_count = 0
|
||||
|
||||
# How often to scan for stale temporary files and delete them (0 = never).
|
||||
# These should exist only after Dovecot dies in the middle of saving mails.
|
||||
#mail_temp_scan_interval = 1w
|
||||
|
||||
##
|
||||
## Maildir-specific settings
|
||||
##
|
||||
|
||||
# By default LIST command returns all entries in maildir beginning with a dot.
|
||||
# Enabling this option makes Dovecot return only entries which are directories.
|
||||
# This is done by stat()ing each entry, so it causes more disk I/O.
|
||||
# (For systems setting struct dirent->d_type, this check is free and it's
|
||||
# done always regardless of this setting)
|
||||
#maildir_stat_dirs = no
|
||||
|
||||
# When copying a message, do it with hard links whenever possible. This makes
|
||||
# the performance much better, and it's unlikely to have any side effects.
|
||||
#maildir_copy_with_hardlinks = yes
|
||||
|
||||
# Assume Dovecot is the only MUA accessing Maildir: Scan cur/ directory only
|
||||
# when its mtime changes unexpectedly or when we can't find the mail otherwise.
|
||||
#maildir_very_dirty_syncs = no
|
||||
|
||||
# If enabled, Dovecot doesn't use the S=<size> in the Maildir filenames for
|
||||
# getting the mail's physical size, except when recalculating Maildir++ quota.
|
||||
# This can be useful in systems where a lot of the Maildir filenames have a
|
||||
# broken size. The performance hit for enabling this is very small.
|
||||
#maildir_broken_filename_sizes = no
|
||||
|
||||
# Always move mails from new/ directory to cur/, even when the \Recent flags
|
||||
# aren't being reset.
|
||||
#maildir_empty_new = no
|
||||
|
||||
##
|
||||
## mbox-specific settings
|
||||
##
|
||||
|
||||
# Which locking methods to use for locking mbox. There are four available:
|
||||
# dotlock: Create <mailbox>.lock file. This is the oldest and most NFS-safe
|
||||
# solution. If you want to use /var/mail/ like directory, the users
|
||||
# will need write access to that directory.
|
||||
# dotlock_try: Same as dotlock, but if it fails because of permissions or
|
||||
# because there isn't enough disk space, just skip it.
|
||||
# fcntl : Use this if possible. Works with NFS too if lockd is used.
|
||||
# flock : May not exist in all systems. Doesn't work with NFS.
|
||||
# lockf : May not exist in all systems. Doesn't work with NFS.
|
||||
#
|
||||
# You can use multiple locking methods; if you do the order they're declared
|
||||
# in is important to avoid deadlocks if other MTAs/MUAs are using multiple
|
||||
# locking methods as well. Some operating systems don't allow using some of
|
||||
# them simultaneously.
|
||||
#
|
||||
# The Debian value for mbox_write_locks differs from upstream Dovecot. It is
|
||||
# changed to be compliant with Debian Policy (section 11.6) for NFS safety.
|
||||
# Dovecot: mbox_write_locks = dotlock fcntl
|
||||
# Debian: mbox_write_locks = fcntl dotlock
|
||||
#
|
||||
#mbox_read_locks = fcntl
|
||||
#mbox_write_locks = fcntl dotlock
|
||||
|
||||
# Maximum time to wait for lock (all of them) before aborting.
|
||||
#mbox_lock_timeout = 5 mins
|
||||
|
||||
# If dotlock exists but the mailbox isn't modified in any way, override the
|
||||
# lock file after this much time.
|
||||
#mbox_dotlock_change_timeout = 2 mins
|
||||
|
||||
# When mbox changes unexpectedly we have to fully read it to find out what
|
||||
# changed. If the mbox is large this can take a long time. Since the change
|
||||
# is usually just a newly appended mail, it'd be faster to simply read the
|
||||
# new mails. If this setting is enabled, Dovecot does this but still safely
|
||||
# fallbacks to re-reading the whole mbox file whenever something in mbox isn't
|
||||
# how it's expected to be. The only real downside to this setting is that if
|
||||
# some other MUA changes message flags, Dovecot doesn't notice it immediately.
|
||||
# Note that a full sync is done with SELECT, EXAMINE, EXPUNGE and CHECK
|
||||
# commands.
|
||||
#mbox_dirty_syncs = yes
|
||||
|
||||
# Like mbox_dirty_syncs, but don't do full syncs even with SELECT, EXAMINE,
|
||||
# EXPUNGE or CHECK commands. If this is set, mbox_dirty_syncs is ignored.
|
||||
#mbox_very_dirty_syncs = no
|
||||
|
||||
# Delay writing mbox headers until doing a full write sync (EXPUNGE and CHECK
|
||||
# commands and when closing the mailbox). This is especially useful for POP3
|
||||
# where clients often delete all mails. The downside is that our changes
|
||||
# aren't immediately visible to other MUAs.
|
||||
#mbox_lazy_writes = yes
|
||||
|
||||
# If mbox size is smaller than this (e.g. 100k), don't write index files.
|
||||
# If an index file already exists it's still read, just not updated.
|
||||
#mbox_min_index_size = 0
|
||||
|
||||
# Mail header selection algorithm to use for MD5 POP3 UIDLs when
|
||||
# pop3_uidl_format=%m. For backwards compatibility we use apop3d inspired
|
||||
# algorithm, but it fails if the first Received: header isn't unique in all
|
||||
# mails. An alternative algorithm is "all" that selects all headers.
|
||||
#mbox_md5 = apop3d
|
||||
|
||||
##
|
||||
## mdbox-specific settings
|
||||
##
|
||||
|
||||
# Maximum dbox file size until it's rotated.
|
||||
#mdbox_rotate_size = 2M
|
||||
|
||||
# Maximum dbox file age until it's rotated. Typically in days. Day begins
|
||||
# from midnight, so 1d = today, 2d = yesterday, etc. 0 = check disabled.
|
||||
#mdbox_rotate_interval = 0
|
||||
|
||||
# When creating new mdbox files, immediately preallocate their size to
|
||||
# mdbox_rotate_size. This setting currently works only in Linux with some
|
||||
# filesystems (ext4, xfs).
|
||||
#mdbox_preallocate_space = no
|
||||
|
||||
##
|
||||
## Mail attachments
|
||||
##
|
||||
|
||||
# sdbox and mdbox support saving mail attachments to external files, which
|
||||
# also allows single instance storage for them. Other backends don't support
|
||||
# this for now.
|
||||
|
||||
# Directory root where to store mail attachments. Disabled, if empty.
|
||||
#mail_attachment_dir =
|
||||
|
||||
# Attachments smaller than this aren't saved externally. It's also possible to
|
||||
# write a plugin to disable saving specific attachments externally.
|
||||
#mail_attachment_min_size = 128k
|
||||
|
||||
# Filesystem backend to use for saving attachments:
|
||||
# posix : No SiS done by Dovecot (but this might help FS's own deduplication)
|
||||
# sis posix : SiS with immediate byte-by-byte comparison during saving
|
||||
# sis-queue posix : SiS with delayed comparison and deduplication
|
||||
#mail_attachment_fs = sis posix
|
||||
|
||||
# Hash format to use in attachment filenames. You can add any text and
|
||||
# variables: %{md4}, %{md5}, %{sha1}, %{sha256}, %{sha512}, %{size}.
|
||||
# Variables can be truncated, e.g. %{sha256:80} returns only first 80 bits
|
||||
#mail_attachment_hash = %{sha1}
|
112
config/mail/etc/dovecot/conf.d/10-master.conf
Normal file
112
config/mail/etc/dovecot/conf.d/10-master.conf
Normal file
@ -0,0 +1,112 @@
|
||||
#default_process_limit = 100
|
||||
#default_client_limit = 1000
|
||||
|
||||
# Default VSZ (virtual memory size) limit for service processes. This is mainly
|
||||
# intended to catch and kill processes that leak memory before they eat up
|
||||
# everything.
|
||||
#default_vsz_limit = 256M
|
||||
|
||||
# Login user is internally used by login processes. This is the most untrusted
|
||||
# user in Dovecot system. It shouldn't have access to anything at all.
|
||||
#default_login_user = dovenull
|
||||
|
||||
# Internal user is used by unprivileged processes. It should be separate from
|
||||
# login user, so that login processes can't disturb other processes.
|
||||
#default_internal_user = dovecot
|
||||
|
||||
service imap-login {
|
||||
inet_listener imap {
|
||||
#port = 143
|
||||
}
|
||||
inet_listener imaps {
|
||||
#port = 993
|
||||
#ssl = yes
|
||||
}
|
||||
|
||||
# Number of connections to handle before starting a new process. Typically
|
||||
# the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0
|
||||
# is faster. <doc/wiki/LoginProcess.txt>
|
||||
#service_count = 1
|
||||
|
||||
# Number of processes to always keep waiting for more connections.
|
||||
#process_min_avail = 0
|
||||
|
||||
# If you set service_count=0, you probably need to grow this.
|
||||
#vsz_limit = 64M
|
||||
}
|
||||
|
||||
service pop3-login {
|
||||
inet_listener pop3 {
|
||||
#port = 110
|
||||
}
|
||||
inet_listener pop3s {
|
||||
#port = 995
|
||||
#ssl = yes
|
||||
}
|
||||
}
|
||||
|
||||
service lmtp {
|
||||
unix_listener lmtp {
|
||||
#mode = 0666
|
||||
}
|
||||
|
||||
# Create inet listener only if you can't use the above UNIX socket
|
||||
#inet_listener lmtp {
|
||||
# Avoid making LMTP visible for the entire internet
|
||||
#address =
|
||||
#port =
|
||||
#}
|
||||
}
|
||||
|
||||
service imap {
|
||||
# Most of the memory goes to mmap()ing files. You may need to increase this
|
||||
# limit if you have huge mailboxes.
|
||||
#vsz_limit = 256M
|
||||
|
||||
# Max. number of IMAP processes (connections)
|
||||
#process_limit = 1024
|
||||
}
|
||||
|
||||
service pop3 {
|
||||
# Max. number of POP3 processes (connections)
|
||||
#process_limit = 1024
|
||||
}
|
||||
|
||||
service auth {
|
||||
# auth_socket_path points to this userdb socket by default. It's typically
|
||||
# used by dovecot-lda, doveadm, possibly imap process, etc. Its default
|
||||
# permissions make it readable only by root, but you may need to relax these
|
||||
# permissions. Users that have access to this socket are able to get a list
|
||||
# of all usernames and get results of everyone's userdb lookups.
|
||||
unix_listener auth-userdb {
|
||||
#mode = 0600
|
||||
#user =
|
||||
#group =
|
||||
}
|
||||
|
||||
# Postfix smtp-auth
|
||||
unix_listener /var/spool/postfix/private/auth_client {
|
||||
mode = 0666
|
||||
user = postfix
|
||||
}
|
||||
|
||||
# Auth process is run as this user.
|
||||
#user = $default_internal_user
|
||||
}
|
||||
|
||||
service auth-worker {
|
||||
# Auth worker process is run as root by default, so that it can access
|
||||
# /etc/shadow. If this isn't necessary, the user should be changed to
|
||||
# $default_internal_user.
|
||||
#user = root
|
||||
}
|
||||
|
||||
service dict {
|
||||
# If dict proxy is used, mail processes should have access to its socket.
|
||||
# For example: mode=0660, group=vmail and global mail_access_groups=vmail
|
||||
unix_listener dict {
|
||||
#mode = 0600
|
||||
#user =
|
||||
#group =
|
||||
}
|
||||
}
|
119
config/mail/etc/dovecot/conf.d/10-master.conf.ucf-dist
Normal file
119
config/mail/etc/dovecot/conf.d/10-master.conf.ucf-dist
Normal file
@ -0,0 +1,119 @@
|
||||
#default_process_limit = 100
|
||||
#default_client_limit = 1000
|
||||
|
||||
# Default VSZ (virtual memory size) limit for service processes. This is mainly
|
||||
# intended to catch and kill processes that leak memory before they eat up
|
||||
# everything.
|
||||
#default_vsz_limit = 256M
|
||||
|
||||
# Login user is internally used by login processes. This is the most untrusted
|
||||
# user in Dovecot system. It shouldn't have access to anything at all.
|
||||
#default_login_user = dovenull
|
||||
|
||||
# Internal user is used by unprivileged processes. It should be separate from
|
||||
# login user, so that login processes can't disturb other processes.
|
||||
#default_internal_user = dovecot
|
||||
|
||||
service imap-login {
|
||||
inet_listener imap {
|
||||
#port = 143
|
||||
}
|
||||
inet_listener imaps {
|
||||
#port = 993
|
||||
#ssl = yes
|
||||
}
|
||||
|
||||
# Number of connections to handle before starting a new process. Typically
|
||||
# the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0
|
||||
# is faster. <doc/wiki/LoginProcess.txt>
|
||||
#service_count = 1
|
||||
|
||||
# Number of processes to always keep waiting for more connections.
|
||||
#process_min_avail = 0
|
||||
|
||||
# If you set service_count=0, you probably need to grow this.
|
||||
#vsz_limit = $default_vsz_limit
|
||||
}
|
||||
|
||||
service pop3-login {
|
||||
inet_listener pop3 {
|
||||
#port = 110
|
||||
}
|
||||
inet_listener pop3s {
|
||||
#port = 995
|
||||
#ssl = yes
|
||||
}
|
||||
}
|
||||
|
||||
service lmtp {
|
||||
unix_listener lmtp {
|
||||
#mode = 0666
|
||||
}
|
||||
|
||||
# Create inet listener only if you can't use the above UNIX socket
|
||||
#inet_listener lmtp {
|
||||
# Avoid making LMTP visible for the entire internet
|
||||
#address =
|
||||
#port =
|
||||
#}
|
||||
}
|
||||
|
||||
service imap {
|
||||
# Most of the memory goes to mmap()ing files. You may need to increase this
|
||||
# limit if you have huge mailboxes.
|
||||
#vsz_limit = $default_vsz_limit
|
||||
|
||||
# Max. number of IMAP processes (connections)
|
||||
#process_limit = 1024
|
||||
}
|
||||
|
||||
service pop3 {
|
||||
# Max. number of POP3 processes (connections)
|
||||
#process_limit = 1024
|
||||
}
|
||||
|
||||
service auth {
|
||||
# auth_socket_path points to this userdb socket by default. It's typically
|
||||
# used by dovecot-lda, doveadm, possibly imap process, etc. Users that have
|
||||
# full permissions to this socket are able to get a list of all usernames and
|
||||
# get the results of everyone's userdb lookups.
|
||||
#
|
||||
# The default 0666 mode allows anyone to connect to the socket, but the
|
||||
# userdb lookups will succeed only if the userdb returns an "uid" field that
|
||||
# matches the caller process's UID. Also if caller's uid or gid matches the
|
||||
# socket's uid or gid the lookup succeeds. Anything else causes a failure.
|
||||
#
|
||||
# To give the caller full permissions to lookup all users, set the mode to
|
||||
# something else than 0666 and Dovecot lets the kernel enforce the
|
||||
# permissions (e.g. 0777 allows everyone full permissions).
|
||||
unix_listener auth-userdb {
|
||||
#mode = 0666
|
||||
#user =
|
||||
#group =
|
||||
}
|
||||
|
||||
# Postfix smtp-auth
|
||||
#unix_listener /var/spool/postfix/private/auth {
|
||||
# mode = 0666
|
||||
#}
|
||||
|
||||
# Auth process is run as this user.
|
||||
#user = $default_internal_user
|
||||
}
|
||||
|
||||
service auth-worker {
|
||||
# Auth worker process is run as root by default, so that it can access
|
||||
# /etc/shadow. If this isn't necessary, the user should be changed to
|
||||
# $default_internal_user.
|
||||
#user = root
|
||||
}
|
||||
|
||||
service dict {
|
||||
# If dict proxy is used, mail processes should have access to its socket.
|
||||
# For example: mode=0660, group=vmail and global mail_access_groups=vmail
|
||||
unix_listener dict {
|
||||
#mode = 0600
|
||||
#user =
|
||||
#group =
|
||||
}
|
||||
}
|
41
config/mail/etc/dovecot/conf.d/10-ssl.conf
Normal file
41
config/mail/etc/dovecot/conf.d/10-ssl.conf
Normal file
@ -0,0 +1,41 @@
|
||||
##
|
||||
## SSL settings
|
||||
##
|
||||
|
||||
# SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>
|
||||
ssl = yes
|
||||
|
||||
# PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
|
||||
# dropping root privileges, so keep the key file unreadable by anyone but
|
||||
# root. Included doc/mkcert.sh can be used to easily generate self-signed
|
||||
# certificate, just make sure to update the domains in dovecot-openssl.cnf
|
||||
ssl_cert = </etc/letsencrypt/live/ketrenos.com/fullchain.pem
|
||||
ssl_key = </etc/letsencrypt/live/ketrenos.com/privkey.pem
|
||||
|
||||
# If key file is password protected, give the password here. Alternatively
|
||||
# give it when starting dovecot with -p parameter. Since this file is often
|
||||
# world-readable, you may want to place this setting instead to a different
|
||||
# root owned 0600 file by using ssl_key_password = <path.
|
||||
#ssl_key_password =
|
||||
|
||||
# PEM encoded trusted certificate authority. Set this only if you intend to use
|
||||
# ssl_verify_client_cert=yes. The file should contain the CA certificate(s)
|
||||
# followed by the matching CRL(s). (e.g. ssl_ca = </etc/ssl/certs/ca.pem)
|
||||
#ssl_ca =
|
||||
|
||||
# Request client to send a certificate. If you also want to require it, set
|
||||
# auth_ssl_require_client_cert=yes in auth section.
|
||||
#ssl_verify_client_cert = no
|
||||
|
||||
# Which field from certificate to use for username. commonName and
|
||||
# x500UniqueIdentifier are the usual choices. You'll also need to set
|
||||
# auth_ssl_username_from_cert=yes.
|
||||
#ssl_cert_username_field = commonName
|
||||
|
||||
# How often to regenerate the SSL parameters file. Generation is quite CPU
|
||||
# intensive operation. The value is in hours, 0 disables regeneration
|
||||
# entirely.
|
||||
#ssl_parameters_regenerate = 168
|
||||
|
||||
# SSL ciphers to use
|
||||
#ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
|
58
config/mail/etc/dovecot/conf.d/10-ssl.conf.ucf-dist
Normal file
58
config/mail/etc/dovecot/conf.d/10-ssl.conf.ucf-dist
Normal file
@ -0,0 +1,58 @@
|
||||
##
|
||||
## SSL settings
|
||||
##
|
||||
|
||||
# SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>
|
||||
#ssl = yes
|
||||
|
||||
# PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
|
||||
# dropping root privileges, so keep the key file unreadable by anyone but
|
||||
# root. Included doc/mkcert.sh can be used to easily generate self-signed
|
||||
# certificate, just make sure to update the domains in dovecot-openssl.cnf
|
||||
ssl_cert = </etc/dovecot/dovecot.pem
|
||||
ssl_key = </etc/dovecot/private/dovecot.pem
|
||||
|
||||
# If key file is password protected, give the password here. Alternatively
|
||||
# give it when starting dovecot with -p parameter. Since this file is often
|
||||
# world-readable, you may want to place this setting instead to a different
|
||||
# root owned 0600 file by using ssl_key_password = <path.
|
||||
#ssl_key_password =
|
||||
|
||||
# PEM encoded trusted certificate authority. Set this only if you intend to use
|
||||
# ssl_verify_client_cert=yes. The file should contain the CA certificate(s)
|
||||
# followed by the matching CRL(s). (e.g. ssl_ca = </etc/ssl/certs/ca.pem)
|
||||
#ssl_ca =
|
||||
|
||||
# Require that CRL check succeeds for client certificates.
|
||||
#ssl_require_crl = yes
|
||||
|
||||
# Directory and/or file for trusted SSL CA certificates. These are used only
|
||||
# when Dovecot needs to act as an SSL client (e.g. imapc backend). The
|
||||
# directory is usually /etc/ssl/certs in Debian-based systems and the file is
|
||||
# /etc/pki/tls/cert.pem in RedHat-based systems.
|
||||
#ssl_client_ca_dir =
|
||||
#ssl_client_ca_file =
|
||||
|
||||
# Request client to send a certificate. If you also want to require it, set
|
||||
# auth_ssl_require_client_cert=yes in auth section.
|
||||
#ssl_verify_client_cert = no
|
||||
|
||||
# Which field from certificate to use for username. commonName and
|
||||
# x500UniqueIdentifier are the usual choices. You'll also need to set
|
||||
# auth_ssl_username_from_cert=yes.
|
||||
#ssl_cert_username_field = commonName
|
||||
|
||||
# DH parameters length to use.
|
||||
#ssl_dh_parameters_length = 1024
|
||||
|
||||
# SSL protocols to use
|
||||
#ssl_protocols = !SSLv2
|
||||
|
||||
# SSL ciphers to use
|
||||
#ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
|
||||
|
||||
# Prefer the server's order of ciphers over client's.
|
||||
#ssl_prefer_server_ciphers = no
|
||||
|
||||
# SSL crypto device to use, for valid values run "openssl engine"
|
||||
#ssl_crypto_device =
|
14
config/mail/etc/dovecot/conf.d/10-tcpwrapper.conf
Normal file
14
config/mail/etc/dovecot/conf.d/10-tcpwrapper.conf
Normal file
@ -0,0 +1,14 @@
|
||||
# 10-tcpwrapper.conf
|
||||
#
|
||||
# service name for hosts.{allow|deny} are those defined as
|
||||
# inet_listener in master.conf
|
||||
#
|
||||
#login_access_sockets = tcpwrap
|
||||
#
|
||||
#service tcpwrap {
|
||||
# unix_listener login/tcpwrap {
|
||||
# group = $default_login_user
|
||||
# mode = 0600
|
||||
# user = $default_login_user
|
||||
# }
|
||||
#}
|
48
config/mail/etc/dovecot/conf.d/15-lda.conf
Normal file
48
config/mail/etc/dovecot/conf.d/15-lda.conf
Normal file
@ -0,0 +1,48 @@
|
||||
##
|
||||
## LDA specific settings (also used by LMTP)
|
||||
##
|
||||
|
||||
# Address to use when sending rejection mails.
|
||||
# Default is postmaster@<your domain>. %d expands to recipient domain.
|
||||
#postmaster_address =
|
||||
|
||||
# Hostname to use in various parts of sent mails (e.g. in Message-Id) and
|
||||
# in LMTP replies. Default is the system's real hostname@domain.
|
||||
#hostname =
|
||||
|
||||
# If user is over quota, return with temporary failure instead of
|
||||
# bouncing the mail.
|
||||
#quota_full_tempfail = no
|
||||
|
||||
# Binary to use for sending mails.
|
||||
#sendmail_path = /usr/sbin/sendmail
|
||||
|
||||
# If non-empty, send mails via this SMTP host[:port] instead of sendmail.
|
||||
#submission_host =
|
||||
|
||||
# Subject: header to use for rejection mails. You can use the same variables
|
||||
# as for rejection_reason below.
|
||||
#rejection_subject = Rejected: %s
|
||||
|
||||
# Human readable error message for rejection mails. You can use variables:
|
||||
# %n = CRLF, %r = reason, %s = original subject, %t = recipient
|
||||
#rejection_reason = Your message to <%t> was automatically rejected:%n%r
|
||||
|
||||
# Delimiter character between local-part and detail in email address.
|
||||
recipient_delimiter = _
|
||||
|
||||
# Header where the original recipient address (SMTP's RCPT TO: address) is taken
|
||||
# from if not available elsewhere. With dovecot-lda -a parameter overrides this.
|
||||
# A commonly used header for this is X-Original-To.
|
||||
#lda_original_recipient_header =
|
||||
|
||||
# Should saving a mail to a nonexistent mailbox automatically create it?
|
||||
lda_mailbox_autocreate = no
|
||||
|
||||
# Should automatically created mailboxes be also automatically subscribed?
|
||||
lda_mailbox_autosubscribe = no
|
||||
|
||||
protocol lda {
|
||||
# Space separated list of plugins to load (default is global mail_plugins).
|
||||
#mail_plugins = $mail_plugins
|
||||
}
|
78
config/mail/etc/dovecot/conf.d/15-mailboxes.conf
Normal file
78
config/mail/etc/dovecot/conf.d/15-mailboxes.conf
Normal file
@ -0,0 +1,78 @@
|
||||
##
|
||||
## Mailbox definitions
|
||||
##
|
||||
|
||||
# Each mailbox is specified in a separate mailbox section. The section name
|
||||
# specifies the mailbox name. If it has spaces, you can put the name
|
||||
# "in quotes". These sections can contain the following mailbox settings:
|
||||
#
|
||||
# auto:
|
||||
# Indicates whether the mailbox with this name is automatically created
|
||||
# implicitly when it is first accessed. The user can also be automatically
|
||||
# subscribed to the mailbox after creation. The following values are
|
||||
# defined for this setting:
|
||||
#
|
||||
# no - Never created automatically.
|
||||
# create - Automatically created, but no automatic subscription.
|
||||
# subscribe - Automatically created and subscribed.
|
||||
#
|
||||
# special_use:
|
||||
# A space-separated list of SPECIAL-USE flags (RFC 6154) to use for the
|
||||
# mailbox. There are no validity checks, so you could specify anything
|
||||
# you want in here, but it's not a good idea to use flags other than the
|
||||
# standard ones specified in the RFC:
|
||||
#
|
||||
# \All - This (virtual) mailbox presents all messages in the
|
||||
# user's message store.
|
||||
# \Archive - This mailbox is used to archive messages.
|
||||
# \Drafts - This mailbox is used to hold draft messages.
|
||||
# \Flagged - This (virtual) mailbox presents all messages in the
|
||||
# user's message store marked with the IMAP \Flagged flag.
|
||||
# \Junk - This mailbox is where messages deemed to be junk mail
|
||||
# are held.
|
||||
# \Sent - This mailbox is used to hold copies of messages that
|
||||
# have been sent.
|
||||
# \Trash - This mailbox is used to hold messages that have been
|
||||
# deleted.
|
||||
#
|
||||
# comment:
|
||||
# Defines a default comment or note associated with the mailbox. This
|
||||
# value is accessible through the IMAP METADATA mailbox entries
|
||||
# "/shared/comment" and "/private/comment". Users with sufficient
|
||||
# privileges can override the default value for entries with a custom
|
||||
# value.
|
||||
|
||||
# NOTE: Assumes "namespace inbox" has been defined in 10-mail.conf.
|
||||
namespace inbox {
|
||||
# These mailboxes are widely used and could perhaps be created automatically:
|
||||
mailbox Drafts {
|
||||
special_use = \Drafts
|
||||
}
|
||||
mailbox Junk {
|
||||
special_use = \Junk
|
||||
}
|
||||
mailbox Trash {
|
||||
special_use = \Trash
|
||||
}
|
||||
|
||||
# For \Sent mailboxes there are two widely used names. We'll mark both of
|
||||
# them as \Sent. User typically deletes one of them if duplicates are created.
|
||||
mailbox Sent {
|
||||
special_use = \Sent
|
||||
}
|
||||
mailbox "Sent Messages" {
|
||||
special_use = \Sent
|
||||
}
|
||||
|
||||
# If you have a virtual "All messages" mailbox:
|
||||
#mailbox virtual/All {
|
||||
# special_use = \All
|
||||
# comment = All my messages
|
||||
#}
|
||||
|
||||
# If you have a virtual "Flagged" mailbox:
|
||||
#mailbox virtual/Flagged {
|
||||
# special_use = \Flagged
|
||||
# comment = All my flagged messages
|
||||
#}
|
||||
}
|
75
config/mail/etc/dovecot/conf.d/20-imap.conf
Normal file
75
config/mail/etc/dovecot/conf.d/20-imap.conf
Normal file
@ -0,0 +1,75 @@
|
||||
##
|
||||
## IMAP specific settings
|
||||
##
|
||||
|
||||
# If nothing happens for this long while client is IDLEing, move the connection
|
||||
# to imap-hibernate process and close the old imap process. This saves memory,
|
||||
# because connections use very little memory in imap-hibernate process. The
|
||||
# downside is that recreating the imap process back uses some resources.
|
||||
#imap_hibernate_timeout = 0
|
||||
|
||||
# Maximum IMAP command line length. Some clients generate very long command
|
||||
# lines with huge mailboxes, so you may need to raise this if you get
|
||||
# "Too long argument" or "IMAP command line too large" errors often.
|
||||
#imap_max_line_length = 64k
|
||||
|
||||
# IMAP logout format string:
|
||||
# %i - total number of bytes read from client
|
||||
# %o - total number of bytes sent to client
|
||||
# %{fetch_hdr_count} - Number of mails with mail header data sent to client
|
||||
# %{fetch_hdr_bytes} - Number of bytes with mail header data sent to client
|
||||
# %{fetch_body_count} - Number of mails with mail body data sent to client
|
||||
# %{fetch_body_bytes} - Number of bytes with mail body data sent to client
|
||||
# %{deleted} - Number of mails where client added \Deleted flag
|
||||
# %{expunged} - Number of mails that client expunged
|
||||
# %{trashed} - Number of mails that client copied/moved to the
|
||||
# special_use=\Trash mailbox.
|
||||
#imap_logout_format = in=%i out=%o
|
||||
|
||||
# Override the IMAP CAPABILITY response. If the value begins with '+',
|
||||
# add the given capabilities on top of the defaults (e.g. +XFOO XBAR).
|
||||
#imap_capability =
|
||||
|
||||
# How long to wait between "OK Still here" notifications when client is
|
||||
# IDLEing.
|
||||
#imap_idle_notify_interval = 2 mins
|
||||
|
||||
# ID field names and values to send to clients. Using * as the value makes
|
||||
# Dovecot use the default value. The following fields have default values
|
||||
# currently: name, version, os, os-version, support-url, support-email.
|
||||
#imap_id_send =
|
||||
|
||||
# ID fields sent by client to log. * means everything.
|
||||
#imap_id_log =
|
||||
|
||||
# Workarounds for various client bugs:
|
||||
# delay-newmail:
|
||||
# Send EXISTS/RECENT new mail notifications only when replying to NOOP
|
||||
# and CHECK commands. Some clients ignore them otherwise, for example OSX
|
||||
# Mail (<v2.1). Outlook Express breaks more badly though, without this it
|
||||
# may show user "Message no longer in server" errors. Note that OE6 still
|
||||
# breaks even with this workaround if synchronization is set to
|
||||
# "Headers Only".
|
||||
# tb-extra-mailbox-sep:
|
||||
# Thunderbird gets somehow confused with LAYOUT=fs (mbox and dbox) and
|
||||
# adds extra '/' suffixes to mailbox names. This option causes Dovecot to
|
||||
# ignore the extra '/' instead of treating it as invalid mailbox name.
|
||||
# tb-lsub-flags:
|
||||
# Show \Noselect flags for LSUB replies with LAYOUT=fs (e.g. mbox).
|
||||
# This makes Thunderbird realize they aren't selectable and show them
|
||||
# greyed out, instead of only later giving "not selectable" popup error.
|
||||
#
|
||||
# The list is space-separated.
|
||||
#imap_client_workarounds =
|
||||
|
||||
# Host allowed in URLAUTH URLs sent by client. "*" allows all.
|
||||
#imap_urlauth_host =
|
||||
|
||||
protocol imap {
|
||||
# Space separated list of plugins to load (default is global mail_plugins).
|
||||
#mail_plugins = $mail_plugins
|
||||
|
||||
# Maximum number of IMAP connections allowed for a user from each IP address.
|
||||
# NOTE: The username is compared case-sensitively.
|
||||
#mail_max_userip_connections = 10
|
||||
}
|
76
config/mail/etc/dovecot/conf.d/20-managesieve.conf
Normal file
76
config/mail/etc/dovecot/conf.d/20-managesieve.conf
Normal file
@ -0,0 +1,76 @@
|
||||
##
|
||||
## ManageSieve specific settings
|
||||
##
|
||||
|
||||
# Uncomment to enable managesieve protocol:
|
||||
#protocols = $protocols sieve
|
||||
|
||||
# Service definitions
|
||||
|
||||
#service managesieve-login {
|
||||
#inet_listener sieve {
|
||||
# port = 4190
|
||||
#}
|
||||
|
||||
#inet_listener sieve_deprecated {
|
||||
# port = 2000
|
||||
#}
|
||||
|
||||
# Number of connections to handle before starting a new process. Typically
|
||||
# the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0
|
||||
# is faster. <doc/wiki/LoginProcess.txt>
|
||||
#service_count = 1
|
||||
|
||||
# Number of processes to always keep waiting for more connections.
|
||||
#process_min_avail = 0
|
||||
|
||||
# If you set service_count=0, you probably need to grow this.
|
||||
#vsz_limit = 64M
|
||||
#}
|
||||
|
||||
#service managesieve {
|
||||
# Max. number of ManageSieve processes (connections)
|
||||
#process_limit = 1024
|
||||
#}
|
||||
|
||||
# Service configuration
|
||||
|
||||
protocol sieve {
|
||||
# Maximum ManageSieve command line length in bytes. ManageSieve usually does
|
||||
# not involve overly long command lines, so this setting will not normally
|
||||
# need adjustment
|
||||
#managesieve_max_line_length = 65536
|
||||
|
||||
# Maximum number of ManageSieve connections allowed for a user from each IP
|
||||
# address.
|
||||
# NOTE: The username is compared case-sensitively.
|
||||
#mail_max_userip_connections = 10
|
||||
|
||||
# Space separated list of plugins to load (none known to be useful so far).
|
||||
# Do NOT try to load IMAP plugins here.
|
||||
#mail_plugins =
|
||||
|
||||
# MANAGESIEVE logout format string:
|
||||
# %i - total number of bytes read from client
|
||||
# %o - total number of bytes sent to client
|
||||
#managesieve_logout_format = bytes=%i/%o
|
||||
|
||||
# To fool ManageSieve clients that are focused on CMU's timesieved you can
|
||||
# specify the IMPLEMENTATION capability that Dovecot reports to clients.
|
||||
# For example: 'Cyrus timsieved v2.2.13'
|
||||
#managesieve_implementation_string = Dovecot Pigeonhole
|
||||
|
||||
# Explicitly specify the SIEVE and NOTIFY capability reported by the server
|
||||
# before login. If left unassigned these will be reported dynamically
|
||||
# according to what the Sieve interpreter supports by default (after login
|
||||
# this may differ depending on the user).
|
||||
#managesieve_sieve_capability =
|
||||
#managesieve_notify_capability =
|
||||
|
||||
# The maximum number of compile errors that are returned to the client upon
|
||||
# script upload or script verification.
|
||||
#managesieve_max_compile_errors = 5
|
||||
|
||||
# Refer to 90-sieve.conf for script quota configuration and configuration of
|
||||
# Sieve execution limits.
|
||||
}
|
99
config/mail/etc/dovecot/conf.d/20-pop3.conf
Normal file
99
config/mail/etc/dovecot/conf.d/20-pop3.conf
Normal file
@ -0,0 +1,99 @@
|
||||
##
|
||||
## POP3 specific settings
|
||||
##
|
||||
|
||||
# Don't try to set mails non-recent or seen with POP3 sessions. This is
|
||||
# mostly intended to reduce disk I/O. With maildir it doesn't move files
|
||||
# from new/ to cur/, with mbox it doesn't write Status-header.
|
||||
#pop3_no_flag_updates = no
|
||||
|
||||
# Support LAST command which exists in old POP3 specs, but has been removed
|
||||
# from new ones. Some clients still wish to use this though. Enabling this
|
||||
# makes RSET command clear all \Seen flags from messages.
|
||||
#pop3_enable_last = no
|
||||
|
||||
# If mail has X-UIDL header, use it as the mail's UIDL.
|
||||
#pop3_reuse_xuidl = no
|
||||
|
||||
# Allow only one POP3 session to run simultaneously for the same user.
|
||||
#pop3_lock_session = no
|
||||
|
||||
# POP3 requires message sizes to be listed as if they had CR+LF linefeeds.
|
||||
# Many POP3 servers violate this by returning the sizes with LF linefeeds,
|
||||
# because it's faster to get. When this setting is enabled, Dovecot still
|
||||
# tries to do the right thing first, but if that requires opening the
|
||||
# message, it fallbacks to the easier (but incorrect) size.
|
||||
#pop3_fast_size_lookups = no
|
||||
|
||||
# POP3 UIDL (unique mail identifier) format to use. You can use following
|
||||
# variables, along with the variable modifiers described in
|
||||
# doc/wiki/Variables.txt (e.g. %Uf for the filename in uppercase)
|
||||
#
|
||||
# %v - Mailbox's IMAP UIDVALIDITY
|
||||
# %u - Mail's IMAP UID
|
||||
# %m - MD5 sum of the mailbox headers in hex (mbox only)
|
||||
# %f - filename (maildir only)
|
||||
# %g - Mail's GUID
|
||||
#
|
||||
# If you want UIDL compatibility with other POP3 servers, use:
|
||||
# UW's ipop3d : %08Xv%08Xu
|
||||
# Courier : %f or %v-%u (both might be used simultaneosly)
|
||||
# Cyrus (<= 2.1.3) : %u
|
||||
# Cyrus (>= 2.1.4) : %v.%u
|
||||
# Dovecot v0.99.x : %v.%u
|
||||
# tpop3d : %Mf
|
||||
#
|
||||
# Note that Outlook 2003 seems to have problems with %v.%u format which was
|
||||
# Dovecot's default, so if you're building a new server it would be a good
|
||||
# idea to change this. %08Xu%08Xv should be pretty fail-safe.
|
||||
#
|
||||
#pop3_uidl_format = %08Xu%08Xv
|
||||
|
||||
# Permanently save UIDLs sent to POP3 clients, so pop3_uidl_format changes
|
||||
# won't change those UIDLs. Currently this works only with Maildir.
|
||||
#pop3_save_uidl = no
|
||||
|
||||
# What to do about duplicate UIDLs if they exist?
|
||||
# allow: Show duplicates to clients.
|
||||
# rename: Append a temporary -2, -3, etc. counter after the UIDL.
|
||||
#pop3_uidl_duplicates = allow
|
||||
|
||||
# This option changes POP3 behavior so that it's not possible to actually
|
||||
# delete mails via POP3, only hide them from future POP3 sessions. The mails
|
||||
# will still be counted towards user's quota until actually deleted via IMAP.
|
||||
# Use e.g. "$POP3Deleted" as the value (it will be visible as IMAP keyword).
|
||||
# Make sure you can legally archive mails before enabling this setting.
|
||||
#pop3_deleted_flag =
|
||||
|
||||
# POP3 logout format string:
|
||||
# %i - total number of bytes read from client
|
||||
# %o - total number of bytes sent to client
|
||||
# %t - number of TOP commands
|
||||
# %p - number of bytes sent to client as a result of TOP command
|
||||
# %r - number of RETR commands
|
||||
# %b - number of bytes sent to client as a result of RETR command
|
||||
# %d - number of deleted messages
|
||||
# %{deleted_bytes} - number of bytes in deleted messages
|
||||
# %m - number of messages (before deletion)
|
||||
# %s - mailbox size in bytes (before deletion)
|
||||
# %u - old/new UIDL hash. may help finding out if UIDLs changed unexpectedly
|
||||
#pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
|
||||
|
||||
# Workarounds for various client bugs:
|
||||
# outlook-no-nuls:
|
||||
# Outlook and Outlook Express hang if mails contain NUL characters.
|
||||
# This setting replaces them with 0x80 character.
|
||||
# oe-ns-eoh:
|
||||
# Outlook Express and Netscape Mail breaks if end of headers-line is
|
||||
# missing. This option simply sends it if it's missing.
|
||||
# The list is space-separated.
|
||||
#pop3_client_workarounds =
|
||||
|
||||
protocol pop3 {
|
||||
# Space separated list of plugins to load (default is global mail_plugins).
|
||||
#mail_plugins = $mail_plugins
|
||||
|
||||
# Maximum number of POP3 connections allowed for a user from each IP address.
|
||||
# NOTE: The username is compared case-sensitively.
|
||||
#mail_max_userip_connections = 10
|
||||
}
|
19
config/mail/etc/dovecot/conf.d/90-acl.conf
Normal file
19
config/mail/etc/dovecot/conf.d/90-acl.conf
Normal file
@ -0,0 +1,19 @@
|
||||
##
|
||||
## Mailbox access control lists.
|
||||
##
|
||||
|
||||
# vfile backend reads ACLs from "dovecot-acl" file from mail directory.
|
||||
# You can also optionally give a global ACL directory path where ACLs are
|
||||
# applied to all users' mailboxes. The global ACL directory contains
|
||||
# one file for each mailbox, eg. INBOX or sub.mailbox. cache_secs parameter
|
||||
# specifies how many seconds to wait between stat()ing dovecot-acl file
|
||||
# to see if it changed.
|
||||
plugin {
|
||||
#acl = vfile:/etc/dovecot/global-acls:cache_secs=300
|
||||
}
|
||||
|
||||
# To let users LIST mailboxes shared by other users, Dovecot needs a
|
||||
# shared mailbox dictionary. For example:
|
||||
plugin {
|
||||
#acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes
|
||||
}
|
11
config/mail/etc/dovecot/conf.d/90-plugin.conf
Normal file
11
config/mail/etc/dovecot/conf.d/90-plugin.conf
Normal file
@ -0,0 +1,11 @@
|
||||
##
|
||||
## Plugin settings
|
||||
##
|
||||
|
||||
# All wanted plugins must be listed in mail_plugins setting before any of the
|
||||
# settings take effect. See <doc/wiki/Plugins.txt> for list of plugins and
|
||||
# their configuration. Note that %variable expansion is done for all values.
|
||||
|
||||
plugin {
|
||||
#setting_name = value
|
||||
}
|
80
config/mail/etc/dovecot/conf.d/90-quota.conf
Normal file
80
config/mail/etc/dovecot/conf.d/90-quota.conf
Normal file
@ -0,0 +1,80 @@
|
||||
##
|
||||
## Quota configuration.
|
||||
##
|
||||
|
||||
# Note that you also have to enable quota plugin in mail_plugins setting.
|
||||
# <doc/wiki/Quota.txt>
|
||||
|
||||
##
|
||||
## Quota limits
|
||||
##
|
||||
|
||||
# Quota limits are set using "quota_rule" parameters. To get per-user quota
|
||||
# limits, you can set/override them by returning "quota_rule" extra field
|
||||
# from userdb. It's also possible to give mailbox-specific limits, for example
|
||||
# to give additional 100 MB when saving to Trash:
|
||||
|
||||
plugin {
|
||||
#quota_rule = *:storage=1G
|
||||
#quota_rule2 = Trash:storage=+100M
|
||||
|
||||
# LDA/LMTP allows saving the last mail to bring user from under quota to
|
||||
# over quota, if the quota doesn't grow too high. Default is to allow as
|
||||
# long as quota will stay under 10% above the limit. Also allowed e.g. 10M.
|
||||
#quota_grace = 10%%
|
||||
}
|
||||
|
||||
##
|
||||
## Quota warnings
|
||||
##
|
||||
|
||||
# You can execute a given command when user exceeds a specified quota limit.
|
||||
# Each quota root has separate limits. Only the command for the first
|
||||
# exceeded limit is excecuted, so put the highest limit first.
|
||||
# The commands are executed via script service by connecting to the named
|
||||
# UNIX socket (quota-warning below).
|
||||
# Note that % needs to be escaped as %%, otherwise "% " expands to empty.
|
||||
|
||||
plugin {
|
||||
#quota_warning = storage=95%% quota-warning 95 %u
|
||||
#quota_warning2 = storage=80%% quota-warning 80 %u
|
||||
}
|
||||
|
||||
# Example quota-warning service. The unix listener's permissions should be
|
||||
# set in a way that mail processes can connect to it. Below example assumes
|
||||
# that mail processes run as vmail user. If you use mode=0666, all system users
|
||||
# can generate quota warnings to anyone.
|
||||
#service quota-warning {
|
||||
# executable = script /usr/local/bin/quota-warning.sh
|
||||
# user = dovecot
|
||||
# unix_listener quota-warning {
|
||||
# user = vmail
|
||||
# }
|
||||
#}
|
||||
|
||||
##
|
||||
## Quota backends
|
||||
##
|
||||
|
||||
# Multiple backends are supported:
|
||||
# dirsize: Find and sum all the files found from mail directory.
|
||||
# Extremely SLOW with Maildir. It'll eat your CPU and disk I/O.
|
||||
# dict: Keep quota stored in dictionary (eg. SQL)
|
||||
# maildir: Maildir++ quota
|
||||
# fs: Read-only support for filesystem quota
|
||||
|
||||
plugin {
|
||||
#quota = dirsize:User quota
|
||||
#quota = maildir:User quota
|
||||
#quota = dict:User quota::proxy::quota
|
||||
#quota = fs:User quota
|
||||
}
|
||||
|
||||
# Multiple quota roots are also possible, for example this gives each user
|
||||
# their own 100MB quota and one shared 1GB quota within the domain:
|
||||
plugin {
|
||||
#quota = dict:user::proxy::quota
|
||||
#quota2 = dict:domain:%d:proxy::quota_domain
|
||||
#quota_rule = *:storage=102400
|
||||
#quota2_rule = *:storage=1048576
|
||||
}
|
44
config/mail/etc/dovecot/conf.d/90-sieve-extprograms.conf
Normal file
44
config/mail/etc/dovecot/conf.d/90-sieve-extprograms.conf
Normal file
@ -0,0 +1,44 @@
|
||||
# Sieve Extprograms plugin configuration
|
||||
|
||||
# Don't forget to add the sieve_extprograms plugin to the sieve_plugins setting.
|
||||
# Also enable the extensions you need (one or more of vnd.dovecot.pipe,
|
||||
# vnd.dovecot.filter and vnd.dovecot.execute) by adding these to the
|
||||
# sieve_extensions or sieve_global_extensions settings. Restricting these
|
||||
# extensions to a global context using sieve_global_extensions is recommended.
|
||||
|
||||
plugin {
|
||||
|
||||
# The directory where the program sockets are located for the
|
||||
# vnd.dovecot.pipe, vnd.dovecot.filter and vnd.dovecot.execute extension
|
||||
# respectively. The name of each unix socket contained in that directory
|
||||
# directly maps to a program-name referenced from the Sieve script.
|
||||
#sieve_pipe_socket_dir = sieve-pipe
|
||||
#sieve_filter_socket_dir = sieve-filter
|
||||
#sieve_execute_socket_dir = sieve-execute
|
||||
|
||||
# The directory where the scripts are located for direct execution by the
|
||||
# vnd.dovecot.pipe, vnd.dovecot.filter and vnd.dovecot.execute extension
|
||||
# respectively. The name of each script contained in that directory
|
||||
# directly maps to a program-name referenced from the Sieve script.
|
||||
#sieve_pipe_bin_dir = /usr/lib/dovecot/sieve-pipe
|
||||
#sieve_filter_bin_dir = /usr/lib/dovecot/sieve-filter
|
||||
#sieve_execute_bin_dir = /usr/lib/dovecot/sieve-execute
|
||||
}
|
||||
|
||||
# An example program service called 'do-something' to pipe messages to
|
||||
#service do-something {
|
||||
# Define the executed script as parameter to the sieve service
|
||||
#executable = script /usr/lib/dovecot/sieve-pipe/do-something.sh
|
||||
|
||||
# Use some unprivileged user for executing the program
|
||||
#user = dovenull
|
||||
|
||||
# The unix socket located in the sieve_pipe_socket_dir (as defined in the
|
||||
# plugin {} section above)
|
||||
#unix_listener sieve-pipe/do-something {
|
||||
# LDA/LMTP must have access
|
||||
# user = vmail
|
||||
# mode = 0600
|
||||
#}
|
||||
#}
|
||||
|
138
config/mail/etc/dovecot/conf.d/90-sieve.conf
Normal file
138
config/mail/etc/dovecot/conf.d/90-sieve.conf
Normal file
@ -0,0 +1,138 @@
|
||||
##
|
||||
## Settings for the Sieve interpreter
|
||||
##
|
||||
|
||||
# Do not forget to enable the Sieve plugin in 15-lda.conf and 20-lmtp.conf
|
||||
# by adding it to the respective mail_plugins= settings.
|
||||
|
||||
# The Sieve interpreter can retrieve Sieve scripts from several types of
|
||||
# locations. The default `file' location type is a local filesystem path
|
||||
# pointing to a Sieve script file or a directory containing multiple Sieve
|
||||
# script files. More complex setups can use other location types such as
|
||||
# `ldap' or `dict' to fetch Sieve scripts from remote databases.
|
||||
#
|
||||
# All settings that specify the location of one ore more Sieve scripts accept
|
||||
# the following syntax:
|
||||
#
|
||||
# location = [<type>:]path[;<option>[=<value>][;...]]
|
||||
#
|
||||
# If the type prefix is omitted, the script location type is 'file' and the
|
||||
# location is interpreted as a local filesystem path pointing to a Sieve script
|
||||
# file or directory. Refer to Pigeonhole wiki or INSTALL file for more
|
||||
# information.
|
||||
|
||||
plugin {
|
||||
# The location of the user's main Sieve script or script storage. The LDA
|
||||
# Sieve plugin uses this to find the active script for Sieve filtering at
|
||||
# delivery. The "include" extension uses this location for retrieving
|
||||
# :personal" scripts. This is also where the ManageSieve service will store
|
||||
# the user's scripts, if supported.
|
||||
#
|
||||
# Currently only the 'file:' location type supports ManageSieve operation.
|
||||
# Other location types like 'dict:' and 'ldap:' can currently only
|
||||
# be used as a read-only script source ().
|
||||
#
|
||||
# For the 'file:' type: use the ';active=' parameter to specify where the
|
||||
# active script symlink is located.
|
||||
# For other types: use the ';name=' parameter to specify the name of the
|
||||
# default/active script.
|
||||
sieve = file:~/sieve;active=~/.dovecot.sieve
|
||||
|
||||
# The default Sieve script when the user has none. This is the location of a
|
||||
# global sieve script file, which gets executed ONLY if user's personal Sieve
|
||||
# script doesn't exist. Be sure to pre-compile this script manually using the
|
||||
# sievec command line tool if the binary is not stored in a global location.
|
||||
# --> See sieve_before for executing scripts before the user's personal
|
||||
# script.
|
||||
#sieve_default = /var/lib/dovecot/sieve/default.sieve
|
||||
|
||||
# The name by which the default Sieve script (as configured by the
|
||||
# sieve_default setting) is visible to the user through ManageSieve.
|
||||
#sieve_default_name =
|
||||
|
||||
# Location for ":global" include scripts as used by the "include" extension.
|
||||
#sieve_global =
|
||||
|
||||
# Location Sieve of scripts that need to be executed before the user's
|
||||
# personal script. If a 'file' location path points to a directory, all the
|
||||
# Sieve scripts contained therein (with the proper `.sieve' extension) are
|
||||
# executed. The order of execution within that directory is determined by the
|
||||
# file names, using a normal 8bit per-character comparison.
|
||||
#
|
||||
# Multiple script locations can be specified by appending an increasing number
|
||||
# to the setting name. The Sieve scripts found from these locations are added
|
||||
# to the script execution sequence in the specified order. Reading the
|
||||
# numbered sieve_before settings stops at the first missing setting, so no
|
||||
# numbers may be skipped.
|
||||
#sieve_before = /var/lib/dovecot/sieve.d/
|
||||
#sieve_before2 = ldap:/etc/sieve-ldap.conf;name=ldap-domain
|
||||
#sieve_before3 = (etc...)
|
||||
|
||||
# Identical to sieve_before, only the specified scripts are executed after the
|
||||
# user's script (only when keep is still in effect!). Multiple script
|
||||
# locations can be specified by appending an increasing number.
|
||||
#sieve_after =
|
||||
#sieve_after2 =
|
||||
#sieve_after2 = (etc...)
|
||||
|
||||
# Which Sieve language extensions are available to users. By default, all
|
||||
# supported extensions are available, except for deprecated extensions or
|
||||
# those that are still under development. Some system administrators may want
|
||||
# to disable certain Sieve extensions or enable those that are not available
|
||||
# by default. This setting can use '+' and '-' to specify differences relative
|
||||
# to the default. For example `sieve_extensions = +imapflags' will enable the
|
||||
# deprecated imapflags extension in addition to all extensions were already
|
||||
# enabled by default.
|
||||
#sieve_extensions = +notify +imapflags
|
||||
|
||||
# Which Sieve language extensions are ONLY available in global scripts. This
|
||||
# can be used to restrict the use of certain Sieve extensions to administrator
|
||||
# control, for instance when these extensions can cause security concerns.
|
||||
# This setting has higher precedence than the `sieve_extensions' setting
|
||||
# (above), meaning that the extensions enabled with this setting are never
|
||||
# available to the user's personal script no matter what is specified for the
|
||||
# `sieve_extensions' setting. The syntax of this setting is similar to the
|
||||
# `sieve_extensions' setting, with the difference that extensions are
|
||||
# enabled or disabled for exclusive use in global scripts. Currently, no
|
||||
# extensions are marked as such by default.
|
||||
#sieve_global_extensions =
|
||||
|
||||
# The Pigeonhole Sieve interpreter can have plugins of its own. Using this
|
||||
# setting, the used plugins can be specified. Check the Dovecot wiki
|
||||
# (wiki2.dovecot.org) or the pigeonhole website
|
||||
# (http://pigeonhole.dovecot.org) for available plugins.
|
||||
# The sieve_extprograms plugin is included in this release.
|
||||
#sieve_plugins =
|
||||
|
||||
# The separator that is expected between the :user and :detail
|
||||
# address parts introduced by the subaddress extension. This may
|
||||
# also be a sequence of characters (e.g. '--'). The current
|
||||
# implementation looks for the separator from the left of the
|
||||
# localpart and uses the first one encountered. The :user part is
|
||||
# left of the separator and the :detail part is right. This setting
|
||||
# is also used by Dovecot's LMTP service.
|
||||
#recipient_delimiter = +
|
||||
|
||||
# The maximum size of a Sieve script. The compiler will refuse to compile any
|
||||
# script larger than this limit. If set to 0, no limit on the script size is
|
||||
# enforced.
|
||||
#sieve_max_script_size = 1M
|
||||
|
||||
# The maximum number of actions that can be performed during a single script
|
||||
# execution. If set to 0, no limit on the total number of actions is enforced.
|
||||
#sieve_max_actions = 32
|
||||
|
||||
# The maximum number of redirect actions that can be performed during a single
|
||||
# script execution. If set to 0, no redirect actions are allowed.
|
||||
#sieve_max_redirects = 4
|
||||
|
||||
# The maximum number of personal Sieve scripts a single user can have. If set
|
||||
# to 0, no limit on the number of scripts is enforced.
|
||||
# (Currently only relevant for ManageSieve)
|
||||
#sieve_quota_max_scripts = 0
|
||||
|
||||
# The maximum amount of disk storage a single user's scripts may occupy. If
|
||||
# set to 0, no limit on the used amount of disk storage is enforced.
|
||||
# (Currently only relevant for ManageSieve)
|
||||
#sieve_quota_max_storage = 0
|
||||
}
|
51
config/mail/etc/dovecot/conf.d/99-mail-stack-delivery.conf
Normal file
51
config/mail/etc/dovecot/conf.d/99-mail-stack-delivery.conf
Normal file
@ -0,0 +1,51 @@
|
||||
# Some general options
|
||||
protocols = imap pop3 sieve
|
||||
disable_plaintext_auth = yes
|
||||
ssl = yes
|
||||
#ssl_cert = </etc/dovecot/dovecot.pem
|
||||
#ssl_key = </etc/dovecot/private/dovecot.pem
|
||||
ssl_cert = </etc/letsencrypt/live/ketrenos.com/fullchain.pem
|
||||
ssl_key = </etc/letsencrypt/live/ketrenos.com/privkey.pem
|
||||
ssl_cipher_list = ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM
|
||||
mail_location = maildir:~/Maildir
|
||||
#auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
|
||||
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.@
|
||||
|
||||
# IMAP configuration
|
||||
protocol imap {
|
||||
mail_max_userip_connections = 10
|
||||
imap_client_workarounds = delay-newmail
|
||||
}
|
||||
|
||||
# POP3 configuration
|
||||
protocol pop3 {
|
||||
mail_max_userip_connections = 10
|
||||
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
|
||||
}
|
||||
|
||||
# LDA configuration
|
||||
protocol lda {
|
||||
postmaster_address = postmaster
|
||||
mail_plugins = sieve
|
||||
quota_full_tempfail = yes
|
||||
deliver_log_format = msgid=%m: %$
|
||||
rejection_reason = Your message to <%t> was automatically rejected:%n%r
|
||||
}
|
||||
|
||||
# Plugins configuration
|
||||
plugin {
|
||||
sieve=~/.dovecot.sieve
|
||||
sieve_dir=~/sieve
|
||||
}
|
||||
|
||||
# Authentication configuration
|
||||
auth_mechanisms = plain login
|
||||
|
||||
service auth {
|
||||
# Postfix smtp-auth
|
||||
unix_listener /var/spool/postfix/private/dovecot-auth {
|
||||
mode = 0660
|
||||
user = postfix
|
||||
group = postfix
|
||||
}
|
||||
}
|
21
config/mail/etc/dovecot/conf.d/auth-checkpassword.conf.ext
Normal file
21
config/mail/etc/dovecot/conf.d/auth-checkpassword.conf.ext
Normal file
@ -0,0 +1,21 @@
|
||||
# Authentication for checkpassword users. Included from 10-auth.conf.
|
||||
#
|
||||
# <doc/wiki/AuthDatabase.CheckPassword.txt>
|
||||
|
||||
passdb {
|
||||
driver = checkpassword
|
||||
args = /usr/bin/checkpassword
|
||||
}
|
||||
|
||||
# passdb lookup should return also userdb info
|
||||
userdb {
|
||||
driver = prefetch
|
||||
}
|
||||
|
||||
# Standard checkpassword doesn't support direct userdb lookups.
|
||||
# If you need checkpassword userdb, the checkpassword must support
|
||||
# Dovecot-specific extensions.
|
||||
#userdb {
|
||||
# driver = checkpassword
|
||||
# args = /usr/bin/checkpassword
|
||||
#}
|
15
config/mail/etc/dovecot/conf.d/auth-deny.conf.ext
Normal file
15
config/mail/etc/dovecot/conf.d/auth-deny.conf.ext
Normal file
@ -0,0 +1,15 @@
|
||||
# Deny access for users. Included from 10-auth.conf.
|
||||
|
||||
# Users can be (temporarily) disabled by adding a passdb with deny=yes.
|
||||
# If the user is found from that database, authentication will fail.
|
||||
# The deny passdb should always be specified before others, so it gets
|
||||
# checked first.
|
||||
|
||||
# Example deny passdb using passwd-file. You can use any passdb though.
|
||||
passdb {
|
||||
driver = passwd-file
|
||||
deny = yes
|
||||
|
||||
# File contains a list of usernames, one per line
|
||||
args = /etc/dovecot/deny-users
|
||||
}
|
16
config/mail/etc/dovecot/conf.d/auth-dict.conf.ext
Normal file
16
config/mail/etc/dovecot/conf.d/auth-dict.conf.ext
Normal file
@ -0,0 +1,16 @@
|
||||
# Authentication via dict backend. Included from 10-auth.conf.
|
||||
#
|
||||
# <doc/wiki/AuthDatabase.Dict.txt>
|
||||
|
||||
passdb {
|
||||
driver = dict
|
||||
|
||||
# Path for dict configuration file, see
|
||||
# example-config/dovecot-dict-auth.conf.ext
|
||||
args = /etc/dovecot/dovecot-dict-auth.conf.ext
|
||||
}
|
||||
|
||||
userdb {
|
||||
driver = dict
|
||||
args = /etc/dovecot/dovecot-dict-auth.conf.ext
|
||||
}
|
33
config/mail/etc/dovecot/conf.d/auth-ldap.conf.ext
Normal file
33
config/mail/etc/dovecot/conf.d/auth-ldap.conf.ext
Normal file
@ -0,0 +1,33 @@
|
||||
# Authentication for LDAP users. Included from 10-auth.conf.
|
||||
#
|
||||
# <doc/wiki/AuthDatabase.LDAP.txt>
|
||||
|
||||
passdb {
|
||||
driver = ldap
|
||||
|
||||
# Path for LDAP configuration file, see example-config/dovecot-ldap.conf.ext
|
||||
args = /etc/dovecot/dovecot-ldap.conf.ext
|
||||
}
|
||||
|
||||
# "prefetch" user database means that the passdb already provided the
|
||||
# needed information and there's no need to do a separate userdb lookup.
|
||||
# <doc/wiki/UserDatabase.Prefetch.txt>
|
||||
#userdb {
|
||||
# driver = prefetch
|
||||
#}
|
||||
|
||||
userdb {
|
||||
driver = ldap
|
||||
args = /etc/dovecot/dovecot-ldap.conf.ext
|
||||
|
||||
# Default fields can be used to specify defaults that LDAP may override
|
||||
#default_fields = home=/home/virtual/%u
|
||||
}
|
||||
|
||||
# If you don't have any user-specific settings, you can avoid the userdb LDAP
|
||||
# lookup by using userdb static instead of userdb ldap, for example:
|
||||
# <doc/wiki/UserDatabase.Static.txt>
|
||||
#userdb {
|
||||
#driver = static
|
||||
#args = uid=vmail gid=vmail home=/var/vmail/%u
|
||||
#}
|
16
config/mail/etc/dovecot/conf.d/auth-master.conf.ext
Normal file
16
config/mail/etc/dovecot/conf.d/auth-master.conf.ext
Normal file
@ -0,0 +1,16 @@
|
||||
# Authentication for master users. Included from 10-auth.conf.
|
||||
|
||||
# By adding master=yes setting inside a passdb you make the passdb a list
|
||||
# of "master users", who can log in as anyone else.
|
||||
# <doc/wiki/Authentication.MasterUsers.txt>
|
||||
|
||||
# Example master user passdb using passwd-file. You can use any passdb though.
|
||||
passdb {
|
||||
driver = passwd-file
|
||||
master = yes
|
||||
args = /etc/dovecot/master-users
|
||||
|
||||
# Unless you're using PAM, you probably still want the destination user to
|
||||
# be looked up from passdb that it really exists. pass=yes does that.
|
||||
pass = yes
|
||||
}
|
20
config/mail/etc/dovecot/conf.d/auth-passwdfile.conf.ext
Normal file
20
config/mail/etc/dovecot/conf.d/auth-passwdfile.conf.ext
Normal file
@ -0,0 +1,20 @@
|
||||
# Authentication for passwd-file users. Included from 10-auth.conf.
|
||||
#
|
||||
# passwd-like file with specified location.
|
||||
# <doc/wiki/AuthDatabase.PasswdFile.txt>
|
||||
|
||||
passdb {
|
||||
driver = passwd-file
|
||||
args = scheme=CRYPT username_format=%u /etc/dovecot/users
|
||||
}
|
||||
|
||||
userdb {
|
||||
driver = passwd-file
|
||||
args = username_format=%u /etc/dovecot/users
|
||||
|
||||
# Default fields that can be overridden by passwd-file
|
||||
#default_fields = quota_rule=*:storage=1G
|
||||
|
||||
# Override fields from passwd-file
|
||||
#override_fields = home=/home/virtual/%u
|
||||
}
|
30
config/mail/etc/dovecot/conf.d/auth-sql.conf.ext
Normal file
30
config/mail/etc/dovecot/conf.d/auth-sql.conf.ext
Normal file
@ -0,0 +1,30 @@
|
||||
# Authentication for SQL users. Included from 10-auth.conf.
|
||||
#
|
||||
# <doc/wiki/AuthDatabase.SQL.txt>
|
||||
|
||||
passdb {
|
||||
driver = sql
|
||||
|
||||
# Path for SQL configuration file, see example-config/dovecot-sql.conf.ext
|
||||
args = /etc/dovecot/dovecot-sql.conf.ext
|
||||
}
|
||||
|
||||
# "prefetch" user database means that the passdb already provided the
|
||||
# needed information and there's no need to do a separate userdb lookup.
|
||||
# <doc/wiki/UserDatabase.Prefetch.txt>
|
||||
#userdb {
|
||||
# driver = prefetch
|
||||
#}
|
||||
|
||||
userdb {
|
||||
driver = sql
|
||||
args = /etc/dovecot/dovecot-sql.conf.ext
|
||||
}
|
||||
|
||||
# If you don't have any user-specific settings, you can avoid the user_query
|
||||
# by using userdb static instead of userdb sql, for example:
|
||||
# <doc/wiki/UserDatabase.Static.txt>
|
||||
#userdb {
|
||||
#driver = static
|
||||
#args = uid=vmail gid=vmail home=/var/vmail/%u
|
||||
#}
|
24
config/mail/etc/dovecot/conf.d/auth-static.conf.ext
Normal file
24
config/mail/etc/dovecot/conf.d/auth-static.conf.ext
Normal file
@ -0,0 +1,24 @@
|
||||
# Static passdb. Included from 10-auth.conf.
|
||||
|
||||
# This can be used for situations where Dovecot doesn't need to verify the
|
||||
# username or the password, or if there is a single password for all users:
|
||||
#
|
||||
# - proxy frontend, where the backend verifies the password
|
||||
# - proxy backend, where the frontend already verified the password
|
||||
# - authentication with SSL certificates
|
||||
# - simple testing
|
||||
|
||||
#passdb {
|
||||
# driver = static
|
||||
# args = proxy=y host=%1Mu.example.com nopassword=y
|
||||
#}
|
||||
|
||||
#passdb {
|
||||
# driver = static
|
||||
# args = password=test
|
||||
#}
|
||||
|
||||
#userdb {
|
||||
# driver = static
|
||||
# args = uid=vmail gid=vmail home=/home/%u
|
||||
#}
|
74
config/mail/etc/dovecot/conf.d/auth-system.conf.ext
Normal file
74
config/mail/etc/dovecot/conf.d/auth-system.conf.ext
Normal file
@ -0,0 +1,74 @@
|
||||
# Authentication for system users. Included from 10-auth.conf.
|
||||
#
|
||||
# <doc/wiki/PasswordDatabase.txt>
|
||||
# <doc/wiki/UserDatabase.txt>
|
||||
|
||||
# PAM authentication. Preferred nowadays by most systems.
|
||||
# PAM is typically used with either userdb passwd or userdb static.
|
||||
# REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
|
||||
# authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
|
||||
passdb {
|
||||
driver = pam
|
||||
# [session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=<n>]
|
||||
# [cache_key=<key>] [<service name>]
|
||||
#args = dovecot
|
||||
}
|
||||
|
||||
# System users (NSS, /etc/passwd, or similiar).
|
||||
# In many systems nowadays this uses Name Service Switch, which is
|
||||
# configured in /etc/nsswitch.conf. <doc/wiki/AuthDatabase.Passwd.txt>
|
||||
#passdb {
|
||||
#driver = passwd
|
||||
# [blocking=no]
|
||||
#args =
|
||||
#}
|
||||
|
||||
# Shadow passwords for system users (NSS, /etc/shadow or similiar).
|
||||
# Deprecated by PAM nowadays.
|
||||
# <doc/wiki/PasswordDatabase.Shadow.txt>
|
||||
#passdb {
|
||||
#driver = shadow
|
||||
# [blocking=no]
|
||||
#args =
|
||||
#}
|
||||
|
||||
# PAM-like authentication for OpenBSD.
|
||||
# <doc/wiki/PasswordDatabase.BSDAuth.txt>
|
||||
#passdb {
|
||||
#driver = bsdauth
|
||||
# [blocking=no] [cache_key=<key>]
|
||||
#args =
|
||||
#}
|
||||
|
||||
##
|
||||
## User databases
|
||||
##
|
||||
|
||||
# System users (NSS, /etc/passwd, or similiar). In many systems nowadays this
|
||||
# uses Name Service Switch, which is configured in /etc/nsswitch.conf.
|
||||
userdb {
|
||||
# <doc/wiki/AuthDatabase.Passwd.txt>
|
||||
driver = passwd
|
||||
# [blocking=no]
|
||||
#args =
|
||||
|
||||
# Override fields from passwd
|
||||
#override_fields = home=/home/virtual/%u
|
||||
}
|
||||
|
||||
# Static settings generated from template <doc/wiki/UserDatabase.Static.txt>
|
||||
#userdb {
|
||||
#driver = static
|
||||
# Can return anything a userdb could normally return. For example:
|
||||
#
|
||||
# args = uid=500 gid=500 home=/var/mail/%u
|
||||
#
|
||||
# LDA and LMTP needs to look up users only from the userdb. This of course
|
||||
# doesn't work with static userdb because there is no list of users.
|
||||
# Normally static userdb handles this by doing a passdb lookup. This works
|
||||
# with most passdbs, with PAM being the most notable exception. If you do
|
||||
# the user verification another way, you can add allow_all_users=yes to
|
||||
# the args in which case the passdb lookup is skipped.
|
||||
#
|
||||
#args =
|
||||
#}
|
17
config/mail/etc/dovecot/conf.d/auth-vpopmail.conf.ext
Normal file
17
config/mail/etc/dovecot/conf.d/auth-vpopmail.conf.ext
Normal file
@ -0,0 +1,17 @@
|
||||
# Authentication for vpopmail users. Included from 10-auth.conf.
|
||||
#
|
||||
# <doc/wiki/AuthDatabase.VPopMail.txt>
|
||||
|
||||
passdb {
|
||||
driver = vpopmail
|
||||
|
||||
# [cache_key=<key>] [webmail=<ip>]
|
||||
args =
|
||||
}
|
||||
|
||||
userdb {
|
||||
driver = vpopmail
|
||||
|
||||
# [quota_template=<template>] - %q expands to Maildir++ quota
|
||||
args = quota_template=quota_rule=*:backend=%q
|
||||
}
|
92
config/mail/etc/dovecot/dovecot.conf
Normal file
92
config/mail/etc/dovecot/dovecot.conf
Normal file
@ -0,0 +1,92 @@
|
||||
## Dovecot configuration file
|
||||
|
||||
# If you're in a hurry, see http://wiki2.dovecot.org/QuickConfiguration
|
||||
|
||||
# "doveconf -n" command gives a clean output of the changed settings. Use it
|
||||
# instead of copy&pasting files when posting to the Dovecot mailing list.
|
||||
|
||||
# '#' character and everything after it is treated as comments. Extra spaces
|
||||
# and tabs are ignored. If you want to use either of these explicitly, put the
|
||||
# value inside quotes, eg.: key = "# char and trailing whitespace "
|
||||
|
||||
# Default values are shown for each setting, it's not required to uncomment
|
||||
# those. These are exceptions to this though: No sections (e.g. namespace {})
|
||||
# or plugin settings are added by default, they're listed only as examples.
|
||||
# Paths are also just examples with the real defaults being based on configure
|
||||
# options. The paths listed here are for configure --prefix=/usr
|
||||
# --sysconfdir=/etc --localstatedir=/var
|
||||
|
||||
# Enable installed protocols
|
||||
!include_try /usr/share/dovecot/protocols.d/*.protocol
|
||||
|
||||
# A comma separated list of IPs or hosts where to listen in for connections.
|
||||
# "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces.
|
||||
# If you want to specify non-default ports or anything more complex,
|
||||
# edit conf.d/master.conf.
|
||||
#listen = *, ::
|
||||
|
||||
# Base directory where to store runtime data.
|
||||
#base_dir = /var/run/dovecot/
|
||||
|
||||
# Name of this instance. Used to prefix all Dovecot processes in ps output.
|
||||
#instance_name = dovecot
|
||||
|
||||
# Greeting message for clients.
|
||||
#login_greeting = Dovecot ready.
|
||||
|
||||
# Space separated list of trusted network ranges. Connections from these
|
||||
# IPs are allowed to override their IP addresses and ports (for logging and
|
||||
# for authentication checks). disable_plaintext_auth is also ignored for
|
||||
# these networks. Typically you'd specify your IMAP proxy servers here.
|
||||
#login_trusted_networks =
|
||||
|
||||
# Sepace separated list of login access check sockets (e.g. tcpwrap)
|
||||
#login_access_sockets =
|
||||
|
||||
# Show more verbose process titles (in ps). Currently shows user name and
|
||||
# IP address. Useful for seeing who are actually using the IMAP processes
|
||||
# (eg. shared mailboxes or if same uid is used for multiple accounts).
|
||||
#verbose_proctitle = no
|
||||
|
||||
# Should all processes be killed when Dovecot master process shuts down.
|
||||
# Setting this to "no" means that Dovecot can be upgraded without
|
||||
# forcing existing client connections to close (although that could also be
|
||||
# a problem if the upgrade is e.g. because of a security fix).
|
||||
#shutdown_clients = yes
|
||||
|
||||
# If non-zero, run mail commands via this many connections to doveadm server,
|
||||
# instead of running them directly in the same process.
|
||||
#doveadm_worker_count = 0
|
||||
# UNIX socket or host:port used for connecting to doveadm server
|
||||
#doveadm_socket_path = doveadm-server
|
||||
|
||||
# Space separated list of environment variables that are preserved on Dovecot
|
||||
# startup and passed down to all of its child processes. You can also give
|
||||
# key=value pairs to always set specific settings.
|
||||
#import_environment = TZ
|
||||
|
||||
##
|
||||
## Dictionary server settings
|
||||
##
|
||||
|
||||
# Dictionary can be used to store key=value lists. This is used by several
|
||||
# plugins. The dictionary can be accessed either directly or though a
|
||||
# dictionary server. The following dict block maps dictionary names to URIs
|
||||
# when the server is used. These can then be referenced using URIs in format
|
||||
# "proxy::<name>".
|
||||
|
||||
dict {
|
||||
#quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
|
||||
#expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
|
||||
}
|
||||
|
||||
# Most of the actual configuration gets included below. The filenames are
|
||||
# first sorted by their ASCII value and parsed in that order. The 00-prefixes
|
||||
# in filenames are intended to make it easier to understand the ordering.
|
||||
!include conf.d/*.conf
|
||||
|
||||
# A config file can also tried to be included without giving an error if
|
||||
# it's not found:
|
||||
!include_try local.conf
|
||||
|
||||
mail_access_groups = ketrenos users
|
102
config/mail/etc/dovecot/dovecot.conf.ucf-dist
Normal file
102
config/mail/etc/dovecot/dovecot.conf.ucf-dist
Normal file
@ -0,0 +1,102 @@
|
||||
## Dovecot configuration file
|
||||
|
||||
# If you're in a hurry, see http://wiki2.dovecot.org/QuickConfiguration
|
||||
|
||||
# "doveconf -n" command gives a clean output of the changed settings. Use it
|
||||
# instead of copy&pasting files when posting to the Dovecot mailing list.
|
||||
|
||||
# '#' character and everything after it is treated as comments. Extra spaces
|
||||
# and tabs are ignored. If you want to use either of these explicitly, put the
|
||||
# value inside quotes, eg.: key = "# char and trailing whitespace "
|
||||
|
||||
# Most (but not all) settings can be overridden by different protocols and/or
|
||||
# source/destination IPs by placing the settings inside sections, for example:
|
||||
# protocol imap { }, local 127.0.0.1 { }, remote 10.0.0.0/8 { }
|
||||
|
||||
# Default values are shown for each setting, it's not required to uncomment
|
||||
# those. These are exceptions to this though: No sections (e.g. namespace {})
|
||||
# or plugin settings are added by default, they're listed only as examples.
|
||||
# Paths are also just examples with the real defaults being based on configure
|
||||
# options. The paths listed here are for configure --prefix=/usr
|
||||
# --sysconfdir=/etc --localstatedir=/var
|
||||
|
||||
# Enable installed protocols
|
||||
!include_try /usr/share/dovecot/protocols.d/*.protocol
|
||||
|
||||
# A comma separated list of IPs or hosts where to listen in for connections.
|
||||
# "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces.
|
||||
# If you want to specify non-default ports or anything more complex,
|
||||
# edit conf.d/master.conf.
|
||||
#listen = *, ::
|
||||
|
||||
# Base directory where to store runtime data.
|
||||
#base_dir = /var/run/dovecot/
|
||||
|
||||
# Name of this instance. In multi-instance setup doveadm and other commands
|
||||
# can use -i <instance_name> to select which instance is used (an alternative
|
||||
# to -c <config_path>). The instance name is also added to Dovecot processes
|
||||
# in ps output.
|
||||
#instance_name = dovecot
|
||||
|
||||
# Greeting message for clients.
|
||||
#login_greeting = Dovecot ready.
|
||||
|
||||
# Space separated list of trusted network ranges. Connections from these
|
||||
# IPs are allowed to override their IP addresses and ports (for logging and
|
||||
# for authentication checks). disable_plaintext_auth is also ignored for
|
||||
# these networks. Typically you'd specify your IMAP proxy servers here.
|
||||
#login_trusted_networks =
|
||||
|
||||
# Space separated list of login access check sockets (e.g. tcpwrap)
|
||||
#login_access_sockets =
|
||||
|
||||
# With proxy_maybe=yes if proxy destination matches any of these IPs, don't do
|
||||
# proxying. This isn't necessary normally, but may be useful if the destination
|
||||
# IP is e.g. a load balancer's IP.
|
||||
#auth_proxy_self =
|
||||
|
||||
# Show more verbose process titles (in ps). Currently shows user name and
|
||||
# IP address. Useful for seeing who are actually using the IMAP processes
|
||||
# (eg. shared mailboxes or if same uid is used for multiple accounts).
|
||||
#verbose_proctitle = no
|
||||
|
||||
# Should all processes be killed when Dovecot master process shuts down.
|
||||
# Setting this to "no" means that Dovecot can be upgraded without
|
||||
# forcing existing client connections to close (although that could also be
|
||||
# a problem if the upgrade is e.g. because of a security fix).
|
||||
#shutdown_clients = yes
|
||||
|
||||
# If non-zero, run mail commands via this many connections to doveadm server,
|
||||
# instead of running them directly in the same process.
|
||||
#doveadm_worker_count = 0
|
||||
# UNIX socket or host:port used for connecting to doveadm server
|
||||
#doveadm_socket_path = doveadm-server
|
||||
|
||||
# Space separated list of environment variables that are preserved on Dovecot
|
||||
# startup and passed down to all of its child processes. You can also give
|
||||
# key=value pairs to always set specific settings.
|
||||
#import_environment = TZ
|
||||
|
||||
##
|
||||
## Dictionary server settings
|
||||
##
|
||||
|
||||
# Dictionary can be used to store key=value lists. This is used by several
|
||||
# plugins. The dictionary can be accessed either directly or though a
|
||||
# dictionary server. The following dict block maps dictionary names to URIs
|
||||
# when the server is used. These can then be referenced using URIs in format
|
||||
# "proxy::<name>".
|
||||
|
||||
dict {
|
||||
#quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
|
||||
#expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
|
||||
}
|
||||
|
||||
# Most of the actual configuration gets included below. The filenames are
|
||||
# first sorted by their ASCII value and parsed in that order. The 00-prefixes
|
||||
# in filenames are intended to make it easier to understand the ordering.
|
||||
!include conf.d/*.conf
|
||||
|
||||
# A config file can also tried to be included without giving an error if
|
||||
# it's not found:
|
||||
!include_try local.conf
|
1284
config/mail/etc/dovecot/dovecot.conf.ucf-old
Normal file
1284
config/mail/etc/dovecot/dovecot.conf.ucf-old
Normal file
File diff suppressed because it is too large
Load Diff
1
config/mail/etc/dovecot/dovecot.pem
Symbolic link
1
config/mail/etc/dovecot/dovecot.pem
Symbolic link
@ -0,0 +1 @@
|
||||
/etc/ssl/certs/dovecot.pem
|
2
config/mail/etc/dovecot/dovecot/README
Normal file
2
config/mail/etc/dovecot/dovecot/README
Normal file
@ -0,0 +1,2 @@
|
||||
Configuration files go to this directory. See example configuration files in
|
||||
/usr/share/doc/dovecot-core/example-config/
|
1
config/mail/etc/hostname
Normal file
1
config/mail/etc/hostname
Normal file
@ -0,0 +1 @@
|
||||
email
|
2
config/mail/etc/mail/m4/opendkim.m4
Normal file
2
config/mail/etc/mail/m4/opendkim.m4
Normal file
@ -0,0 +1,2 @@
|
||||
INPUT_MAIL_FILTER(`opendkim',
|
||||
`S=local:/var/run/opendkim/opendkim.sock, F=, T=S:4m;R:4m;E:10m')dnl
|
1
config/mail/etc/mail/spamassassin
Symbolic link
1
config/mail/etc/mail/spamassassin
Symbolic link
@ -0,0 +1 @@
|
||||
../spamassassin
|
1
config/mail/etc/mailname
Normal file
1
config/mail/etc/mailname
Normal file
@ -0,0 +1 @@
|
||||
ketrenos.com
|
97
config/mail/etc/opendkim.conf
Normal file
97
config/mail/etc/opendkim.conf
Normal file
@ -0,0 +1,97 @@
|
||||
# This is a basic configuration that can easily be adapted to suit a standard
|
||||
# installation. For more advanced options, see opendkim.conf(5) and/or
|
||||
# /usr/share/doc/opendkim/examples/opendkim.conf.sample.
|
||||
|
||||
AutoRestart Yes
|
||||
AutoRestartRate 10/1h
|
||||
# Log to syslog
|
||||
Syslog yes
|
||||
SyslogSuccess yes
|
||||
LogWhy yes
|
||||
|
||||
# Required to use local socket with MTAs that access the socket as a non-
|
||||
# privileged user (e.g. Postfix)
|
||||
UMask 007
|
||||
|
||||
# Sign for example.com with key in /etc/dkimkeys/dkim.key using
|
||||
# selector '2007' (e.g. 2007._domainkey.example.com)
|
||||
Domain ketrenos.com
|
||||
KeyFile /etc/dkimkeys/dkim.key
|
||||
#Selector 2007
|
||||
RequireSafeKeys False
|
||||
|
||||
# Commonly-used options; the commented-out versions show the defaults.
|
||||
#Canonicalization simple
|
||||
Mode sv
|
||||
#SubDomains no
|
||||
|
||||
Canonicalization relaxed/simple
|
||||
|
||||
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
|
||||
InternalHosts refile:/etc/opendkim/TrustedHosts
|
||||
KeyTable refile:/etc/opendkim/KeyTable
|
||||
SigningTable refile:/etc/opendkim/SigningTable
|
||||
|
||||
KeyFile /etc/opendkim/keys/ketrenos.com/default.private
|
||||
|
||||
|
||||
# Socket smtp://localhost
|
||||
#
|
||||
# ## Socket socketspec
|
||||
# ##
|
||||
# ## Names the socket where this filter should listen for milter connections
|
||||
# ## from the MTA. Required. Should be in one of these forms:
|
||||
# ##
|
||||
# ## inet:port@address to listen on a specific interface
|
||||
# ## inet:port to listen on all interfaces
|
||||
# ## local:/path/to/socket to listen on a UNIX domain socket
|
||||
#
|
||||
#Socket inet:8892@localhost
|
||||
#Socket local:/var/run/opendkim/opendkim.sock
|
||||
Socket local:/var/spool/postfix/opendkim/opendkim.sock
|
||||
|
||||
## PidFile filename
|
||||
### default (none)
|
||||
###
|
||||
### Name of the file where the filter should write its pid before beginning
|
||||
### normal operations.
|
||||
#
|
||||
PidFile /var/run/opendkim/opendkim.pid
|
||||
|
||||
|
||||
# Always oversign From (sign using actual From and a null From to prevent
|
||||
# malicious signatures header fields (From and/or others) between the signer
|
||||
# and the verifier. From is oversigned by default in the Debian pacakge
|
||||
# because it is often the identity key used by reputation systems and thus
|
||||
# somewhat security sensitive.
|
||||
OversignHeaders From
|
||||
|
||||
## ResolverConfiguration filename
|
||||
## default (none)
|
||||
##
|
||||
## Specifies a configuration file to be passed to the Unbound library that
|
||||
## performs DNS queries applying the DNSSEC protocol. See the Unbound
|
||||
## documentation at http://unbound.net for the expected content of this file.
|
||||
## The results of using this and the TrustAnchorFile setting at the same
|
||||
## time are undefined.
|
||||
## In Debian, /etc/unbound/unbound.conf is shipped as part of the Suggested
|
||||
## unbound package
|
||||
|
||||
# ResolverConfiguration /etc/unbound/unbound.conf
|
||||
|
||||
## TrustAnchorFile filename
|
||||
## default (none)
|
||||
##
|
||||
## Specifies a file from which trust anchor data should be read when doing
|
||||
## DNS queries and applying the DNSSEC protocol. See the Unbound documentation
|
||||
## at http://unbound.net for the expected format of this file.
|
||||
|
||||
TrustAnchorFile /usr/share/dns/root.key
|
||||
|
||||
## Userid userid
|
||||
### default (none)
|
||||
###
|
||||
### Change to user "userid" before starting normal operation? May include
|
||||
### a group ID as well, separated from the userid by a colon.
|
||||
#
|
||||
UserID opendkim
|
1
config/mail/etc/opendkim/KeyTable
Normal file
1
config/mail/etc/opendkim/KeyTable
Normal file
@ -0,0 +1 @@
|
||||
default._domainkey.ketrenos.com ketrenos.com:default:/etc/opendkim/keys/ketrenos.com/default.private
|
3
config/mail/etc/opendkim/README
Normal file
3
config/mail/etc/opendkim/README
Normal file
@ -0,0 +1,3 @@
|
||||
Instructions to configure from:
|
||||
|
||||
https://easydmarc.com/blog/how-to-configure-dkim-opendkim-with-postfix/
|
2
config/mail/etc/opendkim/SigningTable
Normal file
2
config/mail/etc/opendkim/SigningTable
Normal file
@ -0,0 +1,2 @@
|
||||
*@ketrenos.com default._domainkey.ketrenos.com
|
||||
|
9
config/mail/etc/opendkim/TrustedHosts
Normal file
9
config/mail/etc/opendkim/TrustedHosts
Normal file
@ -0,0 +1,9 @@
|
||||
localhost
|
||||
127.0.0.1
|
||||
::1
|
||||
192.168.1.0/24
|
||||
192.168.0.1/24
|
||||
|
||||
*.ketrenos.com
|
||||
|
||||
|
13
config/mail/etc/postfix-policyd-spf-python/policyd-spf.conf
Normal file
13
config/mail/etc/postfix-policyd-spf-python/policyd-spf.conf
Normal file
@ -0,0 +1,13 @@
|
||||
# For a fully commented sample config file see policyd-spf.conf.commented
|
||||
|
||||
debugLevel = 1
|
||||
defaultSeedOnly = 1
|
||||
|
||||
HELO_reject = SPF_Not_Pass
|
||||
Mail_From_reject = Fail
|
||||
|
||||
PermError_reject = False
|
||||
TempError_Defer = False
|
||||
|
||||
skip_addresses = 127.0.0.0/8,::ffff:127.0.0.0/104,::1
|
||||
Domain_Whitelist = mx-out.facebook.com,facemail.com,facebookmail.com,mail-mail.facebook.com
|
@ -0,0 +1,13 @@
|
||||
# For a fully commented sample config file see policyd-spf.conf.commented
|
||||
|
||||
debugLevel = 1
|
||||
TestOnly = 1
|
||||
|
||||
HELO_reject = Fail
|
||||
Mail_From_reject = Fail
|
||||
|
||||
PermError_reject = False
|
||||
TempError_Defer = False
|
||||
|
||||
skip_addresses = 127.0.0.0/8,::ffff:127.0.0.0/104,::1
|
||||
|
23
config/mail/etc/postfix/README
Normal file
23
config/mail/etc/postfix/README
Normal file
@ -0,0 +1,23 @@
|
||||
To blacklist an alias:
|
||||
|
||||
echo "alias@ketrenos.com reject" | sudo tee -a recipient_restrictions
|
||||
sudo postmap hash:/etc/postfix/recipient_restrictions
|
||||
sudo systemctl restart postfix
|
||||
|
||||
To black list a sender:
|
||||
|
||||
echo "name@address.com" | sudo tee -a sender_access
|
||||
sudo postmap hash:/etc/postfix/sender_access
|
||||
sudo systemctl restart postfix
|
||||
|
||||
To add a sender (eg firsttechfed.com) to the whitelist of sender DNS:
|
||||
|
||||
echo "firsttechfed.com OK" | sudo tee -a sender_access
|
||||
sudo postmap hash:/etc/postfix/sender_access
|
||||
sudo systemctl restart postfix
|
||||
|
||||
To add a new list, append entries to /etc/aliases and run:
|
||||
|
||||
echo "alias" | sudo tee -a /etc/aliases
|
||||
sudo postalias /etc/aliases
|
||||
sudo systemctl restart postfix
|
2
config/mail/etc/postfix/access_sender
Normal file
2
config/mail/etc/postfix/access_sender
Normal file
@ -0,0 +1,2 @@
|
||||
ketrenos.com REJECT Attempt to spoof from ketrenos.com
|
||||
.ketrenos.com REJECT Attempt to spoof from ketrenos.com
|
BIN
config/mail/etc/postfix/access_sender.db
Normal file
BIN
config/mail/etc/postfix/access_sender.db
Normal file
Binary file not shown.
8
config/mail/etc/postfix/dynamicmaps.cf
Normal file
8
config/mail/etc/postfix/dynamicmaps.cf
Normal file
@ -0,0 +1,8 @@
|
||||
# Postfix dynamic maps configuration file.
|
||||
#
|
||||
# The first match found is the one that is used. Wildcards are not supported
|
||||
# as of postfix 2.0.2
|
||||
#
|
||||
#type location of .so file open function (mkmap func)
|
||||
#==== ================================ ============= ============
|
||||
sqlite postfix-sqlite.so.1.0.1 dict_sqlite_open
|
150
config/mail/etc/postfix/main.cf
Normal file
150
config/mail/etc/postfix/main.cf
Normal file
@ -0,0 +1,150 @@
|
||||
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
|
||||
|
||||
# Debian specific: Specifying a file name will cause the first
|
||||
# line of that file to be used as the name. The Debian default
|
||||
# is /etc/mailname.
|
||||
#myorigin = /etc/mailname
|
||||
myhostname = ketrenos.com
|
||||
#myhostname = static-50-126-85-202.cor02.bvtn.or.ptr.ziplyfiber.com
|
||||
#myhostname = mail.ketrenos.com
|
||||
|
||||
smtpd_banner = $myhostname ESMTP $mail_name
|
||||
|
||||
# Enable unverified_sender_verify
|
||||
# 2022-05-26
|
||||
unverified_sender_defer_code = 250
|
||||
|
||||
biff = no
|
||||
# 2020-09-16 set max size to 50M as more and more
|
||||
# messages are exceeding 32M
|
||||
#
|
||||
# 2021-05-16 set max size to 200M (2^28) as we are seeing Infuccient
|
||||
# system storage bounces.
|
||||
message_size_limit = 0
|
||||
|
||||
# appending .domain is the MUA's job.
|
||||
append_dot_mydomain = no
|
||||
|
||||
# Uncomment the next line to generate "delayed mail" warnings
|
||||
#delay_warning_time = 4h
|
||||
|
||||
readme_directory = no
|
||||
|
||||
#debug_peer_list = 127.0.0.1
|
||||
|
||||
# NOTE:
|
||||
# `smtpd` prefix is for receiving connections. `smtp` is for outbound
|
||||
# connections
|
||||
|
||||
# TLS parameters
|
||||
#smtpd_use_tls = yes
|
||||
smtpd_tls_auth_only = no
|
||||
smtpd_tls_cert_file = /etc/letsencrypt/live/mail.ketrenos.com/fullchain.pem
|
||||
smtpd_tls_key_file = /etc/letsencrypt/live/mail.ketrenos.com/privkey.pem
|
||||
|
||||
# Trying to fix insufficient space
|
||||
smtpd_proxy_timeout = 240s
|
||||
|
||||
smtpd_tls_received_header = yes
|
||||
smtpd_tls_ask_ccert = yes
|
||||
smtpd_tls_session_cache_timeout = 3600s
|
||||
smtpd_tls_loglevel = 1
|
||||
smtp_tls_loglevel = 1
|
||||
smtp_tls_note_starttls_offer = yes
|
||||
|
||||
#Disable Poodle
|
||||
smtp_tls_security_level = may
|
||||
smtp_tls_mandatory_protocols=!SSLv2,!SSLv3
|
||||
smtp_tls_protocols=!SSLv2,!SSLv3
|
||||
smtpd_tls_security_level = may
|
||||
smtpd_tls_mandatory_protocols=!SSLv2,!SSLv3
|
||||
smtpd_tls_protocols=!SSLv2,!SSLv3
|
||||
|
||||
# Force TLS for outgoing server connection
|
||||
smtp_tls_policy_maps = hash:/etc/postfix/tls_policy
|
||||
smtp_tls_CApath = /etc/ssl/certs/
|
||||
smtpd_tls_CApath = /etc/ssl/certs/
|
||||
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
|
||||
smtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
# Changes to SSL Ciphers
|
||||
tls_preempt_cipherlist = yes
|
||||
smtpd_tls_mandatory_ciphers = high
|
||||
|
||||
# If this is used, facebook stops being able to deliver to us :(
|
||||
#tls_high_cipherlist = ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:DHE-DSS-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA256:ADH-AES256-GCM-SHA384:ADH-AES256-SHA256:ECDH-RSA-AES256-GCM-SHA384:ECDH-ECDSA-AES256-GCM-SHA384:ECDH-RSA-AES256-SHA384:ECDH-ECDSA-AES256-SHA384:AES256-GCM-SHA384:AES256-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:DHE-DSS-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-DSS-AES128-SHA256:ADH-AES128-GCM-SHA256:ADH-AES128-SHA256:ECDH-RSA-AES128-GCM-SHA256:ECDH-ECDSA-AES128-GCM-SHA256:ECDH-RSA-AES128-SHA256:ECDH-ECDSA-AES128-SHA256:AES128-GCM-SHA256:AES128-SHA256:NULL-SHA256
|
||||
|
||||
#smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
|
||||
#smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
||||
|
||||
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
|
||||
# information on enabling SSL in the smtp client.
|
||||
|
||||
alias_maps = hash:/etc/aliases
|
||||
alias_database = hash:/etc/aliases
|
||||
myorigin = /etc/mailname
|
||||
mydestination = ketrenos.com, kiaoramassage.com, sketchitect.com, localhost, email.ketrenos.net, ketrenos.net
|
||||
relayhost =
|
||||
mailbox_size_limit = 0
|
||||
recipient_delimiter = _
|
||||
inet_interfaces = all
|
||||
inet_protocols = ipv4
|
||||
home_mailbox = Maildir/
|
||||
smtpd_sasl_auth_enable = yes
|
||||
smtpd_sasl_type = dovecot
|
||||
smtpd_sasl_path = private/auth_client
|
||||
smtpd_sasl_authenticated_header = yes
|
||||
smtpd_sasl_security_options = noanonymous
|
||||
smtpd_sasl_tsl_security_options = noanonymous
|
||||
smtp_sasl_security_options = noanonymous
|
||||
smtp_sasl_tsl_security_options = noanonymous
|
||||
smtpd_sasl_local_domain =
|
||||
smtpd_helo_required = yes
|
||||
broken_sasl_auth_clients = yes
|
||||
|
||||
mynetworks = 127.0.0.0/8 192.168.0.0/16
|
||||
|
||||
mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot.conf -m "${EXTENSION}" -a "${RECIPIENT}"
|
||||
tls_random_source = dev:/dev/urandom
|
||||
content_filter = smtp-amavis:[127.0.0.1]:10024
|
||||
relay_domains = ketrenos.com, email.ketrenos.net, webserver.ketrenos.net
|
||||
#transport_maps = hash:/etc/postfix/transport
|
||||
mailman_destination_recipient_limit = 1
|
||||
|
||||
# smtpd_client_restrictions =
|
||||
# permit_mynetworks
|
||||
# reject_plaintext_session
|
||||
|
||||
smtpd_recipient_restrictions =
|
||||
permit_mynetworks
|
||||
check_recipient_access hash:/etc/postfix/recipient_restrictions
|
||||
permit_sasl_authenticated
|
||||
reject_unauth_destination
|
||||
reject_rbl_client
|
||||
zen.spamhaus.org=127.0.0.[2..11],
|
||||
check_sender_access hash:/etc/postfix/sender_checks
|
||||
check_policy_service unix:private/policy-spf
|
||||
reject_unknown_sender_domain
|
||||
warn_if_reject reject_unverified_sender
|
||||
|
||||
smtpd_sender_restrictions =
|
||||
permit_mynetworks
|
||||
reject_unknown_sender_domain
|
||||
|
||||
# Added check_sender_access to block all spoofed root@ketrenos.com email sends
|
||||
smtpd_relay_restrictions =
|
||||
permit_mynetworks
|
||||
check_sender_access hash:/etc/postfix/sender_restrictions
|
||||
check_recipient_access hash:/etc/postfix/recipient_restrictions
|
||||
permit_sasl_authenticated
|
||||
reject_unauth_destination
|
||||
milter_connect_macros = i b j _ {daemon_name} {if_name} {client_addr}
|
||||
# https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy
|
||||
milter_protocol = 2
|
||||
milter_default_action = accept
|
||||
smtpd_milters = unix:/milter-greylist/milter-greylist.sock, local:opendkim/opendkim.sock
|
||||
#smtpd_milters = unix:/milter-greylist/milter-greylist.sock
|
||||
non_smtpd_milters = $smtpd_milters milter_default_action = accept
|
||||
smtpd_use_tls = yes
|
||||
smtp_use_tls = no
|
||||
policy-spf_time_limit = 3600s
|
684
config/mail/etc/postfix/main.cf.proto
Normal file
684
config/mail/etc/postfix/main.cf.proto
Normal file
@ -0,0 +1,684 @@
|
||||
# Global Postfix configuration file. This file lists only a subset
|
||||
# of all parameters. For the syntax, and for a complete parameter
|
||||
# list, see the postconf(5) manual page (command: "man 5 postconf").
|
||||
#
|
||||
# For common configuration examples, see BASIC_CONFIGURATION_README
|
||||
# and STANDARD_CONFIGURATION_README. To find these documents, use
|
||||
# the command "postconf html_directory readme_directory", or go to
|
||||
# http://www.postfix.org/BASIC_CONFIGURATION_README.html etc.
|
||||
#
|
||||
# For best results, change no more than 2-3 parameters at a time,
|
||||
# and test if Postfix still works after every change.
|
||||
|
||||
# COMPATIBILITY
|
||||
#
|
||||
# The compatibility_level determines what default settings Postfix
|
||||
# will use for main.cf and master.cf settings. These defaults will
|
||||
# change over time.
|
||||
#
|
||||
# To avoid breaking things, Postfix will use backwards-compatible
|
||||
# default settings and log where it uses those old backwards-compatible
|
||||
# default settings, until the system administrator has determined
|
||||
# if any backwards-compatible default settings need to be made
|
||||
# permanent in main.cf or master.cf.
|
||||
#
|
||||
# When this review is complete, update the compatibility_level setting
|
||||
# below as recommended in the RELEASE_NOTES file.
|
||||
#
|
||||
# The level below is what should be used with new (not upgrade) installs.
|
||||
#
|
||||
compatibility_level = 2
|
||||
|
||||
# SOFT BOUNCE
|
||||
#
|
||||
# The soft_bounce parameter provides a limited safety net for
|
||||
# testing. When soft_bounce is enabled, mail will remain queued that
|
||||
# would otherwise bounce. This parameter disables locally-generated
|
||||
# bounces, and prevents the SMTP server from rejecting mail permanently
|
||||
# (by changing 5xx replies into 4xx replies). However, soft_bounce
|
||||
# is no cure for address rewriting mistakes or mail routing mistakes.
|
||||
#
|
||||
#soft_bounce = no
|
||||
|
||||
# LOCAL PATHNAME INFORMATION
|
||||
#
|
||||
# The queue_directory specifies the location of the Postfix queue.
|
||||
# This is also the root directory of Postfix daemons that run chrooted.
|
||||
# See the files in examples/chroot-setup for setting up Postfix chroot
|
||||
# environments on different UNIX systems.
|
||||
#
|
||||
#queue_directory = /var/spool/postfix
|
||||
|
||||
# The command_directory parameter specifies the location of all
|
||||
# postXXX commands.
|
||||
#
|
||||
command_directory = /usr/sbin
|
||||
|
||||
# The daemon_directory parameter specifies the location of all Postfix
|
||||
# daemon programs (i.e. programs listed in the master.cf file). This
|
||||
# directory must be owned by root.
|
||||
#
|
||||
daemon_directory = /usr/lib/postfix/sbin
|
||||
|
||||
# The data_directory parameter specifies the location of Postfix-writable
|
||||
# data files (caches, random numbers). This directory must be owned
|
||||
# by the mail_owner account (see below).
|
||||
#
|
||||
data_directory = /var/lib/postfix
|
||||
|
||||
# QUEUE AND PROCESS OWNERSHIP
|
||||
#
|
||||
# The mail_owner parameter specifies the owner of the Postfix queue
|
||||
# and of most Postfix daemon processes. Specify the name of a user
|
||||
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
|
||||
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In
|
||||
# particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
|
||||
# USER.
|
||||
#
|
||||
#mail_owner = postfix
|
||||
|
||||
# The default_privs parameter specifies the default rights used by
|
||||
# the local delivery agent for delivery to external file or command.
|
||||
# These rights are used in the absence of a recipient user context.
|
||||
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
|
||||
#
|
||||
#default_privs = nobody
|
||||
|
||||
# INTERNET HOST AND DOMAIN NAMES
|
||||
#
|
||||
# The myhostname parameter specifies the internet hostname of this
|
||||
# mail system. The default is to use the fully-qualified domain name
|
||||
# from gethostname(). $myhostname is used as a default value for many
|
||||
# other configuration parameters.
|
||||
#
|
||||
#myhostname = host.domain.tld
|
||||
#myhostname = virtual.domain.tld
|
||||
|
||||
# The mydomain parameter specifies the local internet domain name.
|
||||
# The default is to use $myhostname minus the first component.
|
||||
# $mydomain is used as a default value for many other configuration
|
||||
# parameters.
|
||||
#
|
||||
#mydomain = domain.tld
|
||||
|
||||
# SENDING MAIL
|
||||
#
|
||||
# The myorigin parameter specifies the domain that locally-posted
|
||||
# mail appears to come from. The default is to append $myhostname,
|
||||
# which is fine for small sites. If you run a domain with multiple
|
||||
# machines, you should (1) change this to $mydomain and (2) set up
|
||||
# a domain-wide alias database that aliases each user to
|
||||
# user@that.users.mailhost.
|
||||
#
|
||||
# For the sake of consistency between sender and recipient addresses,
|
||||
# myorigin also specifies the default domain name that is appended
|
||||
# to recipient addresses that have no @domain part.
|
||||
#
|
||||
# Debian GNU/Linux specific: Specifying a file name will cause the
|
||||
# first line of that file to be used as the name. The Debian default
|
||||
# is /etc/mailname.
|
||||
#
|
||||
#myorigin = /etc/mailname
|
||||
#myorigin = $myhostname
|
||||
#myorigin = $mydomain
|
||||
|
||||
# RECEIVING MAIL
|
||||
|
||||
# The inet_interfaces parameter specifies the network interface
|
||||
# addresses that this mail system receives mail on. By default,
|
||||
# the software claims all active interfaces on the machine. The
|
||||
# parameter also controls delivery of mail to user@[ip.address].
|
||||
#
|
||||
# See also the proxy_interfaces parameter, for network addresses that
|
||||
# are forwarded to us via a proxy or network address translator.
|
||||
#
|
||||
# Note: you need to stop/start Postfix when this parameter changes.
|
||||
#
|
||||
#inet_interfaces = all
|
||||
#inet_interfaces = $myhostname
|
||||
#inet_interfaces = $myhostname, localhost
|
||||
|
||||
# The proxy_interfaces parameter specifies the network interface
|
||||
# addresses that this mail system receives mail on by way of a
|
||||
# proxy or network address translation unit. This setting extends
|
||||
# the address list specified with the inet_interfaces parameter.
|
||||
#
|
||||
# You must specify your proxy/NAT addresses when your system is a
|
||||
# backup MX host for other domains, otherwise mail delivery loops
|
||||
# will happen when the primary MX host is down.
|
||||
#
|
||||
#proxy_interfaces =
|
||||
#proxy_interfaces = 1.2.3.4
|
||||
|
||||
# The mydestination parameter specifies the list of domains that this
|
||||
# machine considers itself the final destination for.
|
||||
#
|
||||
# These domains are routed to the delivery agent specified with the
|
||||
# local_transport parameter setting. By default, that is the UNIX
|
||||
# compatible delivery agent that lookups all recipients in /etc/passwd
|
||||
# and /etc/aliases or their equivalent.
|
||||
#
|
||||
# The default is $myhostname + localhost.$mydomain + localhost. On
|
||||
# a mail domain gateway, you should also include $mydomain.
|
||||
#
|
||||
# Do not specify the names of virtual domains - those domains are
|
||||
# specified elsewhere (see VIRTUAL_README).
|
||||
#
|
||||
# Do not specify the names of domains that this machine is backup MX
|
||||
# host for. Specify those names via the relay_domains settings for
|
||||
# the SMTP server, or use permit_mx_backup if you are lazy (see
|
||||
# STANDARD_CONFIGURATION_README).
|
||||
#
|
||||
# The local machine is always the final destination for mail addressed
|
||||
# to user@[the.net.work.address] of an interface that the mail system
|
||||
# receives mail on (see the inet_interfaces parameter).
|
||||
#
|
||||
# Specify a list of host or domain names, /file/name or type:table
|
||||
# patterns, separated by commas and/or whitespace. A /file/name
|
||||
# pattern is replaced by its contents; a type:table is matched when
|
||||
# a name matches a lookup key (the right-hand side is ignored).
|
||||
# Continue long lines by starting the next line with whitespace.
|
||||
#
|
||||
# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
|
||||
#
|
||||
#mydestination = $myhostname, localhost.$mydomain, localhost
|
||||
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
|
||||
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
|
||||
# mail.$mydomain, www.$mydomain, ftp.$mydomain
|
||||
|
||||
# REJECTING MAIL FOR UNKNOWN LOCAL USERS
|
||||
#
|
||||
# The local_recipient_maps parameter specifies optional lookup tables
|
||||
# with all names or addresses of users that are local with respect
|
||||
# to $mydestination, $inet_interfaces or $proxy_interfaces.
|
||||
#
|
||||
# If this parameter is defined, then the SMTP server will reject
|
||||
# mail for unknown local users. This parameter is defined by default.
|
||||
#
|
||||
# To turn off local recipient checking in the SMTP server, specify
|
||||
# local_recipient_maps = (i.e. empty).
|
||||
#
|
||||
# The default setting assumes that you use the default Postfix local
|
||||
# delivery agent for local delivery. You need to update the
|
||||
# local_recipient_maps setting if:
|
||||
#
|
||||
# - You define $mydestination domain recipients in files other than
|
||||
# /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
|
||||
# For example, you define $mydestination domain recipients in
|
||||
# the $virtual_mailbox_maps files.
|
||||
#
|
||||
# - You redefine the local delivery agent in master.cf.
|
||||
#
|
||||
# - You redefine the "local_transport" setting in main.cf.
|
||||
#
|
||||
# - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
|
||||
# feature of the Postfix local delivery agent (see local(8)).
|
||||
#
|
||||
# Details are described in the LOCAL_RECIPIENT_README file.
|
||||
#
|
||||
# Beware: if the Postfix SMTP server runs chrooted, you probably have
|
||||
# to access the passwd file via the proxymap service, in order to
|
||||
# overcome chroot restrictions. The alternative, having a copy of
|
||||
# the system passwd file in the chroot jail is just not practical.
|
||||
#
|
||||
# The right-hand side of the lookup tables is conveniently ignored.
|
||||
# In the left-hand side, specify a bare username, an @domain.tld
|
||||
# wild-card, or specify a user@domain.tld address.
|
||||
#
|
||||
#local_recipient_maps = unix:passwd.byname $alias_maps
|
||||
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
|
||||
#local_recipient_maps =
|
||||
|
||||
# The unknown_local_recipient_reject_code specifies the SMTP server
|
||||
# response code when a recipient domain matches $mydestination or
|
||||
# ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
|
||||
# and the recipient address or address local-part is not found.
|
||||
#
|
||||
# The default setting is 550 (reject mail) but it is safer to start
|
||||
# with 450 (try again later) until you are certain that your
|
||||
# local_recipient_maps settings are OK.
|
||||
#
|
||||
unknown_local_recipient_reject_code = 550
|
||||
|
||||
# TRUST AND RELAY CONTROL
|
||||
|
||||
# The mynetworks parameter specifies the list of "trusted" SMTP
|
||||
# clients that have more privileges than "strangers".
|
||||
#
|
||||
# In particular, "trusted" SMTP clients are allowed to relay mail
|
||||
# through Postfix. See the smtpd_recipient_restrictions parameter
|
||||
# in postconf(5).
|
||||
#
|
||||
# You can specify the list of "trusted" network addresses by hand
|
||||
# or you can let Postfix do it for you (which is the default).
|
||||
#
|
||||
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP
|
||||
# clients in the same IP subnetworks as the local machine.
|
||||
# On Linux, this does works correctly only with interfaces specified
|
||||
# with the "ifconfig" command.
|
||||
#
|
||||
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
|
||||
# clients in the same IP class A/B/C networks as the local machine.
|
||||
# Don't do this with a dialup site - it would cause Postfix to "trust"
|
||||
# your entire provider's network. Instead, specify an explicit
|
||||
# mynetworks list by hand, as described below.
|
||||
#
|
||||
# Specify "mynetworks_style = host" when Postfix should "trust"
|
||||
# only the local machine.
|
||||
#
|
||||
#mynetworks_style = class
|
||||
#mynetworks_style = subnet
|
||||
#mynetworks_style = host
|
||||
|
||||
# Alternatively, you can specify the mynetworks list by hand, in
|
||||
# which case Postfix ignores the mynetworks_style setting.
|
||||
#
|
||||
# Specify an explicit list of network/netmask patterns, where the
|
||||
# mask specifies the number of bits in the network part of a host
|
||||
# address.
|
||||
#
|
||||
# You can also specify the absolute pathname of a pattern file instead
|
||||
# of listing the patterns here. Specify type:table for table-based lookups
|
||||
# (the value on the table right-hand side is not used).
|
||||
#
|
||||
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
|
||||
#mynetworks = $config_directory/mynetworks
|
||||
#mynetworks = hash:/etc/postfix/network_table
|
||||
mynetworks = 127.0.0.0/8
|
||||
|
||||
# The relay_domains parameter restricts what destinations this system will
|
||||
# relay mail to. See the smtpd_recipient_restrictions description in
|
||||
# postconf(5) for detailed information.
|
||||
#
|
||||
# By default, Postfix relays mail
|
||||
# - from "trusted" clients (IP address matches $mynetworks) to any destination,
|
||||
# - from "untrusted" clients to destinations that match $relay_domains or
|
||||
# subdomains thereof, except addresses with sender-specified routing.
|
||||
# The default relay_domains value is $mydestination.
|
||||
#
|
||||
# In addition to the above, the Postfix SMTP server by default accepts mail
|
||||
# that Postfix is final destination for:
|
||||
# - destinations that match $inet_interfaces or $proxy_interfaces,
|
||||
# - destinations that match $mydestination
|
||||
# - destinations that match $virtual_alias_domains,
|
||||
# - destinations that match $virtual_mailbox_domains.
|
||||
# These destinations do not need to be listed in $relay_domains.
|
||||
#
|
||||
# Specify a list of hosts or domains, /file/name patterns or type:name
|
||||
# lookup tables, separated by commas and/or whitespace. Continue
|
||||
# long lines by starting the next line with whitespace. A file name
|
||||
# is replaced by its contents; a type:name table is matched when a
|
||||
# (parent) domain appears as lookup key.
|
||||
#
|
||||
# NOTE: Postfix will not automatically forward mail for domains that
|
||||
# list this system as their primary or backup MX host. See the
|
||||
# permit_mx_backup restriction description in postconf(5).
|
||||
#
|
||||
#relay_domains = $mydestination
|
||||
|
||||
# INTERNET OR INTRANET
|
||||
|
||||
# The relayhost parameter specifies the default host to send mail to
|
||||
# when no entry is matched in the optional transport(5) table. When
|
||||
# no relayhost is given, mail is routed directly to the destination.
|
||||
#
|
||||
# On an intranet, specify the organizational domain name. If your
|
||||
# internal DNS uses no MX records, specify the name of the intranet
|
||||
# gateway host instead.
|
||||
#
|
||||
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
|
||||
# [address] or [address]:port; the form [host] turns off MX lookups.
|
||||
#
|
||||
# If you're connected via UUCP, see also the default_transport parameter.
|
||||
#
|
||||
#relayhost = $mydomain
|
||||
#relayhost = [gateway.my.domain]
|
||||
#relayhost = [mailserver.isp.tld]
|
||||
#relayhost = uucphost
|
||||
#relayhost = [an.ip.add.ress]
|
||||
|
||||
# REJECTING UNKNOWN RELAY USERS
|
||||
#
|
||||
# The relay_recipient_maps parameter specifies optional lookup tables
|
||||
# with all addresses in the domains that match $relay_domains.
|
||||
#
|
||||
# If this parameter is defined, then the SMTP server will reject
|
||||
# mail for unknown relay users. This feature is off by default.
|
||||
#
|
||||
# The right-hand side of the lookup tables is conveniently ignored.
|
||||
# In the left-hand side, specify an @domain.tld wild-card, or specify
|
||||
# a user@domain.tld address.
|
||||
#
|
||||
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
|
||||
|
||||
# INPUT RATE CONTROL
|
||||
#
|
||||
# The in_flow_delay configuration parameter implements mail input
|
||||
# flow control. This feature is turned on by default, although it
|
||||
# still needs further development (it's disabled on SCO UNIX due
|
||||
# to an SCO bug).
|
||||
#
|
||||
# A Postfix process will pause for $in_flow_delay seconds before
|
||||
# accepting a new message, when the message arrival rate exceeds the
|
||||
# message delivery rate. With the default 100 SMTP server process
|
||||
# limit, this limits the mail inflow to 100 messages a second more
|
||||
# than the number of messages delivered per second.
|
||||
#
|
||||
# Specify 0 to disable the feature. Valid delays are 0..10.
|
||||
#
|
||||
#in_flow_delay = 1s
|
||||
|
||||
# ADDRESS REWRITING
|
||||
#
|
||||
# The ADDRESS_REWRITING_README document gives information about
|
||||
# address masquerading or other forms of address rewriting including
|
||||
# username->Firstname.Lastname mapping.
|
||||
|
||||
# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
|
||||
#
|
||||
# The VIRTUAL_README document gives information about the many forms
|
||||
# of domain hosting that Postfix supports.
|
||||
|
||||
# "USER HAS MOVED" BOUNCE MESSAGES
|
||||
#
|
||||
# See the discussion in the ADDRESS_REWRITING_README document.
|
||||
|
||||
# TRANSPORT MAP
|
||||
#
|
||||
# See the discussion in the ADDRESS_REWRITING_README document.
|
||||
|
||||
# ALIAS DATABASE
|
||||
#
|
||||
# The alias_maps parameter specifies the list of alias databases used
|
||||
# by the local delivery agent. The default list is system dependent.
|
||||
#
|
||||
# On systems with NIS, the default is to search the local alias
|
||||
# database, then the NIS alias database. See aliases(5) for syntax
|
||||
# details.
|
||||
#
|
||||
# If you change the alias database, run "postalias /etc/aliases" (or
|
||||
# wherever your system stores the mail alias file), or simply run
|
||||
# "newaliases" to build the necessary DBM or DB file.
|
||||
#
|
||||
# It will take a minute or so before changes become visible. Use
|
||||
# "postfix reload" to eliminate the delay.
|
||||
#
|
||||
#alias_maps = dbm:/etc/aliases
|
||||
#alias_maps = hash:/etc/aliases
|
||||
#alias_maps = hash:/etc/aliases, nis:mail.aliases
|
||||
#alias_maps = netinfo:/aliases
|
||||
|
||||
# The alias_database parameter specifies the alias database(s) that
|
||||
# are built with "newaliases" or "sendmail -bi". This is a separate
|
||||
# configuration parameter, because alias_maps (see above) may specify
|
||||
# tables that are not necessarily all under control by Postfix.
|
||||
#
|
||||
#alias_database = dbm:/etc/aliases
|
||||
#alias_database = dbm:/etc/mail/aliases
|
||||
#alias_database = hash:/etc/aliases
|
||||
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
|
||||
|
||||
# ADDRESS EXTENSIONS (e.g., user+foo)
|
||||
#
|
||||
# The recipient_delimiter parameter specifies the separator between
|
||||
# user names and address extensions (user+foo). See canonical(5),
|
||||
# local(8), relocated(5) and virtual(5) for the effects this has on
|
||||
# aliases, canonical, virtual, relocated and .forward file lookups.
|
||||
# Basically, the software tries user+foo and .forward+foo before
|
||||
# trying user and .forward.
|
||||
#
|
||||
#recipient_delimiter = +
|
||||
|
||||
# DELIVERY TO MAILBOX
|
||||
#
|
||||
# The home_mailbox parameter specifies the optional pathname of a
|
||||
# mailbox file relative to a user's home directory. The default
|
||||
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
|
||||
# "Maildir/" for qmail-style delivery (the / is required).
|
||||
#
|
||||
#home_mailbox = Mailbox
|
||||
#home_mailbox = Maildir/
|
||||
|
||||
# The mail_spool_directory parameter specifies the directory where
|
||||
# UNIX-style mailboxes are kept. The default setting depends on the
|
||||
# system type.
|
||||
#
|
||||
#mail_spool_directory = /var/mail
|
||||
#mail_spool_directory = /var/spool/mail
|
||||
|
||||
# The mailbox_command parameter specifies the optional external
|
||||
# command to use instead of mailbox delivery. The command is run as
|
||||
# the recipient with proper HOME, SHELL and LOGNAME environment settings.
|
||||
# Exception: delivery for root is done as $default_user.
|
||||
#
|
||||
# Other environment variables of interest: USER (recipient username),
|
||||
# EXTENSION (address extension), DOMAIN (domain part of address),
|
||||
# and LOCAL (the address localpart).
|
||||
#
|
||||
# Unlike other Postfix configuration parameters, the mailbox_command
|
||||
# parameter is not subjected to $parameter substitutions. This is to
|
||||
# make it easier to specify shell syntax (see example below).
|
||||
#
|
||||
# Avoid shell meta characters because they will force Postfix to run
|
||||
# an expensive shell process. Procmail alone is expensive enough.
|
||||
#
|
||||
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
|
||||
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
|
||||
#
|
||||
#mailbox_command = /usr/bin/procmail
|
||||
#mailbox_command = /usr/bin/procmail -a "$EXTENSION"
|
||||
|
||||
# The mailbox_transport specifies the optional transport in master.cf
|
||||
# to use after processing aliases and .forward files. This parameter
|
||||
# has precedence over the mailbox_command, fallback_transport and
|
||||
# luser_relay parameters.
|
||||
#
|
||||
# Specify a string of the form transport:nexthop, where transport is
|
||||
# the name of a mail delivery transport defined in master.cf. The
|
||||
# :nexthop part is optional. For more details see the sample transport
|
||||
# configuration file.
|
||||
#
|
||||
# NOTE: if you use this feature for accounts not in the UNIX password
|
||||
# file, then you must update the "local_recipient_maps" setting in
|
||||
# the main.cf file, otherwise the SMTP server will reject mail for
|
||||
# non-UNIX accounts with "User unknown in local recipient table".
|
||||
#
|
||||
# Cyrus IMAP over LMTP. Specify ``lmtpunix cmd="lmtpd"
|
||||
# listen="/var/imap/socket/lmtp" prefork=0'' in cyrus.conf.
|
||||
#mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
|
||||
#
|
||||
# Cyrus IMAP via command line. Uncomment the "cyrus...pipe" and
|
||||
# subsequent line in master.cf.
|
||||
#mailbox_transport = cyrus
|
||||
|
||||
# The fallback_transport specifies the optional transport in master.cf
|
||||
# to use for recipients that are not found in the UNIX passwd database.
|
||||
# This parameter has precedence over the luser_relay parameter.
|
||||
#
|
||||
# Specify a string of the form transport:nexthop, where transport is
|
||||
# the name of a mail delivery transport defined in master.cf. The
|
||||
# :nexthop part is optional. For more details see the sample transport
|
||||
# configuration file.
|
||||
#
|
||||
# NOTE: if you use this feature for accounts not in the UNIX password
|
||||
# file, then you must update the "local_recipient_maps" setting in
|
||||
# the main.cf file, otherwise the SMTP server will reject mail for
|
||||
# non-UNIX accounts with "User unknown in local recipient table".
|
||||
#
|
||||
#fallback_transport = lmtp:unix:/file/name
|
||||
#fallback_transport = cyrus
|
||||
#fallback_transport =
|
||||
|
||||
# The luser_relay parameter specifies an optional destination address
|
||||
# for unknown recipients. By default, mail for unknown@$mydestination,
|
||||
# unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned
|
||||
# as undeliverable.
|
||||
#
|
||||
# The following expansions are done on luser_relay: $user (recipient
|
||||
# username), $shell (recipient shell), $home (recipient home directory),
|
||||
# $recipient (full recipient address), $extension (recipient address
|
||||
# extension), $domain (recipient domain), $local (entire recipient
|
||||
# localpart), $recipient_delimiter. Specify ${name?value} or
|
||||
# ${name:value} to expand value only when $name does (does not) exist.
|
||||
#
|
||||
# luser_relay works only for the default Postfix local delivery agent.
|
||||
#
|
||||
# NOTE: if you use this feature for accounts not in the UNIX password
|
||||
# file, then you must specify "local_recipient_maps =" (i.e. empty) in
|
||||
# the main.cf file, otherwise the SMTP server will reject mail for
|
||||
# non-UNIX accounts with "User unknown in local recipient table".
|
||||
#
|
||||
#luser_relay = $user@other.host
|
||||
#luser_relay = $local@other.host
|
||||
#luser_relay = admin+$local
|
||||
|
||||
# JUNK MAIL CONTROLS
|
||||
#
|
||||
# The controls listed here are only a very small subset. The file
|
||||
# SMTPD_ACCESS_README provides an overview.
|
||||
|
||||
# The header_checks parameter specifies an optional table with patterns
|
||||
# that each logical message header is matched against, including
|
||||
# headers that span multiple physical lines.
|
||||
#
|
||||
# By default, these patterns also apply to MIME headers and to the
|
||||
# headers of attached messages. With older Postfix versions, MIME and
|
||||
# attached message headers were treated as body text.
|
||||
#
|
||||
# For details, see "man header_checks".
|
||||
#
|
||||
#header_checks = regexp:/etc/postfix/header_checks
|
||||
|
||||
# FAST ETRN SERVICE
|
||||
#
|
||||
# Postfix maintains per-destination logfiles with information about
|
||||
# deferred mail, so that mail can be flushed quickly with the SMTP
|
||||
# "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
|
||||
# See the ETRN_README document for a detailed description.
|
||||
#
|
||||
# The fast_flush_domains parameter controls what destinations are
|
||||
# eligible for this service. By default, they are all domains that
|
||||
# this server is willing to relay mail to.
|
||||
#
|
||||
#fast_flush_domains = $relay_domains
|
||||
|
||||
# SHOW SOFTWARE VERSION OR NOT
|
||||
#
|
||||
# The smtpd_banner parameter specifies the text that follows the 220
|
||||
# code in the SMTP server's greeting banner. Some people like to see
|
||||
# the mail version advertised. By default, Postfix shows no version.
|
||||
#
|
||||
# You MUST specify $myhostname at the start of the text. That is an
|
||||
# RFC requirement. Postfix itself does not care.
|
||||
#
|
||||
#smtpd_banner = $myhostname ESMTP $mail_name
|
||||
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
|
||||
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
|
||||
|
||||
|
||||
# PARALLEL DELIVERY TO THE SAME DESTINATION
|
||||
#
|
||||
# How many parallel deliveries to the same user or domain? With local
|
||||
# delivery, it does not make sense to do massively parallel delivery
|
||||
# to the same user, because mailbox updates must happen sequentially,
|
||||
# and expensive pipelines in .forward files can cause disasters when
|
||||
# too many are run at the same time. With SMTP deliveries, 10
|
||||
# simultaneous connections to the same domain could be sufficient to
|
||||
# raise eyebrows.
|
||||
#
|
||||
# Each message delivery transport has its XXX_destination_concurrency_limit
|
||||
# parameter. The default is $default_destination_concurrency_limit for
|
||||
# most delivery transports. For the local delivery agent the default is 2.
|
||||
|
||||
#local_destination_concurrency_limit = 2
|
||||
#default_destination_concurrency_limit = 20
|
||||
|
||||
# DEBUGGING CONTROL
|
||||
#
|
||||
# The debug_peer_level parameter specifies the increment in verbose
|
||||
# logging level when an SMTP client or server host name or address
|
||||
# matches a pattern in the debug_peer_list parameter.
|
||||
#
|
||||
#debug_peer_level = 2
|
||||
|
||||
# The debug_peer_list parameter specifies an optional list of domain
|
||||
# or network patterns, /file/name patterns or type:name tables. When
|
||||
# an SMTP client or server host name or address matches a pattern,
|
||||
# increase the verbose logging level by the amount specified in the
|
||||
# debug_peer_level parameter.
|
||||
#
|
||||
#debug_peer_list = 127.0.0.1
|
||||
#debug_peer_list = some.domain
|
||||
|
||||
# The debugger_command specifies the external command that is executed
|
||||
# when a Postfix daemon program is run with the -D option.
|
||||
#
|
||||
# Use "command .. & sleep 5" so that the debugger can attach before
|
||||
# the process marches on. If you use an X-based debugger, be sure to
|
||||
# set up your XAUTHORITY environment variable before starting Postfix.
|
||||
#
|
||||
debugger_command =
|
||||
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
|
||||
ddd $daemon_directory/$process_name $process_id & sleep 5
|
||||
|
||||
# If you can't use X, use this to capture the call stack when a
|
||||
# daemon crashes. The result is in a file in the configuration
|
||||
# directory, and is named after the process name and the process ID.
|
||||
#
|
||||
# debugger_command =
|
||||
# PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
|
||||
# echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
|
||||
# >$config_directory/$process_name.$process_id.log & sleep 5
|
||||
#
|
||||
# Another possibility is to run gdb under a detached screen session.
|
||||
# To attach to the screen sesssion, su root and run "screen -r
|
||||
# <id_string>" where <id_string> uniquely matches one of the detached
|
||||
# sessions (from "screen -list").
|
||||
#
|
||||
# debugger_command =
|
||||
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
|
||||
# -dmS $process_name gdb $daemon_directory/$process_name
|
||||
# $process_id & sleep 1
|
||||
|
||||
# INSTALL-TIME CONFIGURATION INFORMATION
|
||||
#
|
||||
# The following parameters are used when installing a new Postfix version.
|
||||
#
|
||||
# sendmail_path: The full pathname of the Postfix sendmail command.
|
||||
# This is the Sendmail-compatible mail posting interface.
|
||||
#
|
||||
sendmail_path =
|
||||
|
||||
# newaliases_path: The full pathname of the Postfix newaliases command.
|
||||
# This is the Sendmail-compatible command to build alias databases.
|
||||
#
|
||||
newaliases_path =
|
||||
|
||||
# mailq_path: The full pathname of the Postfix mailq command. This
|
||||
# is the Sendmail-compatible mail queue listing command.
|
||||
#
|
||||
mailq_path =
|
||||
|
||||
# setgid_group: The group for mail submission and queue management
|
||||
# commands. This must be a group name with a numerical group ID that
|
||||
# is not shared with other accounts, not even with the Postfix account.
|
||||
#
|
||||
setgid_group =
|
||||
|
||||
# html_directory: The location of the Postfix HTML documentation.
|
||||
#
|
||||
html_directory =
|
||||
|
||||
# manpage_directory: The location of the Postfix on-line manual pages.
|
||||
#
|
||||
manpage_directory =
|
||||
|
||||
# sample_directory: The location of the Postfix sample configuration files.
|
||||
# This parameter is obsolete as of Postfix 2.1.
|
||||
#
|
||||
sample_directory =
|
||||
|
||||
# readme_directory: The location of the Postfix README files.
|
||||
#
|
||||
readme_directory =
|
||||
inet_protocols = ipv4
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user