From: Alexander Marx <alexander.marx@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 2/2] Core94: fix for dma when postfix is installed
Date: Thu, 15 Oct 2015 12:18:28 +0200 [thread overview]
Message-ID: <1444904308-15139-2-git-send-email-alexander.marx@ipfire.org> (raw)
In-Reply-To: <1444904308-15139-1-git-send-email-alexander.marx@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 900 bytes --]
---
config/rootfiles/core/94/update.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/config/rootfiles/core/94/update.sh b/config/rootfiles/core/94/update.sh
index 1b9eed7..7b645e9 100644
--- a/config/rootfiles/core/94/update.sh
+++ b/config/rootfiles/core/94/update.sh
@@ -70,7 +70,13 @@ EOF
fcrontab -z &>/dev/null
-# dma files
+# DMA - reconfigure Postfix if exists
+if [ -e /etc/postfix/main.cf ]; then
+ mv /usr/sbin/sendmail /usr/sbin/sendmail.postfix
+ /usr/sbin/alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/sendmail.postfix 15
+ sed -i 's/usr\/sbin\/sendmail/usr/sbin/sendmail.postfix/' /opt/pakfire/db/rootfiles/postfix
+fi
+# DMA - configure dma as default mta
mkdir /etc/alternatives
mkdir /var/lib/alternatives
/usr/sbin/alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/sendmail.dma 20
--
1.9.1
next prev parent reply other threads:[~2015-10-15 10:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-15 10:18 [PATCH 1/2] Core94: fix update.sh for dma Alexander Marx
2015-10-15 10:18 ` Alexander Marx [this message]
2015-10-15 10:59 ` [PATCH 2/2] Core94: fix for dma when postfix is installed Michael Tremer
2015-10-15 10:56 ` [PATCH 1/2] Core94: fix update.sh for dma Michael Tremer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1444904308-15139-2-git-send-email-alexander.marx@ipfire.org \
--to=alexander.marx@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox