Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tom Niget
slapos
Commits
9fe7ed3d
Commit
9fe7ed3d
authored
Feb 04, 2025
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch userdb and passdb to passwd file
parent
cf3d6644
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
11 deletions
+42
-11
software/mail-server/buildout.hash.cfg
software/mail-server/buildout.hash.cfg
+7
-4
software/mail-server/dovecot-passwd.in
software/mail-server/dovecot-passwd.in
+3
-0
software/mail-server/dovecot.jinja2.conf
software/mail-server/dovecot.jinja2.conf
+16
-5
software/mail-server/instance-default.cfg.in
software/mail-server/instance-default.cfg.in
+10
-0
software/mail-server/instance.cfg.in
software/mail-server/instance.cfg.in
+1
-0
software/mail-server/postfix_main.jinja2.cf
software/mail-server/postfix_main.jinja2.cf
+2
-2
software/mail-server/software.cfg
software/mail-server/software.cfg
+3
-0
No files found.
software/mail-server/buildout.hash.cfg
View file @
9fe7ed3d
...
@@ -15,22 +15,25 @@
...
@@ -15,22 +15,25 @@
[template]
[template]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
bccd8d99888c3d4997443cae911eca79
md5sum =
1ec9f6416da41e12b84ec057ab5c38a2
[template-default]
[template-default]
_update_hash_filename_ = instance-default.cfg.in
_update_hash_filename_ = instance-default.cfg.in
md5sum =
9d9c45b5c5a00ceb1e4e62388864dbfb
md5sum =
554e9db2fd65dd1fe3b7bc2804bdfb6d
[dovecot.jinja2.conf]
[dovecot.jinja2.conf]
_update_hash_filename_ = dovecot.jinja2.conf
_update_hash_filename_ = dovecot.jinja2.conf
md5sum =
8ac35891bcb9d5d8d7cbb78034d45eb8
md5sum =
90a75496327cc0958eb3d1803644b615
[dovecot-sql.jinja2.conf.ext]
[dovecot-sql.jinja2.conf.ext]
md5sum = ab15900d44b38fdad528c6a73936fd26
md5sum = ab15900d44b38fdad528c6a73936fd26
[dovecot-passwd.in]
md5sum = c6a0fd2b03ca3e98c335a5ffd1dac353
[postfix_main.jinja2.cf]
[postfix_main.jinja2.cf]
_update_hash_filename_ = postfix_main.jinja2.cf
_update_hash_filename_ = postfix_main.jinja2.cf
md5sum =
29e7e65dd2926a5187dcd837fede1897
md5sum =
a7f1a55ef21cf198824f36a8f52d163a
[postfix_master.jinja2.cf]
[postfix_master.jinja2.cf]
_update_hash_filename_ = postfix_master.jinja2.cf
_update_hash_filename_ = postfix_master.jinja2.cf
md5sum = 7752a8b4af5c18dc404e0a862af89272
md5sum = 7752a8b4af5c18dc404e0a862af89272
...
...
software/mail-server/dovecot-passwd.in
0 → 100644
View file @
9fe7ed3d
tom@mail.localhost:MotDePasseEmail::
bob@mail.localhost:MotDePasseEmail::
alice@mailsr.zdimension.fr:MotDePasseEmail::
software/mail-server/dovecot.jinja2.conf
View file @
9fe7ed3d
...
@@ -80,12 +80,23 @@ namespace inbox {
...
@@ -80,12 +80,23 @@ namespace inbox {
ssl
=
no
ssl
=
no
passdb
{
#passdb {
driver
=
sql
# driver = sql
args
= {{
dovecot_sql
}}
# args = {{ dovecot_sql }}
#}
#userdb {
# driver = sql
# args = {{ dovecot_sql }}
#}
passdb
{
driver
=
passwd
-
file
args
=
scheme
=
PLAIN
username_format
=%
u
{{
dovecot_passwd
}}
}
}
userdb
{
userdb
{
driver
=
sql
driver
=
passwd
-
file
args
= {{
dovecot_sql
}}
args
=
username_format
=%
u
{{
dovecot_passwd
}}
default_fields
=
uid
={{
slap_configuration
[
'user-name'
] }}
gid
={{
slap_configuration
[
'user-name'
] }}
home
={{
directory
[
'home-dovecot'
] }}/%
d
/%
n
}
}
\ No newline at end of file
software/mail-server/instance-default.cfg.in
View file @
9fe7ed3d
...
@@ -108,6 +108,7 @@ url = {{ dovecot_conf_template }}
...
@@ -108,6 +108,7 @@ url = {{ dovecot_conf_template }}
output = ${directory:etc}/dovecot.conf
output = ${directory:etc}/dovecot.conf
extra-context =
extra-context =
key dovecot_sql dovecot-sql:output
key dovecot_sql dovecot-sql:output
key dovecot_passwd dovecot-passwd:output
raw postfix_auth ${directory:var-spool-postfix-private}/auth
raw postfix_auth ${directory:var-spool-postfix-private}/auth
raw postfix_dovecot_lmtp ${directory:var-spool-postfix-private}/dovecot-lmtp
raw postfix_dovecot_lmtp ${directory:var-spool-postfix-private}/dovecot-lmtp
...
@@ -122,6 +123,13 @@ extra-context =
...
@@ -122,6 +123,13 @@ extra-context =
raw postgresql_host ${postgresql:ipv4}
raw postgresql_host ${postgresql:ipv4}
raw postgresql_port ${postgresql:port}
raw postgresql_port ${postgresql:port}
[dovecot-passwd]
<= config-base
url = {{ dovecot_passwd }}
output = ${directory:etc}/dovecot-passwd
extra-context =
[userinfo]
[userinfo]
recipe = slapos.cookbook:userinfo
recipe = slapos.cookbook:userinfo
...
@@ -155,6 +163,7 @@ update-command = ${:command}
...
@@ -155,6 +163,7 @@ update-command = ${:command}
url = {{ postfix_main_template }}
url = {{ postfix_main_template }}
output = ${directory:etc-postfix}/main.cf
output = ${directory:etc-postfix}/main.cf
extra-context =
extra-context =
key dovecot_passwd dovecot-passwd:output
key vmailbox_file postfix-vmailbox:output
key vmailbox_file postfix-vmailbox:output
key virtual_file postfix-virtual:output
key virtual_file postfix-virtual:output
key bin_directory directory:bin
key bin_directory directory:bin
...
@@ -168,6 +177,7 @@ extra-context =
...
@@ -168,6 +177,7 @@ extra-context =
key setgid_group userinfo:gr-name
key setgid_group userinfo:gr-name
key ip_address slap-configuration:ipv6-random
key ip_address slap-configuration:ipv6-random
key mail_domain request-dns-entry:connection-domain
key mail_domain request-dns-entry:connection-domain
raw postfix_dovecot_lmtp ${directory:var-spool-postfix-private}/dovecot-lmtp
raw xz_utils_location {{ xz_utils_location }}
raw xz_utils_location {{ xz_utils_location }}
raw postfix_location {{ postfix_location }}
raw postfix_location {{ postfix_location }}
...
...
software/mail-server/instance.cfg.in
View file @
9fe7ed3d
...
@@ -34,6 +34,7 @@ filename = instance-default.cfg
...
@@ -34,6 +34,7 @@ filename = instance-default.cfg
extra-context =
extra-context =
raw dovecot_conf_template {{ dovecot_conf_template }}
raw dovecot_conf_template {{ dovecot_conf_template }}
raw dovecot_sql_template {{ dovecot_sql_template }}
raw dovecot_sql_template {{ dovecot_sql_template }}
raw dovecot_passwd {{ dovecot_passwd }}
raw dovecot_binary {{ dovecot_binary }}
raw dovecot_binary {{ dovecot_binary }}
raw postfix_main_template {{ postfix_main_template }}
raw postfix_main_template {{ postfix_main_template }}
raw postfix_master_template {{ postfix_master_template }}
raw postfix_master_template {{ postfix_master_template }}
...
...
software/mail-server/postfix_main.jinja2.cf
View file @
9fe7ed3d
...
@@ -23,9 +23,9 @@ virtual_mailbox_base = {{ vhosts_directory }}
...
@@ -23,9 +23,9 @@ virtual_mailbox_base = {{ vhosts_directory }}
virtual_minimum_uid = 100
virtual_minimum_uid = 100
virtual_uid_maps = static:1001
virtual_uid_maps = static:1001
virtual_gid_maps = static:1022
virtual_gid_maps = static:1022
virtual_mailbox_maps = p
gsql:{{ vmailbox_file
}}
virtual_mailbox_maps = p
asswd:{{ dovecot_passwd
}}
virtual_alias_maps = pgsql:{{ virtual_file }}
virtual_alias_maps = pgsql:{{ virtual_file }}
virtual_transport = lmtp:unix:
private/dovecot-lmtp
virtual_transport = lmtp:unix:
{{ postfix_dovecot_lmtp }}
inet_interfaces = all
inet_interfaces = all
inet_protocols = all
inet_protocols = all
...
...
software/mail-server/software.cfg
View file @
9fe7ed3d
...
@@ -88,6 +88,7 @@ context =
...
@@ -88,6 +88,7 @@ context =
key lamp_apache_httpd template-apache-httpd:target
key lamp_apache_httpd template-apache-httpd:target
raw dovecot_conf_template ${dovecot.jinja2.conf:target}
raw dovecot_conf_template ${dovecot.jinja2.conf:target}
raw dovecot_sql_template ${dovecot-sql.jinja2.conf.ext:target}
raw dovecot_sql_template ${dovecot-sql.jinja2.conf.ext:target}
raw dovecot_passwd ${dovecot-passwd.in:target}
raw dovecot_binary ${dovecot:location}/sbin/dovecot
raw dovecot_binary ${dovecot:location}/sbin/dovecot
raw postfix_main_template ${postfix_main.jinja2.cf:target}
raw postfix_main_template ${postfix_main.jinja2.cf:target}
raw postfix_master_template ${postfix_master.jinja2.cf:target}
raw postfix_master_template ${postfix_master.jinja2.cf:target}
...
@@ -143,6 +144,8 @@ filename = ${:_buildout_section_name_}
...
@@ -143,6 +144,8 @@ filename = ${:_buildout_section_name_}
< = copy-to-instance
< = copy-to-instance
[dovecot-sql.jinja2.conf.ext]
[dovecot-sql.jinja2.conf.ext]
< = copy-to-instance
< = copy-to-instance
[dovecot-passwd.in]
< = copy-to-instance
[postfix_main.jinja2.cf]
[postfix_main.jinja2.cf]
< = copy-to-instance
< = copy-to-instance
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment