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
Labels
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
7e3008cd
Commit
7e3008cd
authored
Feb 15, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
5a1fdf64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
software/dovecot/buildout.hash.cfg
software/dovecot/buildout.hash.cfg
+1
-1
software/dovecot/instance-default.cfg.in
software/dovecot/instance-default.cfg.in
+16
-0
No files found.
software/dovecot/buildout.hash.cfg
View file @
7e3008cd
...
...
@@ -19,7 +19,7 @@ md5sum = 98083f7eb5dc0c7559f374c22a1b6896
[template-default]
_update_hash_filename_ = instance-default.cfg.in
md5sum =
686ddd88d2ddb8286d742d405b6187a6
md5sum =
bf3267598358d4f02a0c5a7f49ad9d02
[dovecot.jinja2.conf]
_update_hash_filename_ = dovecot.jinja2.conf
...
...
software/dovecot/instance-default.cfg.in
View file @
7e3008cd
...
...
@@ -78,6 +78,20 @@ output = ${directory:etc}/dovecot-passwd
[userinfo]
recipe = slapos.cookbook:userinfo
[ethernet-ip]
recipe = slapos.recipe.build
init =
import netifaces
for i in netifaces.interfaces():
if not (i.startswith("slaptun") or i.startswith("re6stnet") or i == "lo"):
a = netifaces.ifaddresses(i)
if netifaces.AF_INET in a:
try:
options['ipv4'] = a[netifaces.AF_INET][0]['addr']
except:
options['ipv4'] = "0.0.0.0"
[postfix-conf]
<= config-base
url = {{ postfix_main_template }}
...
...
@@ -96,6 +110,8 @@ extra-context =
key vhosts_directory directory:vhosts
key mail_owner userinfo:pw-name
key setgid_group userinfo:gr-name
key ip_network ethernet-ip:ipv4
key ip_address slap-configuration:tun-ipv4-network
raw postfix_location {{ postfix_location }}
[postfix-alias]
...
...
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