Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
salt-state
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FFFFM
salt-state
Commits
776d7d65
Commit
776d7d65
authored
5 years ago
by
Marvin Gaube
Browse files
Options
Downloads
Patches
Plain Diff
Revert "dovecot: Add Basic configuration"
This reverts commit
cbabe97f
parent
cbabe97f
No related branches found
No related tags found
2 merge requests
!473
Revert "dovecot: Add Basic configuration"
,
!470
dovecot: install more
Pipeline
#22379
passed
5 years ago
Stage: highstate
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dovecot/dovecot.sls
+0
-32
0 additions, 32 deletions
dovecot/dovecot.sls
dovecot/files/dovecot.conf.j2
+0
-147
0 additions, 147 deletions
dovecot/files/dovecot.conf.j2
with
0 additions
and
179 deletions
dovecot/dovecot.sls
+
0
−
32
View file @
776d7d65
...
...
@@ -39,35 +39,3 @@ dovecot.service:
service.running:
- enable: true
- reload: True
- watch:
- file: /etc/dovecot/*
/etc/dovecot:
file.directory:
- user: root
- group: root
- clean: True
- require:
- pkg: dovecot
/etc/dovecot/dovecot.conf:
file.managed:
- source: salt://dovecot/files/dovecot.conf.j2
- template: jinja
- user: root
- group: root
- mode: 644
- require:
- file: /etc/dovecot
vmail_group:
group.present:
- name: vmail
vmail_user:
user.present:
- name: vmail
- gid_from_name: True
- home: /var/vmail
- require:
- group: vmail_group
This diff is collapsed.
Click to expand it.
dovecot/files/dovecot.conf.j2
deleted
100644 → 0
+
0
−
147
View file @
cbabe97f
###
### Activate Protocols and Plugins
#############################
protocols = imap lmtp sieve
mail_plugins = notify replication
###
### TLS Config
#######################
ssl = required
ssl_cert = </etc/ToDo/fullchain.pem
ssl_key = </etc/ToDo/privkey.pem
ssl_cipher_list = EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA
ssl_prefer_server_ciphers = yes
###
### Dovecot services
################################
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
service lmtp {
inet_listener lmtp {
port = 24
}
}
###
### Protocol settings
#############################
protocol imap {
mail_plugins = $mail_plugins quota imap_quota imap_sieve
mail_max_userip_connections = 20
imap_idle_notify_interval = 29 mins
}
protocol lmtp {
postmaster_address = postmaster@wifi-frankfurt.de
mail_plugins = $mail_plugins sieve
}
###
### Client authentication
#############################
disable_plaintext_auth = yes
auth_mechanisms = plain login
passdb {
### ToDo
}
userdb {
driver = sql
### ToDo
}
###
### Mail location
#######################
mail_uid = vmail
mail_gid = vmail
mail_privileged_group = vmail
mail_home = /var/vmail/mailboxes/%d/%n
mail_location = maildir:~/mail:LAYOUT=fs
###
### Mailbox configuration
########################################
namespace inbox {
separator = /
inbox = yes
mailbox Spam {
auto = subscribe
special_use = \Junk
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
}
###
### Mail plugins
############################
plugin {
sieve_plugins = sieve_imapsieve sieve_extprograms
sieve_before = /var/vmail/sieve/global/spam-global.sieve
sieve = file:/var/vmail/sieve/%d/%n/scripts;active=/var/vmail/sieve/%d/%n/active-script.sieve
###
### Spam learning
###
# From elsewhere to Spam folder
imapsieve_mailbox1_name = Spam
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_before = file:/var/vmail/sieve/global/learn-spam.sieve
# From Spam folder to elsewhere
imapsieve_mailbox2_name = *
imapsieve_mailbox2_from = Spam
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_before = file:/var/vmail/sieve/global/learn-ham.sieve
sieve_pipe_bin_dir = /usr/bin
sieve_global_extensions = +vnd.dovecot.pipe
quota = maildir:User quota
quota_exceeded_message = Benutzer %u hat das Speichervolumen überschritten. / User %u has exhausted allowed storage space.
}
### ToDo: Replication
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment