slackware-current/patches/source/dovecot/rc.dovecot
Patrick J Volkerding 5edf138e9c Wed Aug 14 19:36:01 UTC 2024
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 *)
2024-08-15 13:30:54 +02:00

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