Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
docker-image-recipes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a8f76ad5
authored
2021-05-06 16:58:31 +0000
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add support for POSTFIX_OVERRIDE_FROM.
1 parent
774b7e1c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
postfix/files/entrypoint
postfix/files/entrypoint
View file @
a8f76ad
...
...
@@ -29,6 +29,13 @@ postconf -e \
: > /etc/postfix/virtual
postmap /etc/postfix/virtual
if
[[
$POSTFIX_OVERRIDE_FROM
]]
;
then
postconf -e
smtp_generic_maps
=
regexp:/etc/postfix/generic-regexp
echo
"/^(root|hostuser)(
\\
+.*)?@[^.]+
$/
$POSTFIX_OVERRIDE_FROM
"
> /etc/postfix/generic-regexp
else
postconf -e
smtp_generic_maps
=
fi
:
${
POSTFIX_FORWARD_APP
:
=hostuser+app@localhost
}
:
${
POSTFIX_FORWARD_CATCHALL
:
=hostuser+catchall@localhost
}
...
...
Please
register
or
sign in
to post a comment