Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37735792
en ru br
ALT Linux repos
S:1.0-alt1
5.0: 1.0-alt1
4.1: 1.0-alt1
4.0: 1.0-alt1

Group :: System/Servers
RPM: exim-control

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/sh

. /etc/control.d/functions

CONFIG=/etc/exim/exim.conf
EXE=/etc/init.d/exim

new_summary "Exim SMTP server"

new_subst server \
'^#local_interfaces[[:space:]]+=[[:space:]]+127.0.0.1[[:space:]]*$' \
's/^\(local_interfaces[[:space:]]\+=[[:space:]]\+127.0.0.1[[:space:]]*\)$/#\1/'
new_subst local \
'^local_interfaces[[:space:]]+=[[:space:]]+127.0.0.1[[:space:]]*$' \
's/^#\(local_interfaces[[:space:]]\+=[[:space:]]\+127.0.0.1[[:space:]]*\)$/\1/'

new_help local "Disable Exim SMTP service"
new_help server "Enable Exim SMTP service"

is_builtin_mode "$*" ||
[ "$*" != "`control_subst "$CONFIG" status`" ] || exit 0

control_subst "$CONFIG" "$*"

is_builtin_mode "$*" ||
[ ! -x "$EXE" ] || "$EXE" condreload || exit 0
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin