@@ -516,13 +516,6 @@ def _configure_dovecot(config: Config, debug: bool = False) -> bool:
516516 )
517517 need_restart |= lua_push_notification_script .changed
518518
519- # remove historic expunge script
520- # which is now implemented through a systemd chatmail-expire service/timer
521- files .file (
522- path = "/etc/cron.d/expunge" ,
523- present = False ,
524- )
525-
526519 # as per https://doc.dovecot.org/2.3/configuration_manual/os/
527520 # it is recommended to set the following inotify limits
528521 if config .change_kernel_settings :
@@ -726,10 +719,34 @@ def configure(self):
726719 )
727720
728721
729- class RspamdDeployer (Deployer ):
722+ class LegacyRemoveDeployer (Deployer ):
730723 def install (self ):
731724 apt .packages (name = "Remove rspamd" , packages = "rspamd" , present = False )
732725
726+ # remove historic expunge script
727+ # which is now implemented through a systemd timer (chatmail-expire)
728+ files .file (
729+ path = "/etc/cron.d/expunge" ,
730+ present = False ,
731+ )
732+
733+ # Remove OBS repository key that is no longer used.
734+ files .file ("/etc/apt/keyrings/obs-home-deltachat.gpg" , present = False )
735+ files .line (
736+ name = "Remove DeltaChat OBS home repository from sources.list" ,
737+ path = "/etc/apt/sources.list" ,
738+ line = "deb [signed-by=/etc/apt/keyrings/obs-home-deltachat.gpg] https://download.opensuse.org/repositories/home:/deltachat/Debian_12/ ./" ,
739+ escape_regex_characters = True ,
740+ present = False ,
741+ )
742+
743+ # prior relay versions used filelogging
744+ files .directory (
745+ name = "Ensure old logs on disk are deleted" ,
746+ path = "/var/log/journal/" ,
747+ present = False ,
748+ )
749+
733750
734751def check_config (config ):
735752 mail_domain = config .mail_domain
@@ -785,7 +802,7 @@ def __init__(self, mtail_address):
785802 self .mtail_address = mtail_address
786803
787804 def install (self ):
788- # Uninstall mtail package, we are going to install a static binary.
805+ # Uninstall mtail package to install a static binary.
789806 apt .packages (name = "Uninstall mtail" , packages = ["mtail" ], present = False )
790807
791808 (url , sha256sum ) = {
@@ -984,17 +1001,6 @@ def __init__(self, mail_domain):
9841001 self .mail_domain = mail_domain
9851002
9861003 def install (self ):
987- # Remove OBS repository key that is no longer used.
988- files .file ("/etc/apt/keyrings/obs-home-deltachat.gpg" , present = False )
989-
990- files .line (
991- name = "Remove DeltaChat OBS home repository from sources.list" ,
992- path = "/etc/apt/sources.list" ,
993- line = "deb [signed-by=/etc/apt/keyrings/obs-home-deltachat.gpg] https://download.opensuse.org/repositories/home:/deltachat/Debian_12/ ./" ,
994- escape_regex_characters = True ,
995- present = False ,
996- )
997-
9981004 apt .update (name = "apt update" , cache_time = 24 * 3600 )
9991005 apt .upgrade (name = "upgrade apt packages" , auto_remove = True )
10001006
@@ -1106,6 +1112,7 @@ def deploy_chatmail(config_path: Path, disable_mail: bool, docker: bool) -> None
11061112
11071113 all_deployers = [
11081114 ChatmailDeployer (mail_domain ),
1115+ LegacyRemoveDeployer (),
11091116 JournaldDeployer (),
11101117 UnboundDeployer (),
11111118 TurnDeployer (mail_domain ),
@@ -1122,16 +1129,10 @@ def deploy_chatmail(config_path: Path, disable_mail: bool, docker: bool) -> None
11221129 PostfixDeployer (config , disable_mail ),
11231130 FcgiwrapDeployer (),
11241131 NginxDeployer (config ),
1125- RspamdDeployer (),
11261132 EchobotDeployer (mail_domain ),
11271133 MtailDeployer (config .mtail_address ),
11281134 GithashDeployer (),
11291135 ]
11301136
11311137 Deployment ().perform_stages (all_deployers )
11321138
1133- files .directory (
1134- name = "Ensure old logs on disk are deleted" ,
1135- path = "/var/log/journal/" ,
1136- present = False ,
1137- )
0 commit comments