mirror of
git://slackware.nl/current.git
synced 2024-12-29 10:25:00 +01:00
5edf138e9c
patches/packages/dovecot-2.3.21.1-x86_64-1_slack15.0.txz: Upgraded. This update fixes security issues: A large number of address headers in email resulted in excessive CPU usage. Abnormally large email headers are now truncated or discarded, with a limit of 10MB on a single header and 50MB for all the headers of all the parts of an email. For more information, see: https://www.cve.org/CVERecord?id=CVE-2024-23184 https://www.cve.org/CVERecord?id=CVE-2024-23185 (* Security fix *)
46 lines
554 B
Bash
46 lines
554 B
Bash
#!/bin/sh
|
|
|
|
dovecot_start()
|
|
{
|
|
echo "Starting dovecot: /usr/sbin/dovecot"
|
|
/usr/sbin/dovecot
|
|
}
|
|
|
|
dovecot_stop()
|
|
{
|
|
echo "Stopping dovecot..."
|
|
/usr/bin/doveadm stop
|
|
}
|
|
|
|
dovecot_status()
|
|
{
|
|
/usr/bin/doveadm service status
|
|
}
|
|
|
|
dovecot_reload()
|
|
{
|
|
echo "Reloading dovecot..."
|
|
/usr/bin/doveadm reload
|
|
}
|
|
|
|
case $1 in
|
|
'start')
|
|
dovecot_start
|
|
;;
|
|
'stop')
|
|
dovecot_stop
|
|
;;
|
|
'status')
|
|
dovecot_status
|
|
;;
|
|
'restart')
|
|
dovecot_stop
|
|
sleep 3
|
|
dovecot_start
|
|
;;
|
|
'reload')
|
|
dovecot_reload
|
|
;;
|
|
*)
|
|
echo "usage $0 start|stop|restart|reload|status"
|
|
esac
|