diff --git a/pleskdistup/actions/__init__.py b/pleskdistup/actions/__init__.py index 2c82381..f841b00 100644 --- a/pleskdistup/actions/__init__.py +++ b/pleskdistup/actions/__init__.py @@ -3,6 +3,7 @@ from .common_checks import * from .common import * from .distupgrade import * +from .emails import * from .extensions import * from .mariadb import * from .packages import * diff --git a/pleskdistup/actions/emails.py b/pleskdistup/actions/emails.py index 5fc001a..eba9ac9 100644 --- a/pleskdistup/actions/emails.py +++ b/pleskdistup/actions/emails.py @@ -5,10 +5,12 @@ from pleskdistup.common import action, log, util -class IncreaseDovecotDHParameters(action.ActiveAction): - def __init__(self): +class SetMinDovecotDhParamSize(action.ActiveAction): + dhparam_size: int + + def __init__(self, dhparam_size: int): self.name = "increase Dovecot DH parameters size to 2048 bits" - self.dhparam_size = 2048 + self.dhparam_size = dhparam_size def _is_required(self) -> bool: proc = subprocess.run(