This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Felix Bartels <[email protected]>
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
set -x | ||
|
||
if ! kopano-smtpstd status; then | ||
echo "smptst has not yet started" | ||
exit 1 | ||
fi | ||
|
||
/usr/sbin/postfix check | ||
|
||
# configure postfix automatically based on smtpstd configuration | ||
postconf -e virtual_mailbox_domains="$(kopano-smtpstd status --json |jq -r '.domains | join(" ")')" | ||
postconf -e relayhost=[127.0.0.1]:10025 | ||
postconf -e default_transport=smtp | ||
postconf -e relay_transport=smtp | ||
|
||
#exec /usr/lib/postfix/sbin/master -d | ||
exec /usr/sbin/postfix -c /etc/postfix start-fg |