mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
Core94: fix for dma when postfix is installed
Signed-off-by: Alexander Marx <alexander.marx@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
13adb7aea8
commit
ee97ade8e4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user