]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/paks/postfix/install.sh
mympd: remove create config start
[ipfire-2.x.git] / src / paks / postfix / install.sh
index 56c23e2c26bdea3576128c2881ab25171122267d..2e04e74a86345ef7e901ea2c005c1977b5c25dcd 100644 (file)
 #
 . /opt/pakfire/lib/functions.sh
 extract_files
+restore_backup ${NAME}
+
+# change main.cf parameter from default value to prevent smtp smuggling attack
+# will not be required once postfix-3.9.x is released as default will then be yes
+postconf -e 'smtpd_forbid_bare_newline = yes'
+
 postalias /etc/aliases
 # Set postfix's hostname
 postconf -e "myhostname=$(hostname -f)"
-/etc/init.d/postfix start
+
+start_service ${NAME}
 
 # Enable autostart for postfix
 ln -sf  ../init.d/postfix /etc/rc.d/rc0.d/K25postfix
 ln -sf  ../init.d/postfix /etc/rc.d/rc3.d/S35postfix
 ln -sf  ../init.d/postfix /etc/rc.d/rc6.d/K25postfix
+
+# Update alternatives
+/usr/sbin/alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/sendmail.postfix 15